Jump to content

User:Shanmugamp7/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") !== "enwiki" && mw.config.get("wgDBname") !== "tawiki"  ) {

// TWINKLE
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/morebits.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:PiRSquared17/twinkle.js&action=raw&ctype=text/javascript');

// Tagger 
// By [[m:User:Hoo man]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/tagger.js&action=raw&ctype=text/javascript');

//<nowiki>
if(typeof(taggerConfig) == 'undefined') taggerConfig = {};
taggerConfig.tags = {};
taggerConfig.editSummary = {};
taggerConfig.tags[1] = '{{delete|No meaningful content}}';
taggerConfig.editSummary[taggerConfig.tags[1]] = 'Delete — little or no meaningful content';
taggerConfig.tags[2] = '{{delete|Nonsense / test}}';
taggerConfig.editSummary[taggerConfig.tags[2]] = 'Delete - nonsense / test ';
taggerConfig.tags[3] = '{{delete|Vandalism}}';
taggerConfig.editSummary[taggerConfig.tags[3]] = 'Delete — vandalism';
taggerConfig.tags[4] = '{{delete|Outside of the scope of the project}}';
taggerConfig.editSummary[taggerConfig.tags[4]] = 'Delete — out of scope';
taggerConfig.tags[5] = '{{delete|Spam}}';
taggerConfig.editSummary[taggerConfig.tags[5]] = 'Delete — spam/ad';
taggerConfig.tags[6] = '{{delete|Copyright violation}}';
taggerConfig.editSummary[taggerConfig.tags[6]] = 'Delete — copyright violation';
taggerConfig.tags[7] = '{{delete|cross wiki spam}}';
taggerConfig.editSummary[taggerConfig.tags[7]] = 'Delete — cross wiki spam';
taggerConfig.tags[8] = '{{delete|Blanked by author}}';
taggerConfig.editSummary[taggerConfig.tags[8]] = 'Delete — blanked by author';
taggerConfig.tags[9] = '{{delete}}';
taggerConfig.editSummary[taggerConfig.tags[9]] = 'Delete';
taggerConfig.tags[10] = '{{delete|Redirect to deleted or non existing page}}';
taggerConfig.editSummary[taggerConfig.tags[10]] = 'Deletion request-Redirect to deleted or non existing page';

taggerConfig.tags.other = 'Others (edit summary is mandatory)';
taggerConfig.customTagDefault = '{{delete|';
//</nowiki>
// By [[m:User:Krinkle]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/Countervandalism.js&action=raw&ctype=text/javascript');


//The usual popups by Lupin
// [[wikipedia:User:Lupin/popups]]
//mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Shanmugamp7/popups.js&action=raw&ctype=text/javascript");
// [[Wikipedia:Tools/Navigation popups]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', 'text/css');

// Shows the number of active (one log entry in the last 7 days, or as configured) sysops, uses data from the toolserver
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Active_sysops>
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/active_sysops.js‎&action=raw&ctype=text/javascript');

//mw.loader.load('//incubator.wikimedia.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript');
 
// Useful script to tell if a user is currently blocked
mw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');


mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Snowolf/GS_delete.js&action=raw&ctype=text/javascript');


// Shows the number of active (one log entry in the last 7 days, or as configured) sysops, uses data from the toolserver
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Active_sysops>
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/active_sysops.js‎&action=raw&ctype=text/javascript');
if(typeof(activeSysopsConfig) == 'undefined') activeSysopsConfig = {};
activeSysopsConfig.markWikisActiveSysops = true;


/**
 * StewardScript extends the user interface for Wikimedia stewards' convenience.
 * @see https://meta.wikimedia.org/wiki/StewardScript
 */
$.getScript('//tools.wmflabs.org/meta/scripts/pathoschild.stewardscript.js');
}


//GR
if ((mw.config.get('wgCanonicalSpecialPageName') === "GlobalRenameQueue") && document.getElementById('mw-renamequeue-reason')) document.getElementById('mw-renamequeue-reason').value = 'see [[m:'+mw.config.get('wgPageName')+']]';
//lock reason
if ((mw.config.get('wgCanonicalSpecialPageName') === "CentralAuth") && document.getElementById('wpReasonList')) 
document.getElementById('wpReasonList').value = 'Spam only account : Spambot';


//suppress 
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:DerHexer/hideuser.js&action=raw&ctype=text/javascript');