User:Cumbril/IPLabeller
IPLabeller | |
---|---|
Description | Enables user to set labels and/or background colors to anonymous IP addresses |
Author | Cumbril |
Status | Stable |
Updated | April 25, 2015 |
Browser support | Firefox, Chrome, Internet Explorer |
Skin support | Vector |
Source | User:Cumbril/IPLabeller.js |
IPLabeller makes it possible to set labels and/or background colors to anonymous IP address user accounts. It works in various listings: Recent changes list, Page history, etc. The original purpose of the script was to make noticing vandalizing IP-s in Recent changes list easier. This can be done, for example, by setting background color of frequently vandalizing IP-s to red. IP addresses with decent contributions can be set to green in turn. However, the other use of the script is to identify specific IP addresses on various Wikipedia pages over time by attaching a label to them.
To use this script: Copy the line below, then click here, paste the line, and hit the save button.
{{subst:iusc|User:Cumbril/IPLabeller.js}}
Optional: If you want to set your own markup colors for the script, add the following code into your common.js file
var colorCodes = { 1:"#FC8888", // red 2:"#ffe299", // yellow 3:"#99FF33" // green };
and change the Hex codes of the colors as desired. You can use W3Schools HTML Color Picker to get Hex codes.
Updates
- 2015/04/25
- Updated CSS, changed from em units to px units, so that scaling up browser font size wouldn't break the div box.
- Text input field has bigger font size now, better readable.
- Replaced the text "Label deleted" with "Label removed".