Jump to content

User:Galobtter/scripts/adminhighlighter

From Wikipedia, the free encyclopedia
Admin Highlighter
DescriptionHighlight admin usernames
Author(s)Galobtter
UpdatedMay 2, 2023
    (19 months ago)
SkinsAll
SourceUser:Galobtter/scripts/adminhighlighter.js

Admin highlighter highlights links to admins' userpages, talkpages, or contributions pages by giving them a lightly colored background along with dots around the username. To install it, add {{subst:js|User:Galobtter/scripts/adminhighlighter.js}} to your common.js page.

This is derivative of User:Theopolisme/Scripts/adminhighlighter.js and which is a derivative of previous scripts by User:Amalthea and User:Ais523. Improvements include a more pleasant highlighting that has a better contrast, and caching of the admin list for faster loading.

Additional options

[edit]

If you add the following text to the top of your common.js page

window.ADMINHIGHLIGHT_EXTLINKS = true;

external links to admin user/talk/contributions pages will be highlighted as well (for example, enabling the above option will cause this diff to be highlighted).