Jump to content

User:Edgars2007/common.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('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:MusikAnimal/scriptManager.js');
scriptsToManage = {
  "rio_cats" : "/w/index.php?title=User:Edgars2007/rio_petscan.js&action=raw&ctype=text/javascript",
  "google" : "/w/index.php?title=User:Edgars2007/google.js&action=raw&ctype=text/javascript"
}
importScript( 'User:Enterprisey/delsort.js' ); // Backlink: [[User:Enterprisey/delsort.js]]
importScript( 'User:Equazcion/ScriptInstaller.js' ); // Backlink: [[User:Equazcion/ScriptInstaller.js]]
importScript( 'User:Mr. Stradivarius/gadgets/Draftify.js' ); // Linkback: [[User:Mr. Stradivarius/gadgets/Draftify.js]]	
importScript( 'User:Mr. Stradivarius/gadgets/UserTalkCleaner.js' ); // Linkback: [[User:Mr. Stradivarius/gadgets/UserTalkCleaner.js]]	
importScript('User:Evad37/rater.js'); // [[User:Evad37/rater]]



mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Edgars2007/tag.js');
//mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Edgars2007/script.js');
//mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Edgars2007/OOjs-UI example.js');
//$("a.new").insertAfter( "<a href='https://www.google.com/'>aa</a>" );
//importScript("User:A930913/vada/import.js"); //[[User:A930913/vada/import.js]]
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
//importScript('User:Frietjes/findargdups.js'); // [[User:Frietjes/findargdups]]
importScript('User:Ucucha/HarvErrors.js');
//importScript('User:Frietjes/infoboxgap.js');
importScript('User:Anomie/ajaxpreview.js'); // Linkback: [[User:Anomie/ajaxpreview.js]]
//importScript('User:Aaroncrick/mass rollback.js');
//importScript('User:Evad37/duplinks-alt.js'); // [[User:Evad37/duplinks-alt]]
importScript('User:Frietjes/masspurge.js');
importScript('User:Salix alba/Citoid.js'); // Linkback: [[User:Salix alba/Citoid.js]]
importScript('User:AWeenieMan/furme.js');
//importScript('Wikipedia:AutoEd/complete.js');
//importScript('User:GregU/familytree.js');
//mw.loader.load('//lv.wikipedia.org/w/index.php?title=MediaWiki:Gadget-Editpage.js&action=raw&ctype=text/javascript');
//importStylesheet('User:Edgars2007/summaryButtons.css');

/* User:Technical_13/Scripts/OneClickArchiver */
//importScript( 'User:Technical_13/Scripts/OneClickArchiver.js' ); // Backlink: [[User:Technical_13/Scripts/OneClickArchiver]]
/* User:Σ/Testing facility/Archiver */
importScript( 'User:Σ/Testing facility/Archiver.js' ); // Backlink: [[User:Σ/Testing facility/Archiver]]
//User:SiBr4/TemplateSearch.js
//importScript("User:GregU/dashes.js");
// [[User:PerfektesChaos/js/WikiSyntaxTextMod]]
//mw.loader.load("//en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/WikiSyntaxTextMod/r.js&action=raw&bcache=1&maxage=604800&ctype=text///javascript",
//               "text/javascript");

//$(function() {
//	$( "#wpSummary" ).val( "New summary" );
//});

function addExtraButtons () {
	mw.toolbar.addButtons(
		{
			'imageId': 'button-references',
			'imageFile': '//upload.wikimedia.org/wikipedia/commons/2/2b/Button_ref_inscription.png',
			'speedTip': 'References',
			'tagOpen': '==References==\n',
			'tagClose': '{{reflist}}\n\n'
		}
	);
}

if ( mw.config.get( 'wgAction' ) === 'edit' || mw.config.get( 'wgAction' ) === 'submit' ) {
	mw.loader.using( 'user.options', function () {
		if ( ! mw.user.options.get( 'usebetatoolbar' ) && mw.user.options.get( 'showtoolbar' ) ) {
			mw.loader.using( 'mediawiki.action.edit', function(){
				$( addExtraButtons );
			} );
		}
	} );
}
importScript('User:Zhaofeng Li/Scratchpad.js'); //Linkback: [[User:Zhaofeng Li/Scratchpad.js]] Added by Script installer
importScript('User:Edgars2007/tokyo2020.js'); //Linkback: [[User:Edgars2007/tokyo2020.js]] Added by Script installer
importScript('User:Edgars2007/redirects.js'); //Linkback: [[User:Edgars2007/redirects.js]] Added by Script installer