User:Kolossos/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.
// From [[en:User:Lupin/autoedit.js]]
function getParamValue(paramName) {
        var cmdRe=RegExp('[&?]'+paramName+'=([^&]*)');
        var h=document.location;
        var m=cmdRe.exec(h);
        if (m) {
        try {
                return decodeURIComponent(m[1]);
        } catch (someError) {}
        }
        return null;
}

mw.loader.load('https://commons.wikimedia.org/w/index.php?title=MediaWiki:HotCat.js' 
             + '&action=raw&ctype=text/javascript');
//[[MediaWiki talk:HotCat.js]]


mw.loader.load('https://commons.wikimedia.org/w/index.php?title=MediaWiki:Quick-delete.js' 
             + '&action=raw&ctype=text/javascript');
//[[MediaWiki talk:Quick-delete.js]]

// [[:en:User:Lupin/popups.js]]

//document.write('<script type="text/javascript" src="' 
//             + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' 
//             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//popupCategoryMembers=true;