User:Aeengath/common.js

importScript('User:Svick/HarvErrors.js'); // Backlink: User:Svick/HarvErrors.js mw.loader.using("mediawiki.util", function {   mw.util.addPortletLink( "p-tb", "https://copyvios.toolforge.org/?lang=" + mw.config.get("wgContentLanguage") + "&project=" + mw.config.get("wgSiteName").toLowerCase + "&title=" + encodeURIComponent(mw.config.get("wgPageName")), "Copyvio check", "t-copyvio-check", "Check this page for copyright violations" ); }); importScript("User:RedWarn/.js"); mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript'); importScript('User:Evad37/duplinks-alt.js'); // User:Evad37/duplinks-alt importScript('Wikipedia:AutoEd/complete.js'); importScript('User:BrandonXLF/HotDefaultSort.js'); // User:BrandonXLF/HotDefaultSort.js // This script converts American English spellings into British spellings. // PLEASE READ THE DOCUMENTATION at User:Ohconfucius/EngvarB (click on the link above) before using.

// Feedback and constructive criticism are welcome. // Any advice on improving the scripts are especially welcome. // importScript('User:Ohconfucius/dashes.js'); mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript'); mw.loader.load( '/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript' ); // Backlink: User:Evad37/rater.js /** * Deprecated. 2020-10-04. * I recommend use of the "Wikitext" extension[1] in Visual Studio Code, * which brings in the reliability and stability of the local file system * while allowing previews and syntax highlightening. The "sandboxes" are files * on your system so you can make as many as you want! * * This script causes the saved sandbox text to be exported on evey page load. * * [1]: https://marketplace.visualstudio.com/items?itemName=RoweWilsonFrederiskHolme.wikitext * */

/** * Creates a private sandbox for you, accessible at Special:PrivateSandbox * Useful for things like drafting evidence for ArbCom/ANI, which are better * done privately but not off-wiki because you want to be able to preview. */ $.when(	$.ready,	mw.loader.using(['mediawiki.user', 'mediawiki.api']) ).then(function {	if (mw.config.get('wgPageName') !== 'Special:PrivateSandbox' && mw.config.get('wgPageName') !== 'Special:BlankPage/PrivateSandbox') {

return; }

document.title = 'Private sandbox'; $('#firstHeading').text('Private sandbox'); var api = new mw.Api;

$('#mw-content-text').empty.append(		$(' ').attr('id', 'ps-preview'),		$(' ').val(mw.user.options.get('userjs-pvt-sandbox'))			.attr({ id: 'ps-textarea', cols: 80, rows: 25, tabindex: 1, accesskey: ',' })			.css({ 'margin': '20px 0 10px 0', 'font-family': mw.user.options.get('editfont') }),		$(' ').text('Save').click(function { $('#ps-status').text('Saving').css('color', 'blue'); var text = $('#ps-textarea').val; api.saveOption('userjs-pvt-sandbox', text).then(function {				$('#ps-status').empty;				$('#ps-lastsaved').text('Last saved at ' + new Date.toLocaleString);				mw.user.options.set('userjs-pvt-sandbox', text);			}, function(err) {				$('#ps-status').text('Failed to save: ', err).css('color', 'red');			}); }),		$(' ').text('Preview').click(function { $('#ps-status').text('Retrieving preview').css('color', 'blue'); var text = $('#ps-textarea').val; api.post({				action: 'parse',				text: text,				title: 'PrivateSandbox', 				prop: 'text|categorieshtml',				disableeditsection: '1',				formatversion: '2'			}).then(function(json) {				$('#ps-status').empty;				$('#ps-preview').html(json.parse.text + json.parse.categorieshtml);			}, function(err) {				$('#ps-status').text('Failed to fetch preview: ', err).css('color', 'red');			}); }).css({ 'padding-left': '5px' }),		$(' ').attr('id', 'ps-status'),		$(' ').attr('id', 'ps-lastsaved')	);

window.onbeforeunload = function(e) { if( $('#ps-textarea').val !== mw.user.options.get('userjs-pvt-sandbox') ) { e.returnValue = 'Your changes have not been saved'; return e.returnValue; }	};

}); importScript( 'User:Technical_13/Scripts/OneClickArchiver.js' ); // Backlink: User:Technical_13/Scripts/OneClickArchiver mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" ); mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' ); importScript('User:Ohconfucius/script/MOSNUM dates.js'); // Backlink: User:Ohconfucius/script/MOSNUM dates.js importScript('User:Headbomb/unreliable.js'); // Backlink: User:Headbomb/unreliable.js importScript('User:TheDJ/Gadget-HotCat.js'); // Backlink: User:TheDJ/Gadget-HotCat.js importScript('User:Ohconfucius/script/formatgeneral.js'); // Backlink: User:Ohconfucius/script/formatgeneral.js importScript('User:Trappist the monk/HarvErrors.js'); // Backlink: User:Trappist the monk/HarvErrors.js importScript('User:Trappist_the_monk/HarvErrors.js'); // Backlink: User:Trappist_the_monk/HarvErrors.js importScript('User:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: User:Qwertyytrewqqwerty/DisamAssist.js importScript('Wikipedia:AutoEd/basic.js'); // Backlink: AutoEd/basic.js importScript('User:Ohconfucius/test/formatgeneral.js'); // Backlink: User:Ohconfucius/test/formatgeneral.js importScript('User:Kaniivel/RefConsolidate start.js'); // Backlink: User:Kaniivel/RefConsolidate start.js importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: User:Novem Linguae/Scripts/GANReviewTool.js importScript('User:SD0001/GAN-helper.js'); // Backlink: User:SD0001/GAN-helper.js importScript('User:Ucucha/HarvErrors.js'); // Backlink: User:Ucucha/HarvErrors.js importScript('User:SD0001/private-sandbox.js'); // Backlink: User:SD0001/private-sandbox.js