User:Dragoniez/Gadget-MarkBLocked

Gadget-MarkBLocked is a script forked from m:User:Dragoniez/Mark (B)Locked Global, initially inspired by en:MediaWiki:Gadget-markblocked.js. This script can be easily incorporated into your local wiki as a gadget, and all you have to do is configure the 'MarkBLocked' JavaScript object for proper localization.

This script: The original markblocked only supports the non-starred feature, primarily because the starred ones could end up in performance issues depending on the browser and computer environments of the editors who use the script. Gadget-MarkBLocked overcomes this issue by preparing preferences settings; the starred features can be enabled/disabled anytime on the preferences page added by the script: These are all the same, differing only in their page titles.
 * Marks up locally blocked users and single IPs
 * (*) Can mark up single IPs included in locally-blocked IP ranges
 * (*) Can mark up globally locked users
 * (*) Can mark up globally blocked single IPs and IP ranges
 * Special:MarkBLockedPreferences
 * Special:MBLP (or Special:MBP)

JavaScript
The source code can be found here.

Gadgets-definition should have a line like the following: (Note: CSS must be loaded independently.)

For localization, configure the following JavaScript object:

CSS
The source code can be found here.

This script adds the following classes to user links: Styles are determined based on which of the last 6 classes a given user link has. There're 26 = 64 combinations, and a list of them can be found on DropBox. Note that the source CSS is intentionally coded verbosely for the purpose of facilitating maintenance.
 * Abbreviations
 * 04: opacity 0.4
 * 07: opacity 0.7
 * ST: strike through
 * DU: dot under
 * RU: red under