Jump to content

User:Wernher/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// [[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');

popupDelay=1;

// [[User:Ian_Moody/custommainpage.js]] (modified by Wernher)

var mpTitle = "Main Page";
var isMainPage = (document.title.substr(0, document.title.lastIndexOf(" - ")) == mpTitle)

// this hook commented out when I discovered the classic 2006 page had been deleted. argh.
// if (isMainPage) 
// {location.replace("http://en.wikipedia.org/wiki/Main_Page_alternative_%28Classic_2006%29");}

// Wikiproject User scripts

importScript('User:Gerbrant/edit/top.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/HighlightRedirects');
importScript('Wikipedia:WikiProject User scripts/Scripts/External editor');
importScript('Wikipedia:WikiProject User scripts/Scripts/Unwatch');
importScript('Wikipedia:WikiProject User scripts/Scripts/Category watchlist');