Jump to content

User:MER-C/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.
mw.loader.load(['ext.gadget.Twinkle']);
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript'); // see [[User:Writ Keeper/Scripts/massRollback.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Timotheus Canens/massblock.js&action=raw&ctype=text/javascript'); // see [[User:Timotheus Canens/massblock.js]]
mw.loader.load( '/w/index.php?title=User:GeneralNotability/spihelper.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:GeneralNotability/spihelper.js]]
importScript( 'User:DannyS712/Draft no cat.js' ); // Backlink: [[User:DannyS712/Draft no cat.js]]

// popups
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', 'text/css');

popupSubpopups = false;
popupStructure='shortmenus';
popupImages = false;

// I prefer + instead of new section
jQuery( function( $ ) {
	var tab = document.getElementById('ca-addsection');
	if(!tab) return;
	var tablink = tab.getElementsByTagName('a')[0];
	if(!tablink) return;
	tablink.firstChild.nodeValue = '+';
});