User:Thehelpfulone/global.js: Difference between revisions
Content deleted Content added
import +1 |
move to global |
||
(33 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
// Global js, loaded on every wiki |
// Global js, loaded on every wiki |
||
⚫ | |||
// [[File:Krinkle_Vector_LTR.js]] |
|||
⚫ | |||
/** |
|||
// XWikiRollback |
|||
* Forces left-to-right layout and editing on RTL wikis. |
|||
⚫ | |||
* @see https://meta.wikimedia.org/wiki/Force_ltr |
|||
// sadly this a slight security risk |
|||
* @update-token [[File:pathoschild/forceltr.js]] |
|||
⚫ | |||
*/ |
|||
//mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.forceltr.js'); |
|||
// Range contribs |
// Range contribs |
||
// by [[m:user:Mike.lifeguard]] < |
// by [[m:user:Mike.lifeguard]] <//meta.wikimedia.org/wiki/User:Mike.lifeguard/rangeContribs.js> |
||
mw.loader.load(' |
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Mike.lifeguard/rangeContribs.js&action=raw&ctype=text/javascript'); |
||
// Provides several |
// Provides several useful functions for rollback (custom edit summary, mark as bot edits and mass revert) |
||
// by [[m:user:Hoo man]] < |
// by [[m:user:Hoo man]] <//meta.wikimedia.org/wiki/User:Hoo_man/smart_rollback.js> |
||
// [[File:Hoo man/smart_rollback.js]] |
// [[File:Hoo man/smart_rollback.js]] |
||
mw.loader.load(' |
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript'); |
||
// Gives some |
// Gives some useful links on user, user talk and user contribution pages |
||
// by [[m:user:Hoo man]] < |
// by [[m:user:Hoo man]] <//meta.wikimedia.org/wiki/User:Hoo_man/useful_links.js> |
||
// [[File:Hoo man/useful_links.js]] |
// [[File:Hoo man/useful_links.js]] |
||
mw.loader.load(' |
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript'); |
||
// Tagger (example, speedy deletions) |
// Tagger (example, speedy deletions) |
||
// By [[m:User:Hoo man]] |
// By [[m:User:Hoo man]] |
||
mw.loader.load(' |
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/tagger.js&action=raw&ctype=text/javascript'); |
||
if(typeof(taggerConfig) == 'undefined') taggerConfig = {}; |
if(typeof(taggerConfig) == 'undefined') taggerConfig = {}; |
||
⚫ | |||
taggerConfig.tags = {}; |
taggerConfig.tags = {}; |
||
taggerConfig.editSummary = {}; |
taggerConfig.editSummary = {}; |
||
taggerConfig.tags[1] = '{{delete|No meaningful content}}~~~~'; |
taggerConfig.tags[1] = '{{delete|No meaningful content}}~~~~'; |
||
taggerConfig.editSummary[taggerConfig.tags[1]] = 'delete — no meaningful content'; |
taggerConfig.editSummary[taggerConfig.tags[1]] = 'delete — no meaningful content'; |
||
taggerConfig.tags[2] = '{{delete| |
taggerConfig.tags[2] = '{{delete|Not an article}}~~~~'; |
||
taggerConfig.editSummary[taggerConfig.tags[2]] = ' |
taggerConfig.editSummary[taggerConfig.tags[2]] = 'delete — not an article'; |
||
taggerConfig.tags[3] = '{{delete| |
taggerConfig.tags[3] = '{{delete|Tiny create}}~~~~'; |
||
taggerConfig.editSummary[taggerConfig.tags[3]] = 'delete — |
taggerConfig.editSummary[taggerConfig.tags[3]] = 'delete — tiny create'; |
||
taggerConfig.tags[4] = '{{delete| |
taggerConfig.tags[4] = '{{delete|Copyright violation}}~~~~'; |
||
taggerConfig.editSummary[taggerConfig.tags[4]] = 'delete — |
taggerConfig.editSummary[taggerConfig.tags[4]] = 'delete — copyright violation'; |
||
taggerConfig.tags[5] = '{{delete| |
taggerConfig.tags[5] = '{{delete|Local page of a Commons file}}~~~~'; |
||
taggerConfig.editSummary[taggerConfig.tags[5]] = 'delete — |
taggerConfig.editSummary[taggerConfig.tags[5]] = 'delete — this file exists on Commons'; |
||
taggerConfig.tags[6] = '{{delete| |
taggerConfig.tags[6] = '{{delete|Blanked by author}}~~~~'; |
||
taggerConfig.editSummary[taggerConfig.tags[6]] = 'delete — |
taggerConfig.editSummary[taggerConfig.tags[6]] = 'delete — blanked by author'; |
||
taggerConfig.tags[7] = '{{delete|Blanked by author}}~~~~'; |
|||
taggerConfig.editSummary[taggerConfig.tags[7]] = 'delete — blanked by author'; |
|||
taggerConfig.tags.other = 'Others (edit summary is mandatory)'; |
taggerConfig.tags.other = 'Others (edit summary is mandatory)'; |
||
taggerConfig.customTagDefault = '{{delete|'; |
taggerConfig.customTagDefault = '{{delete|'; |
||
⚫ | |||
// Shows the number of active sysops |
// Shows the number of active sysops |
||
// by [[m:user:Hoo man]] < |
// by [[m:user:Hoo man]] <//meta.wikimedia.org/wiki/User:Hoo_man/active_sysops.js> |
||
// [[File:Hoo man/active_sysops.js]] |
// [[File:Hoo man/active_sysops.js]] |
||
mw.loader.load(' |
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/active_sysops.js&action=raw&ctype=text/javascript'); |
||
⚫ | |||
//Disable active_sysops on a few wikis, on which I don't need it |
|||
⚫ | |||
if(wgDBname in { dewiki:1, enwiki:1, eswiki:1, ptwiki:1, nlwiki:1, ruwiki:1, frwiki:1, plwiki:1, itwiki:1, jawiki:1, svwiki:1, zhwiki:1, metawiki:1 } ) { |
|||
var disable_activeSysops = true; |
|||
} |
|||
// Useful script to tell if a user is currently blocked |
|||
⚫ | |||
⚫ | |||
/* Make user groups more obvious when viewing user pages */ |
|||
// Twinkle rollback function - [[en:WP:TWINKLE]] |
|||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/userinfo.js&action=raw&ctype=text/javascript'); |
|||
importScriptURI('http://en.wikipedia.org/w/index.php?title=User:AzaToth/twinklefluff.js&action=raw&ctype=text/javascript'); |
|||
// A tool very similar to the Nuke extension, but with more features |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
mw.loader.load(' |
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/commonHistory.js&action=raw&ctype=text/javascript'); // Adds in-line "inspect diff" links |
||
inlineDiffSmallUI = true; |
|||
// A helpful script to move links from the Dropdown tab in the Vector skin to individual tabs instead. |
|||
// by [[m:user:Hoo man]] |
|||
⚫ |
Latest revision as of 01:25, 16 January 2016
// Global js, loaded on every wiki
/**
* 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');
// Range contribs
// by [[m:user:Mike.lifeguard]] <//meta.wikimedia.org/wiki/User:Mike.lifeguard/rangeContribs.js>
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Mike.lifeguard/rangeContribs.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]] <//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');
// Tagger (example, speedy deletions)
// 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');
if(typeof(taggerConfig) == 'undefined') taggerConfig = {};
// <nowiki>
taggerConfig.tags = {};
taggerConfig.editSummary = {};
taggerConfig.tags[1] = '{{delete|No meaningful content}}~~~~';
taggerConfig.editSummary[taggerConfig.tags[1]] = 'delete — no meaningful content';
taggerConfig.tags[2] = '{{delete|Not an article}}~~~~';
taggerConfig.editSummary[taggerConfig.tags[2]] = 'delete — not an article';
taggerConfig.tags[3] = '{{delete|Tiny create}}~~~~';
taggerConfig.editSummary[taggerConfig.tags[3]] = 'delete — tiny create';
taggerConfig.tags[4] = '{{delete|Copyright violation}}~~~~';
taggerConfig.editSummary[taggerConfig.tags[4]] = 'delete — copyright violation';
taggerConfig.tags[5] = '{{delete|Local page of a Commons file}}~~~~';
taggerConfig.editSummary[taggerConfig.tags[5]] = 'delete — this file exists on Commons';
taggerConfig.tags[6] = '{{delete|Blanked by author}}~~~~';
taggerConfig.editSummary[taggerConfig.tags[6]] = 'delete — blanked by author';
taggerConfig.tags.other = 'Others (edit summary is mandatory)';
taggerConfig.customTagDefault = '{{delete|';
// </nowiki>
// 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');
// [[File:Krinkle_CVNSimpleOverlay_wiki.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/CVNSimpleOverlay_wiki.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');
/* Make user groups more obvious when viewing user pages */
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/userinfo.js&action=raw&ctype=text/javascript');
// A tool very similar to the Nuke extension, but with more features
// by [[m:user:Hoo man]] <//meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Sledge_Hammer>
// mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/sledgeHammer.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ Keeper/Scripts/commonHistory.js&action=raw&ctype=text/javascript'); // Adds in-line "inspect diff" links
inlineDiffSmallUI = true;
// A helpful script to move links from the Dropdown tab in the Vector skin to individual tabs instead.
// by [[m:user:Hoo man]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/vectorActions.js&action=raw&ctype=text/javascript');