User:Cumbril/IPLabeller

From wikishia
User script
IPLabeller
DescriptionEnables user to set labels and/or background colors to anonymous IP addresses
AuthorCumbril
StatusStable
UpdatedApril 25, 2015; Lua error in package.lua at line 80: module 'Module:Date' not found. (2015-04-25)
Browser supportFirefox, Chrome, Internet Explorer
Skin supportVector
SourceUser: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}}


File:IPLabeller script screenshot.png
Here you can see one IP address marked with green, one just given label "John Doe", and one given label "Vandal" and marked red. The IPLabeller form is open at the top right.

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".