Jump to content

User:Uncitoyen/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.
/*************
*** 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');

/**
 * Forces left-to-right layout and editing on RTL wikis.
 * @see https://meta.wikimedia.org/wiki/Force_ltr
 * @update-token [[File:pathoschild/forceltr.js]]
 */
//mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.forceltr.js');

/**********
*** StewardLinks
*** by [[m:User:Erwin]]
**********/
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Uncitoyen/stewardlinks.js&action=raw&ctype=text/javascript');

/*****************
*** Blocked users
*****************/
// mw.loader.load('//meta.wikimedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');

/*************
*** Gives some useful links on user, user talk and user contribution pages
*** by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Useful_links>
**************/
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript');

// Provides several useful functions for rollback (custom edit summary, mark as bot edits and mass revert)
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Smart_rollback>
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript');

// Fork of Twinkle intended to work on as many wikis as possible
if (['trwiki', 'enwiki'].indexOf(mw.config.get('wgDBname')) === -1) {
    mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Xiplus/TwinkleGlobal/load.js&action=raw&ctype=text/javascript');
}

// Wiki-Labels [[File:User:EpochFail/WikiLabels.js]]
mw.loader.load( '//labels.wmflabs.org/gadget/loader.js' );

mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:He7d3r/Tools/ScoredRevisions.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.markWikisGS = true;

//GRQ – Global Rename Queue
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Nadzik/GRQ.js&action=raw&ctype=text/javascript');

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

if (typeof(window.p4js_gs_rationale) === 'undefined') window.p4js_gs_rationale = {};
/*
 * One reason per line (or whatever you like if you know JavaScript well).
 * Don't forget quotes and the comma. If your reason includes a quote, replace it with \" or use single quotes instead.
 *
 * <nowiki>
 */
// delete, block and protect reasons
window.p4js_gs_rationale.common = [];
// delete and block reasons (as they sometimes overlap)
window.p4js_gs_rationale.del_block = [
    "spam",
    "vandalism",
];
// delete reasons
window.p4js_gs_rationale.del = [
    "no useful content",
    "nonsense",
    "test page",
    "not written in this project's language",
    "author request",
    "out of project scope",
    "empty",
    "broken redirect",
];
// block reasons
window.p4js_gs_rationale.block = [
    "intimidating behaviour/harassment",
    "cross-wiki vandalism",
    "spambot",
    "spam-only account",
    "open proxy ([[m:No open proxies|more info]])",
];
// protect reasons
window.p4js_gs_rationale.protect = [
    "persistent vandalism",
    "persistent spamming",
    "protection against re-creation",
];
window.p4js_gs_rationale.position = "top"; // "bottom" or "top". If "top", the global reasons will show on top of the select box.
/* </nowiki> */

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