MediaWiki:Gadget-HotCat.js
From TWC Wiki
Revision as of 13:57, 20 April 2019 by GrnEyedDvl (talk | contribs) (Created page with "if (typeof (HotCat) != 'undefined') { HotCat.uncat_regexp = /\{\{\s*([Uu]ncat(egori[sz]ed)?|[Nn]ocat|[Nn]eedscategory|[Cc]ategori[sz]e)[^}]*\}\}/g ; HotCat.single_minor =...")
Note: After saving, 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)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
if (typeof (HotCat) != 'undefined') { HotCat.uncat_regexp = /\{\{\s*([Uu]ncat(egori[sz]ed)?|[Nn]ocat|[Nn]eedscategory|[Cc]ategori[sz]e)[^}]*\}\}/g ; HotCat.single_minor = false; HotCat.use_up_down = false; HotCat.upload_disabled = true; HotCat.redir_category = 'Wikipedia soft redirected categories'; HotCat.disambig_category = 'Disambiguation categories'; HotCat.messages.using = ' using [[WP:HC|HotCat]]'; //Blacklisted categories cannot be added through HotCat. HotCat.blacklist = /\b[Ss]tubs?$|^[Ss]tubs?\b|\b[Dd]isambiguation pages$|^[Rr]edirect(?:s|ed)?\b/; // Clicks on (-) will always go through the diff screen HotCat.del_needs_diff = true; // Non-confirmed users will always go through the diff screen. HotCat.no_autocommit = (function (default_setting) { if ((mw.config.get('wgUserGroups').join(' ') + ' ').indexOf('confirmed ') < 0) return true; return default_setting; })(HotCat.no_autocommit); // Disable for non-logged-in users HotCat.disable = (function (default_disable) { return function () { if (!mw.config.get('wgUserName')) return true; return default_disable(); }; })(HotCat.disable); // improve visual distinction between positive- and negative-indicator icons HotCat.existsNo = '//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/P_no_red.svg/20px-P_no_red.svg.png'; }