Jump to content

User:Jackmcbarn/common.js

From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.
// <nowiki>

// If you want this next script, you probably want to remove -unstable from it
importScript('User:Jackmcbarn/editProtectedHelper-unstable.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]

if(/^User:.*\/(CSD|PROD)_log$/.test(mw.config.get('wgPageName'))) {
	$('#mw-content-text').prepend($('<button>Show/hide redlinked pages</button>').click(function(){
		$('ol>li>a.new:first-child').parent().toggle();
	}));
}

importScript('User:Ale_jrb/Scripts/csdhelper.js');  //[[User:Ale_jrb/Scripts]]

importScript('User:Dr pda/prosesize.js');
window.LinkClassifierOnDemand = true; // not really, but we want to make our own onLoad hook
$(importScript('User:Anomie/linkclassifier.js')) // Linkback: [[User:Anomie/linkclassifier.js]]
	.load(function() {
		$(document).ready(function() {
			window.LinkClassifierOnDemand = false;
			LinkClassifier.cats['soft-redirect'] = ['Category:Wikipedia soft redirects', 'Category:Protected soft redirects', 'Category:Redirects to Wiktionary'].sort();
			LinkClassifier.onLoad();
		});
	});
importStylesheet('User:Jackmcbarn/linkclassifier.css');
importScript('User:Jackmcbarn/switcher-unstable.js'); // Linkback: [[User:Jackmcbarn/switcher-unstable.js]]
importScript('User:Timotheus Canens/spihelper.js');
importScript('User:SD0001/RFUD-helper.js'); // [[User:SD0001/RFUD-helper.js]]
importScript('User:Mr. Stradivarius/gadgets/SpamUserPage.js'); // Linkback: [[User:Mr. Stradivarius/gadgets/SpamUserPage.js]]
SpamUserPage = { watchlist: 'nochange' };

// </nowiki>