MediaWiki:Gadget-TranslationAdder.js: diferència entre les revisions

Contingut suprimit Contingut afegit
traduïnt
Use of "wgNamespaceNumber" is deprecated. Use mw.config instead.
Línia 1.283:
addOnloadHook(function () {
var actions = window.location.toString().replace(/.*\?/, '&');
if (wgAction != 'view' || actions.indexOf('&printable=yes') > -1 || actions.indexOf('&diff=') > -1 || actions.indexOf('&oldid=') > -1 || mw.config.get("wgNamespaceNumber")!=0) {return;} //Només espai ppal.
// Check that we have not been disabled
var prefs = new CookiePreferences('EditorJs');