User:Chlod/Scripts/UserHighlighter

UserHighlighter
Author(s)theopolisme, Bellezzasolo, Amorymeltzer, Pythoncoder, Chlod
StatusStable
UpdatedFebruary 25, 2021; 3 years ago (2021-02-25)
BrowsersAny modern browser excluding Internet Explorer
SkinsVector
SourceUser:Chlod/Scripts/UserHighlighter.js

UserHighlighter is a script that highlights links to userpages, user talk pages, and contribs pages of administrators, as well as other user groups as listed below. This is a fork of Pythoncoder's version of the UserHighlighter. It has been modified to add tooltips to links to help indicate the group, and includes caching to avoid repeated requests. This version uses two files instead of multiple, which overall cuts the loading time.

Installation

edit

To install the script, add this to your common.js file.

mw.loader.load( '/w/index.php?title=User:Chlod/Scripts/UserHighlighter.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Chlod/Scripts/UserHighlighter.js]]

Features

edit

Groups are listed next to their colors and the number of users in that group. The list is in order (e.g., if a user is an arb and a crat, they will be red).

  • Steward:   × a bunch
  • Arbitrator:   × a few
  • Bureaucrat:   × 15
  • Interface administrator:   × 13
  • Oversight:   × 47
  • CheckUser:   × 58
  • Admin:   × 848
  • Template editor:   × 185
  • Pagemover:   × 406
  • Patroller:   × 812
  • Rollbacker:   × 6,879
  • Reviewer:   × 8,040
  • Extended confirmed:   × 73,224

Source

edit

The source can be found at User:Chlod/Scripts/UserHighlighter.js. Like all Wikipedia pages, the license is CC BY-SA 3.0.

Discussion

edit

You may visit my talk page if you have any concerns.

  NODES
HOME 1
Intern 1
Javascript 1
languages 2
Note 1
text 1
Users 2