Jump to content

User:Natuur12/global.js

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
if ( mw.config.get( 'wgDBname' ) !== 'nlwiki' && mw.config.get( 'wgDBname' ) !== 'commonswiki' && mw.config.get( 'wgDBname' ) !== 'wikidatawiki' && mw.config.get( 'wgDBname' ) !== 'enwiki') {
// Morebits, a library for Twinkle-like gadgets by AzaToth
     
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/morebits.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript');
mw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/userinfo.js&action=raw&ctype=text/javascript');
       
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.forceltr.js');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Xiplus/Twinkle/twinkle.js&action=raw&ctype=text/javascript');
 
// This tool can tag pages with a few clicks (which is much faster than editing the whole page per Hand).
// by [[m:user:Hoo man]] <//meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Tagger>

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/tagger.js‎&action=raw&ctype=text/javascript');
 
var otherSpeedy = {
    'enwikisource': 'sdelete',
    'commonswiki': 'speedy delete',
};
 
var speedyTemplate = "delete";
if (mw.config.get('wgDBname') in otherSpeedy) {
    speedyTemplate = otherSpeedy[mw.config.get('wgDBname')];
}
 
// [[File:Hoo man/tagger.js‎‎]]
 
//<nowiki>
if(typeof(taggerConfig) == 'undefined') taggerConfig = {};
taggerConfig.tags = [];
taggerConfig.editSummary = [];
taggerConfig.tags[1] = '{{' + speedyTemplate + '|nonsense.}}';
taggerConfig.editSummary[taggerConfig.tags[1]] = '+delete: nonsense';
taggerConfig.tags[2] = '{{' + speedyTemplate + '|test page.}}';
taggerConfig.editSummary[taggerConfig.tags[2]] = '+delete: test page';
taggerConfig.tags[3] = '{{' + speedyTemplate + '|vandalism.}}';
taggerConfig.editSummary[taggerConfig.tags[3]] = '+delete: vandalism';
taggerConfig.tags[4] = '{{' + speedyTemplate + '|spam.}}';
taggerConfig.editSummary[taggerConfig.tags[4]] = '+delete: spam';
taggerConfig.tags[5] = '{{' + speedyTemplate + '|cleanup}}';
taggerConfig.editSummary[taggerConfig.tags[5]] = 'delete';
taggerConfig.tags[6] = '{{' + speedyTemplate + '|out of project scope. }}';
taggerConfig.editSummary[taggerConfig.tags[6]] = '+delete: out of project scope';
taggerConfig.tags[7] = '{{' + speedyTemplate + '|no useful content }}';
taggerConfig.editSummary[taggerConfig.tags[7]] = '+delete: no useful content';
taggerConfig.tags[8] = '{{' + speedyTemplate + '|Broken redirect. }}';
taggerConfig.editSummary[taggerConfig.tags[8]] = '+delete: broken redirect';
taggerConfig.tags[9] = '{{' + speedyTemplate + '|Long-term abuse.}}';
taggerConfig.editSummary[taggerConfig.tags[9]] = '+delete: LTA';
taggerConfig.tags[10] = '{{' + speedyTemplate + '|Not written in the right language.}}';
taggerConfig.editSummary[taggerConfig.tags[10]] = '+delete: wrong language';
taggerConfig.tags[11] = '<' + 'noinclude>{{' + speedyTemplate + '|Unused template or unused redirect to template}}<' + '/noinclude>';
taggerConfig.editSummary[taggerConfig.tags[11]] = '+delete: unused template or redirect to template';
 
taggerConfig.tags.other = 'This is used for the option you have to select to be able to insert a custom template';
//</nowiki>
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );

 }
 
 new mw.Api().saveOption('compact-language-links', 0 );