User:Amorymeltzer/scripts
I make use of a stupid amount of user scripts, and am much obliged to the many great programmers for their creations. I occasionally have a specialized need or brief moment of modest insight or curiosity and will modify someone's script for my own purposes. Below are a few such tools that I think others might find most useful; more can be found here. You can use them by adding the appropriate text to your common.js or skin-specific javascript page. Note: I use the modern skin, so be aware that while most continue to work on Vector or MonoBook, my foremost concern is Modern functionality.
Crat Highlighter
[edit]Highlight sysops, bureaucrats, oversighters, checkusers, interface-admins, arbcom members, and stewards while offering customization for multiple groups and style! (source)
- Full documentation at User:Amorymeltzer/crathighlighter
- Install via:
{{subst:iusc|User:Amorymeltzer/crathighlighter.js}}
- Notes: There are lots of options! The full options are listed at User:Amorymeltzer/crathighlighter; you can customize:
- Which group's colors take precedence (i.e. what color a bureaucrat with CU should be)
- The color for each group
- Extra characters or words around the username
- How long the data should be saved for
- The lists typically don't change frequently, but are maintained with a script run hourly on Toolforge, although any sysop is free to update them as well.
- Original source: User:Bellezzasolo/Scripts/adminhighlighter.js (previously User:Amalthea/userhighlighter.js)
CSD Check
[edit]Remove wikitext clutter from deletion dropdown and, if possible, select the correct option; updated to function on block, protect, and revdel menus. (source)
- Install via:
{{subst:iusc|User:Amorymeltzer/csdcheck.js}}
- Notes: For deletion and blocking, THIS ONLY WORKS if you switch the new ooui menus for the old (better) ones. Put this in your custom css:
.oo-ui-dropdownWidget-handle { display: none; } .oo-ui-indicator-down { display: inline !important; }
- Alternatively, put this in your custom js:
if (mw.config.get('wgAction') === 'delete' || mw.config.get('wgCanonicalSpecialPageName') === 'Block') { mw.util.addCSS(".oo-ui-dropdownWidget-handle {display: none;}"); mw.util.addCSS(".oo-ui-indicator-down {display: inline !important;}"); }
- Original source: User:Ale jrb/Scripts/csdcheck.js
EasyBlock Modern
[edit]Popular script to quickly block users; updated to work with the Modern skin. (source)
- Full documentation at User:Animum/EasyBlock
- Install via:
{{subst:iusc|User:Amorymeltzer/easyblock-modern.js}}
- Original source: User:Animum/easyblock.js
Log swap
[edit]Provide a button on Special:Log to swap actions performed by a user with actions performed on that user. (source)
- Install via:
{{subst:iusc|User:Amorymeltzer/logSwap.js}}
- Original source: User:PleaseStand/common.js
History button links
[edit]Make the "compare selected revision" button on history pages a clickable button that you can open in a new tab. For sysops, it does the same for the "change visibility" (revdel) and "edit tags" buttons. (source)
- Install via:
{{subst:iusc|User:Amorymeltzer/historyButtonLinks.js}}
Seven Tabs
[edit]Show edit and history tabs for both main and talk pages; updated to use shorter names, add a section zero editing tab, and display on other related pages like WhatLinksHere. Optimized for Modern. (source)
- Notes: Add
window.zeroCool = false;
to your custom js to turn off the section 0 tab - Install via:
{{subst:iusc|User:Amorymeltzer/sixtabs.js}}
- Original source: Wikipedia:WikiProject User scripts/Scripts/Six tabs
User Info
[edit]Show edit count, age of account, permissions, and last edit time for a user; updated to show info on all user subpages and related pages like logs and contributions, as well as indicate user-selected gender/pronoun preference. (source)
- Install via:
{{subst:iusc|User:Amorymeltzer/userinfo.js}}
- Notes: If you don't want it to show up for own pages, add
window.userinfoHideSelf = true;
alongside the above - Original source: User:PleaseStand/userinfo.js
Old AfD
[edit]Change the color of an XfD page when it's (close to being) ready to close.
WhatLinksHere action links
[edit]Show edit and history (and delete if user is a sysop) links on Special:WhatLinksHere; updated to use english, only show up on Special:WhatLinksHere, and be more readable. (source)
- Install via:
{{subst:iusc|User:Amorymeltzer/wlhActionLinks.js}}
- Original source: meta:User:He7d3r/Tools/AddActionLinks.js