Jump to content

User:Rusty Cat/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.
// Automatically purge pages
if (mw.config.get('wgAction') === 'purge') {
    $('form[action*="action=purge"]').submit();
}
	
// portlets
$.when(mw.loader.using('mediawiki.util'), $.ready).then(function() {
    mw.util.addPortletLink('p-interaction', '//typos.toolforge.org/', 'Correct typos in one click', 'p-typo', 'Correct typos in one click tool');
    mw.util.addPortletLink('p-interaction', mw.util.getUrl('WP:EFFPR'), 'Edit filter false positivies', 'p-abusefilter', 'Wikipedia edit filter false positive reports');
    mw.util.addPortletLink('p-personal', mw.util.getUrl('Special:NewPagesFeed'), 'Page Curation', 'pt-pagecuration', 'View the new pages feed', null, '#pt-preferences'); // [[User:Schminnte/PageCuration.js]]
});

// general purpose
importScript('User:PleaseStand/userinfo.js'); // Backlink: [[User:PleaseStand/userinfo.js]]

// antivandalism
importScript('User:10nm/beta.js'); // Backlink: [[User:10nm/beta.js]]
importScript('User:Ingenuity/AntiVandal.js'); // Backlink: [[User:Ingenuity/AntiVandal.js]]

// mainspace editing
mw.loader.load('/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Evad37/rater.js]]
mw.loader.load('/w/index.php?title=User:Qwertyytrewqqwerty/DisamAssist.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]
mw.loader.load('/w/index.php?title=User:PerfektesChaos/js/lintHint/r.js&action=raw&maxage=86400&ctype=text/javascript'); // Backlink: [[User:PerfektesChaos/js/lintHint/r.js]]
mw.loader.load('/w/index.php?title=User:Wugapodes/Capricorn.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Wugapodes/Capricorn.js]]
importScript('User:Ohconfucius/script/EngvarB.js'); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]
// mw.loader.load('/w/index.php?title=User:Uziel302/typo.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Uziel302/typo.js]]

// management and noticeboards / admin tools
importScript('User:Elli/OneClickArchiver.js'); // Backlink: [[User:Elli/OneClickArchiver.js]]
// mw.loader.load('/w/index.php?title=User:DannyS712/EFFPRH.js&action=raw&ctype=text/javascript'); // Backlink: [[User:DannyS712/EFFPRH.js]]
mw.loader.load('/w/index.php?title=User:Suffusion_of_Yellow/effp-helper.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Suffusion of Yellow/effp-helper.js]]
mw.loader.load('/w/index.php?title=User:Suffusion_of_Yellow/FilterDebugger.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Suffusion of Yellow/FilterDebugger.js]]
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]
importScript('User:DannyS712/SectionRemover.js'); // Backlink: [[User:DannyS712/SectionRemover.js]]
importScript('User:DannyS712/SectionMover.js'); // Backlink: [[User:DannyS712/SectionMover.js]]
importScript('User:Terasail/COI_Request_Tool.js'); // Backlink: [[User:Terasail/COI_Request_Tool.js]]

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript');
importScript('User:SD0001/BDCS.js'); // Backlink: [[User:SD0001/BDCS.js]]

importScript( 'User:DannyS712/Draft no cat.js' ); // Backlink: [[User:DannyS712/Draft no cat.js]]
importScript( 'User:DannyS712/Draft re cat.js' ); // Backlink: [[User:DannyS712/Draft re cat.js]]
mw.loader.load("//pl.wikipedia.org/w/index.php?title=Wikipedysta:Msz2001/abusefilter-analyzer-primer.js&action=raw&ctype=text/javascript");
importScript('User:Andrybak/Archiver.js'); // Backlink: [[User:Andrybak/Archiver.js]]
importScript('User:Epicgenius/ArticleQuality.js'); // Backlink: [[User:Epicgenius/ArticleQuality.js]]
importScript('User:Fred Gandt/confirmLogout.js'); // Backlink: [[User:Fred Gandt/confirmLogout.js]]

mw.loader.load("http://127.0.0.1:5500");

scriptsToManage = {
	"cv-revdel": "/w/index.php?title=User:Enterprisey/cv-revdel.js&action=raw&ctype=text/javascript", // [[User:Enterprisey/cv-revdel.js]]
	"JWB": "/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript", // [[User:Joeytje50/JWB.js/load.js]]
	"userRightsManager": "/w/index.php?title=User:MusikAnimal/userRightsManager.js&action=raw&ctype=text/javascript", // [[User:MusikAnimal/userRightsManager.js]]
	"MoveToDraft": "/w/index.php?title=User:MPGuy2824/MoveToDraft.js&action=raw&ctype=text/javascript", // [[User:MPGuy2824/MoveToDraft.js]]
	"spihelper": "/w/index.php?title=User:GeneralNotability/spihelper.js&action=raw&ctype=text/javascript", // [[User:GeneralNotability/spihelper.js]]
	"massRollback": "/w/index.php?title=User:Writ Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript", // [[User:Writ Keeper/Scripts/massRollback.js]]
	"responseHelper": "/w/index.php?title=User:MusikAnimal/responseHelper.js&action=raw&ctype=text/javascript",
	"unblock-review": "/w/index.php?title=User:Enterprisey/unblock-review.js&action=raw&ctype=text/javascript", // [[User:Enterprisey/unblock-review.js]]
	"unreliable": "/w/index.php?title=User:Headbomb/unreliable.js&action=raw&ctype=text/javascrip"
};

importScript('User:MusikAnimal/scriptManager.js'); // Backlink: [[User:MusikAnimal/scriptManager.js]]
importScript('User:Ahecht/Scripts/pageswap.js'); // Backlink: [[User:Ahecht/Scripts/pageswap.js]]
importScript('User:BrownHairedGirl/BareURLinline.js'); // Backlink: [[User:BrownHairedGirl/BareURLinline.js]]
mw.loader.load('User:Rusty Cat/autoEdCompleteWithDashes.js'); // Backlink: [[User:Rusty Cat/autoEdCompleteWithDashes.js]]

$.ready(function() {
	importScript('User:Mesidast/Curly_Quotes.js'); // Backlink: [[User:Mesidast/Curly_Quotes.js]]
	importScript('User:Ohconfucius/script/formatgeneral.js'); // Backlink: [[User:Ohconfucius/script/formatgeneral.js]]
	importScript('User:Ohconfucius/script/MOSNUM dates.js'); // Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]
});
importScript('User:Polygnotus/DuplicateReferences.js'); // Backlink: [[User:Polygnotus/DuplicateReferences.js]]
importScript('User:קיפודנחש/cat-a-lot.js'); // Backlink: [[User:קיפודנחש/cat-a-lot.js]]