Jump to content

User:VarunFEB2003/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.
importScript("User:UBX/LiveEditCounter.js");
importScript('User:VarunFEB2003/hideBeta.js'); // Backlink:[[User:VarunFEB2003/hideBeta]]
importScript("User:Another_Article/workflowstudyclient.js");
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
importScript("User:Writ Keeper/Scripts/teahouseTalkback.js"); // Adds Talkback reminder when you save an edit at the Teahouse
importScript("User:Writ Keeper/Scripts/teahouseTalkbackLink.js"); // Adds a talkback link to signatures on the Teahouse
importScript("User:Writ Keeper/Scripts/teahouseUtility.js"); // Gives one-click option to add Teahouse invitation or talkback to a user
importScript('User:Lupin/recent2.js');
importScript('User:VarunFEB2003/JsLink.js');
// importScript('User:VarunFEB2003/EmailLink.js')
importScript('User:VarunFEB2003/sigReminder.js')
importScript("User:Ocaasi/WikiLoveinstallscript.js");
// importScript('User:VarunFEB2003/IndianMilitaryBadges.js');
// importScript('User:VarunFEB2003/IndianMilitaryUtility.js');
mw.loader.load('https://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:MusikAnimal/customWatchlists.js');
importScript("User:Writ Keeper/Scripts/SearchNamespace.js");
importScript("User:Writ Keeper/Scripts/googleTitle.js");
// importScript("User:VarunFEB2003/bingTitle.js");
importScript("User:Writ Keeper/Scripts/mickopedia.js");
importScript("User:Writ Keeper/Scripts/selfTalkbackLink.js");
importScript("User:Writ Keeper/Scripts/orangeBar.js");
importScript('User:Keegan/MarkBlocked.js'); 
importScript('User:MusikAnimal/userRightsManager.js'); 
importScript('User:Cameltrader/Advisor.js');
importScript("User:PleaseStand/userinfo.js");
importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool
importScript('User:Samtar/falsePositiveHelper.js');
importScript('User:MusikAnimal/responseHelper.js');
importScript('User:APerson/delsort.js');
importScript('Wikipedia:AutoEd/complete.js');
importScript('User:The Earwig/copyvios.js');
importScript( 'User:Technical_13/Scripts/OneClickArchiver.js' ); // Backlink: [[User:Technical_13/Scripts/OneClickArchiver]]
importScript("User:VarunFEB2003/SkipPurge.js");
importScript('User:Darkwind/DAVT.js'); // [[User:Darkwind/DAVT.js]]
importScript('User:Ucucha/duplinks.js'); // [[User:Ucucha/duplinks]]
importScript( 'User:Equazcion/BetterTwinklePrefs.js' ); // Backlink: [[User:Equazcion/BetterTwinklePrefs.js]]
importScript('User:Equazcion/NoEditSandbox.js'); //Linkback: [[User:Equazcion/NoEditSandbox]]
importScript( 'User:APerson/delsort.js' ); // Backlink: [[User:APerson/delsort.js]]
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
importScript( 'User:Andy M. Wang/pageswap.js' ); // Backlink: [[User:Andy M. Wang/pageswap]]

$(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
"http://dispenser.homenet.org//~dispenser/cgi-bin/dab_solver.py?page="+wgPageName+"&commonfixes=on",  
"Dabfix" // link label
)});
$(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
"http://en.wikipedia.org/wiki/"+wgPageName+"?action=purge&forcerecursivelinkupdate",  
"Force Purge" // link label
)});
$(function () {
 mw.util.addPortletLink(
  "p-tb",     // toolbox portlet
"http://en.wikipedia.org/wiki/User:VarunFEB2003/Statussig?action=edit",  
"Change Status" // link label
)});

/**
 * Extra buttons in toolbar
 * @stats [[File:Krinkle_InsertWikiEditorButton.js]]
 */
$.ajax({
	url: 'https://meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/InsertWikiEditorButton.js&action=raw&ctype=text/javascript',
	dataType: 'script',
	cache: true
}).done(function () {

	// Happy face
	krInsertWikiEditorButton({
		id: "mw-customeditbutton-myspecialbutton",
		icon: "https://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png",
		label: 'Insert Redirect',
		insertBefore: '#REDIRECT',
		insertAfter: ' ',
		sampleText: ' [[User talk:VarunFEB2003]]'
	});

	// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/commons/8/82/Nowiki_icon.png',
		label: 'Nowiki',
		insertBefore: '<nowiki>',
		insertAfter: '</nowiki>',
		sampleText: ' '
	});

	// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/en/e/ea/Button_align_left.png',
		label: 'Left align',
		insertBefore: '<div style="text-align: left; direction: ltr; margin-left: 1em;">',  
		insertAfter: '</div>',
		sampleText: '  '
	});
	
		// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/commons/5/5f/Button_center.png',
		label: 'Center align',
		insertBefore: '<div style="text-align: center;">',  
		insertAfter: '</div>',
		sampleText: '  '
	});

		// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/commons/a/a5/Button_align_right.png',
		label: 'Right align',
		insertBefore: '<div style="text-align: right; direction: ltr; margin-left: 1em;">',  
		insertAfter: '</div>',
		sampleText: '  '
	});

		// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/en/d/d7/Font_button.png',
		label: 'Right align',
		insertBefore: '<span style="color: Red">',  
		insertAfter: '</span>',
		sampleText: '  '
	});
	
		// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/commons/b/b6/Button_code1.png',
		label: 'Code',
		insertBefore: '<code> <nowiki>',  
		insertAfter: '</nowiki> </code>',
		sampleText: '  '
	});
	
		// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/commons/c/ce/Button_no_include.png',
		label: 'Noinclude',
		insertBefore: '<noinclude>',  
		insertAfter: '</noinclude>',
		sampleText: '  '
	});
	
		// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/commons/7/79/Button_include.png',
		label: 'Includeonly',
		insertBefore: '<includeonly>',  
		insertAfter: '</includeonly>',
		sampleText: '  '
	});
	
		// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/commons/9/9e/Btn_toolbar_gallery.png',
		label: 'Box',
		insertBefore: '<div style="align: center; padding: 1em; border: solid 2px black; background-color: yellow;"> <center> ',  
		insertAfter: '</center></div <br clear="all">',
		sampleText: '  '
	});
	
		// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/commons/1/17/Button_indevelopment.png',
		label: 'Plainlink',
		insertBefore: '<span class="plainlinks">',  
		insertAfter: '</span>',
		sampleText: '  '
	});
		
		// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/commons/9/98/Button_oppose.png',
		label: 'Oppose',
		insertBefore: '[[File:Symbol oppose vote.svg|15px]] Oppose - ',  
		insertAfter: ' ',
		sampleText: ' '
	});
	
			// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/commons/6/6d/Button_exclamation_1.png',
		label: 'Wait',
		insertBefore: '[[File:Symbol wait vote.svg|15px]] Wait - ',  
		insertAfter: ' ',
		sampleText: ' '
	});

			// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/en/c/c0/Button_link.png',
		label: 'Hovertext',
		insertBefore: '<span style="color:#002BB8; cursor:plain; vertical-align:super;" title="    ">',  
		insertAfter: '</span>',
		sampleText: ' '
	});
	
				// Monkey
	krInsertWikiEditorButton({
		id: 'mw-customeditbutton-anotherspecialbutton',
		icon: 'https://upload.wikimedia.org/wikipedia/commons/4/4e/Button_romain.png',
		label: 'abbr',
		insertBefore: '{{abbr|    |        ',  
		insertAfter: '}}',
		sampleText: ' '
	});
});