Jump to content

User:Makecat/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.
// TWINKLE
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:AzaToth/morebits.js&action=raw&ctype=text/javascript');
// try
// mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:PiRSquared17/twinkle.js&action=raw&ctype=text/javascript');
// popups
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');

// Tagger for eg. Speedy deletions
// by [[m:user:Hoo man]] <//meta.wikimedia.org/wiki/User:Hoo_man/tagger.js>
// [[File:Hoo man/tagger.js]]
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: 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|Out of scope}}';
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.other = 'Others (edit summary is mandatory)';
taggerConfig.customTagDefault = '{{delete|';
//</nowiki>

//mark blocked user
mw.loader.load('//zh.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');

// Shows the number of active sysops
// by [[m:user:Hoo man]] <//meta.wikimedia.org/wiki/User:Hoo_man/active_sysops.js>
// [[File:Hoo man/active_sysops.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/active_sysops.js&action=raw&ctype=text/javascript');
 
// Provides several usefull functions for rollback (custom edit summary, mark as bot edits and mass revert)
// by [[m:user:Hoo man]] <//meta.wikimedia.org/wiki/User:Hoo_man/smart_rollback.js>
// [[File:Hoo man/smart_rollback.js]]
// mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript');
 
// Gives some useful links on user, user talk and user contribution pages
// by [[m:user:Hoo man]] <//meta.wikimedia.org/wiki/User:Hoo_man/useful_links.js>
// [[File:Hoo man/useful_links.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript');

/*************
*** Remove spam
*** by [[m:user:Mike.lifeguard]]
*************/
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Mike.lifeguard/removeSpam.js&action=raw&ctype=text/javascript');

var rbSummaryPrefix = "([[w:zh:User:Makecat/FR|Script]]) ";
mw.loader.load('//zh.wikipedia.org/w/index.php?title=User:Makecat/Scripts/fakerollback.js&action=raw&ctype=text/javascript');