User:Tulsi/global.js
(Redirected from User:Tulsi Bhagat/global.js)
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 ( $.inArray( mw.config.get("wgDBname"), ['enwiki', 'commonswiki', 'newiki', 'maiwiki', 'wikidatawiki', 'simplewiki', 'mediawikiwiki', 'metawiki'] ) === -1 ) {
// 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');
/** 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]] <https://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Tagger>
* Idea from MarcoAurelio to disable the script on some particular wikis
* <https://meta.wikimedia.org/w/index.php?diff=19453107#Disable_Tagger_script_for_a_particular_project>
*/
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/tagger.js&action=raw&ctype=text/javascript');
}
// Customisation
// <nowiki>
if(typeof(taggerConfig) == 'undefined') taggerConfig = {};
taggerConfig.tags = [];
taggerConfig.editSummary = [];
taggerConfig.tags[1] = '{{delete|vandalism}}';
taggerConfig.editSummary[taggerConfig.tags[1]] = '+Delete, vandalism ([[m:SWMT|SWMT]])';
taggerConfig.tags[2] = '{{delete|spam or promotional}}';
taggerConfig.editSummary[taggerConfig.tags[2]] = '+Delete, spam or promotional ([[m:SWMT|SWMT]])';
taggerConfig.tags[3] = '{{delete|no useful content or article}}';
taggerConfig.editSummary[taggerConfig.tags[3]] = '+Delete, no useful content ([[m:SWMT|SWMT]])';
taggerConfig.tags[4] = '{{delete|out of project scope}}';
taggerConfig.editSummary[taggerConfig.tags[4]] = '+Delete, out of project scope ([[m:SWMT|SWMT]])';
taggerConfig.tags[5] = '{{delete|nonsense}}';
taggerConfig.editSummary[taggerConfig.tags[5]] = '+Delete, nonsense ([[m:SWMT|SWMT]])';
taggerConfig.tags[6] = '{{delete|not in this project\'s language}}';
taggerConfig.editSummary[taggerConfig.tags[6]] = '+Delete, not in project\'s language ([[m:SWMT|SWMT]])';
taggerConfig.tags[7] = '{{delete|test or empty}}';
taggerConfig.editSummary[taggerConfig.tags[7]] = '+Delete, test or empty ([[m:SWMT|SWMT]])';
taggerConfig.tags[8] = '{{delete|requested by the author}}';
taggerConfig.editSummary[taggerConfig.tags[8]] = '+Delete, requested by the author ([[m:SWMT|SWMT]])';
// </nowiki>
// TwinkleGlobal - [[User:Xiplus/TwinkleGlobal]]
if (['enwiki', 'newiki', 'maiwiki', 'wikidatawiki', 'simplewiki', 'mediawikiwiki'].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');
}
// 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');
if(typeof(smartRollbackConfig) === 'undefined') smartRollbackConfig = {};
smartRollbackConfig.enableMarkbotedits = true;
// 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>
// Updated version by [[User:Tulsi Bhagat]], 17-Mar-2019
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Tulsi/useful_links.js&action=raw&ctype=text/javascript');
// [[User:Defender/HideButtonsFromNonGsProjects.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Elton/HideButtonsFromNonGsProjects.js&action=raw&ctype=text/javascript');
/**
* Prompt for an edit summary when clicking on a [rollback] link
* Adapted from [[en:User:Ilmari Karonen/rollbacksummary.js]] <https://en.wikipedia.org/wiki/User:Ilmari_Karonen/rollbacksummary.js>
* Remix by [[User:Tulsi Bhagat]] <https://meta.wikimedia.org/wiki/User:Tulsi_Bhagat>
*/
//Disabled //mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Tulsi/rollbacksummary.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');
// XTools
// https://www.mediawiki.org/wiki/XTools#ArticleInfo_gadget
mw.loader.load('//www.mediawiki.org/w/index.php?title=XTools/ArticleInfo.js&action=raw&ctype=text/javascript');
/**
* [[Wikipedia:Tools/Navigation popups]]
* See <https://en.wikipedia.org/wiki/Wikipedia:Tools/Navigation_popups>
*/
mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups');
// GS Rationale by [[User:WhitePhosphorus]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/GS Rationale.js&action=raw&ctype=text/javascript');
// massBlock, CleanDeleteReasons and nukeAll by [[User:Tks4Fish]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Tks4Fish/massBlock.js&action=raw&ctype=text/javascript');
//Disabled // mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Tks4Fish/CleanDeleteReasons.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Tks4Fish/nukeAll.js&action=raw&ctype=text/javascript');
// MoreMenu
mw.loader.load('https://meta.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:MoreMenu.import.js');
// Mark (B)Locked Global [[User:Dragoniez/Mark BLocked Global.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Dragoniez/Mark BLocked Global.js&action=raw&ctype=text/javascript');
// UrlShortener
// From https://fr.wikipedia.org/wiki/MediaWiki:Gadget-ShortenUrl.js
mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ShortenUrl.js&action=raw&ctype=text/javascript');
// UTC Live Clock
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript');
// Global Search
// [[User:Tulsi Bhagat/globalsearch.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Tulsi/globalsearch.js&action=raw&ctype=text/javascript');
// [[User:Tulsi Bhagat/massdelete.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Tulsi/massdelete.js&action=raw&ctype=text/javascript');
// Replace the "new section" tab text with "+"
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-addsection-plus.js&action=raw&ctype=text/javascript');