User:Bugghost/Scripts/UserRoleIndicator: Difference between revisions

Content deleted Content added
top: roles are from the english wikipedia only
adding documentation for putting labels before the username
Line 38:
'''Note''': unlike [[User:Novem Linguae/Scripts/UserHighlighterSimple|Novem Linguae/Scripts/UserHighlighterSimple]], this script adds new inline elements to the DOM (rather than changing styles of existing DOM elements), and so can make contents of the page jump a small amount when initially loading.
 
== Custom Labels / Placement ==
 
If you don't like the default emoji labels or tooltip texts, you can customise them to be anything you want, including just regular old text.
Line 78:
 
[[File:UserRoleIndicator custom examples.png|UserRoleIndicator custom examples.png]]
 
'''If you want the labels to appear ''before'' the user name''', open up your common.js file and add this line:
 
<syntaxhighlight lang="js" line="1">
this.window.UserRoleIndicatorCustomPlacement = "before";
</syntaxhighlight>
 
Thanks to [[User:Penultimate_supper]] for the feature suggestion!
 
== Bugs, feedback and suggestions ==