User:Giggy/monobook.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
// [[w:User:Lupin/popups.js]]
 
mw.loader.load(
             'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');
popupAdminLinks=true


importScript ("MediaWiki:Utilities.js");

// Adds "del" links alongside images in user's upload log, uses Utilities.js (above) to remember delete reason between images for [[Special:Nuke]] style deletion (until that starts working with images).
if (wgCanonicalNamespace == 'Special' && wgCanonicalSpecialPageName == 'Log') {
  hookEvent ('load',
    function () {
      var lks = getElementsByTagNameStatic ('a', document.getElementById ('bodyContent'));
      DelReqHandler.addDelKeepLinks (lks, false, false, true);
    }
  );
}

mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Patstuart/Flickrreview.js'
+ '&action=raw&ctype=text/javascript');