User:VarunFEB2003/common.js: Difference between revisions

Content deleted Content added
No edit summary
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(9 intermediate revisions by 3 users not shown)
Line 1:
importScript("User:UBX/LiveEditCounter.js");
importScript('User:VarunFEB2003/hideBeta.js'); // Backlink:[[User:VarunFEB2003/hideBeta]]
importScript('User:VarunFEB2003/textFormatter.js'); // Backlink:[[User:VarunFEB2003/textFormatter]]
importScript("User:Another_Article/workflowstudyclient.js");
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
Line 14 ⟶ 13:
// importScript('User:VarunFEB2003/IndianMilitaryBadges.js');
// importScript('User:VarunFEB2003/IndianMilitaryUtility.js');
importScriptURImw.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");
Line 37 ⟶ 36:
importScript( 'User:Equazcion/BetterTwinklePrefs.js' ); // Backlink: [[User:Equazcion/BetterTwinklePrefs.js]]
importScript('User:Equazcion/NoEditSandbox.js'); //Linkback: [[User:Equazcion/NoEditSandbox]]
importScript( 'User:Equazcion/NewSectionSummary.js' ); // Backlink: [[User:Equazcion/NewSectionSummary.js]]
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]]
 
addOnloadHook$(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
)});
addOnloadHook$(function () {
mw.util.addPortletLink(
"p-tb", // toolbox portlet
"http://en.wikipedia.org/wiki/"+wgPageName+"?action=purge&forcerecursivelinkupdate",
"Force Purge" // link label
)});
addOnloadHook$(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: ' '
});
});