User:Bellezzasolo/Scripts/adminhighlighter
| adminhighlighter.js | |
|---|---|
WP:NPOVN shows the default colours for all user groups | |
| Description | User rights highlighter - admins and extended confirmed, some PERMs |
| Author | Bellezzasolo |
| Status | γ Release Candidate 1 |
| Version | 2.0.0 |
| Updated | August 10, 2022 (3 years ago) |
| Browsers | Any modern browser or IE9+ |
| Skins | All |
| Source | User:Bellezzasolo/Scripts/adminhighlighter.js |
User highlighter v2.0 (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:Bellezzasolo/Scripts/adminhighlighter.js}} to your common.js page and clear your cache. It will also highlight template editors, extended confirmed users, page movers, new page patrollers and pending change reviewers.
Custom background color
By default, the colored background is a gold color for admins and a pink color for template editors. The default colours correspond to the padlock icons that the user group may edit. To modify it, add
a.userhighlighter_excon.userhighlighter_excon {background-color: #E7E7E7 !important}a.userhighlighter_pcusr.userhighlighter_pcusr {background-color: #E7E7E7 !important}a.userhighlighter_ptusr.userhighlighter_ptusr {background-color: #E7E7E7 !important}a.userhighlighter_pgmvr.userhighlighter_pgmvr {background-color: #E7E7E7 !important}a.userhighlighter_temop.userhighlighter_temop {background-color: #E7E7E7 !important}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.
Note that these should be listed in reverse order of priority - sysop here will override all other highlights.
Additional options
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).
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.