User:SoWhy/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.
/* Automate purge confirmation dialog */
if ( mw.config.get( 'wgAction' ) === 'purge' ) {
       $('form.mw-htmlform').submit();
}

importScript( 'User:Σ/Testing facility/Archiver.js' ); // Backlink: [[User:Σ/Testing facility/Archiver]]


mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );

mw.loader.load('//www.mediawiki.org/w/index.php?title=XTools/ArticleInfo.js&action=raw&ctype=text/javascript');

importScript("User:Ocaasi/WikiLoveinstallscript.js");// Adds Teahouse Badges to WikiLove

importScript( 'User:Equazcion/ScriptInstaller.js' ); // Backlink: [[User:Equazcion/ScriptInstaller.js]]
importScript('User:DannyS712/DiscussionCloser.js'); //Linkback: [[User:DannyS712/DiscussionCloser.js]] Added by Script installer
importScript('User:SD0001/DYK-helper.js'); //Linkback: [[User:SD0001/DYK-helper.js]] Added by Script installer

// Prevent red links from opening the editor, from https://phabricator.wikimedia.org/T195914#4791617
mw.hook("wikipage.content").add(function() {
  $("a.new").each(function() 
  {
    this.href = this.href.replace("&action=edit","");
  });
});
importScript('User:Anomie/unsignedhelper.js'); //Linkback: [[User:Anomie/unsignedhelper.js]] Added by Script installer
importScript('User:SD0001/RFUD-helper.js'); //Linkback: [[User:SD0001/RFUD-helper.js]] Added by Script installer

importScript('User:Timotheus_Canens/spihelper.js');
importScript('User:Amalthea/culoghelper.js');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Ladsgroup/CheckUserHelper.js&action=raw&ctype=text/javascript');