Jump to content

User:Theopolisme/Scripts/adminhighlighter

From Wikipedia, the free encyclopedia

Admin highlighter (source code) highlights links to admins' userpages, talkpages, or contributions pages in bodyContent (that is, everything but the tabs, personal links at the top of the screen, and sidebar) by giving them a colored background. To install it, add {{subst:js|User:Theopolisme/Scripts/adminhighlighter.js}} to your common.js page and clear your cache.

Custom background color

[edit]

By default, the colored background is a cyan color. To modify it, add

a.userhighlighter_sysop.userhighlighter_sysop {background-color: #E7E7E7 !important}

to your common.css page, where #E7E7E7 is the HTML color code of your desired background color.

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 [https://en.wikipedia.org/w/index.php?title=User_talk:Legoktm&diff=577155024&oldid=577151098] to be highlighted).