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)
 
(4 intermediate revisions by 2 users not shown)
Line 1:
mw.loader.using( [ 'mediawiki.api' ], function () {
if ( mw.config.get( 'wgAction' ) !== 'purge' ) {
return;
}
new mw.Api().post( {
action: 'purge',
titles: mw.config.get( 'wgPageName' )
} ).then( function () {
___location.replace(
___location.pathname +
___location.search
.replace( /(?:\?|&)action=purge$/ , '' )
.replace( /(\?|&)action=purge&/ , '$1' ) +
___location.hash
);
}, function ( e ) {
console.log( 'Purge failed', e );
} );
} );
 
importScript("User:UBX/LiveEditCounter.js");
importScript('User:VarunFEB2003/hideBeta.js'); // Backlink:[[User:VarunFEB2003/hideBeta]]
Line 33 ⟶ 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 51 ⟶ 31:
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]]
Line 57 ⟶ 38:
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",