Benutzer:Mediator/common.js: Unterschied zwischen den Versionen

Aus chessmail Wiki @novasign.ch
Zur Navigation springen Zur Suche springen
K
K
Zeile 2: Zeile 2:
 
importScript('Benutzer:Mediator/popups.js');
 
importScript('Benutzer:Mediator/popups.js');
 
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400");
 
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400");
 +
// Normally features are enabled
 +
var toFix = true;
 +
 +
// In special pages, histories and previews disable them
 +
if (wgCanonicalNamespace == "Special" || /*
 +
    */ location.href.indexOf('&action=history') != -1 || /*
 +
    */ location.href.indexOf('&action=submit') != -1)
 +
  toFix = false;
 +
 +
//
 +
window.popupRedlinkRemoval = toFix;
 +
window.popupFixRedirs = toFix;
 +
window.popupFixDabs = toFix;

Version vom 10. Mai 2013, 01:27 Uhr

// [[Benutzer:Mediator/popups.js]]
importScript('Benutzer:Mediator/popups.js');
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400");
// Normally features are enabled
var toFix = true;
 
// In special pages, histories and previews disable them
if (wgCanonicalNamespace == "Special" || /*
    */ location.href.indexOf('&action=history') != -1 || /*
    */ location.href.indexOf('&action=submit') != -1)
  toFix = false;
 
// 
window.popupRedlinkRemoval = toFix;
window.popupFixRedirs = toFix;
window.popupFixDabs = toFix;