(wikia > fandom) |
m (Rappy renamed.) |
||
Line 3: | Line 3: | ||
| Description = Converts text that says "A FANDOM user" to the actual IP address |
| Description = Converts text that says "A FANDOM user" to the actual IP address |
||
| Scope = ps |
| Scope = ps |
||
− | | Author = [[User:Rappy |
+ | | Author = [[User:Rappy|Rappy]]<br />[[User:Mathmagician|Mathmagician]]<br />[[User:Lunarity|Lunarity]] |
| Updated = {{Updated|MediaWiki:RevealAnonIP/code.js}} |
| Updated = {{Updated|MediaWiki:RevealAnonIP/code.js}} |
||
| Code = [[MediaWiki:RevealAnonIP/code.js|code.js]] (wiki-wide use only)<br />[[MediaWiki:RevealAnonIP/usercode.js|usercode.js]] (user scripts only) |
| Code = [[MediaWiki:RevealAnonIP/code.js|code.js]] (wiki-wide use only)<br />[[MediaWiki:RevealAnonIP/usercode.js|usercode.js]] (user scripts only) |
||
Line 121: | Line 121: | ||
:*Works when clicking pagination links on article/blog comments thanks to [[User:Pecoes|Pecoes]] |
:*Works when clicking pagination links on article/blog comments thanks to [[User:Pecoes|Pecoes]] |
||
;A long time ago, in a galaxy far, far, away |
;A long time ago, in a galaxy far, far, away |
||
− | :[[User:Rappy |
+ | :[[User:Rappy|Rappy]], [[User:Monchoman45|Monchoman45]] et. al. first created this script. |
Revision as of 10:51, 21 September 2020
RevealAnonIP unmasks "A FANDOM user" so that their actual IP address can be seen. This works on article/blog comments and on the Special:WikiActivity page. You can also set special permissions so that this tool is only available to, for example, site administrators. Please note that this script has two different installations depending on how you want to use it.
Site-wide installation
User installation
If you are a user who would like to install this script just for yourself, you must include the RevealAnonIP/usercode.js file instead of the /code.js version used in site-wide scripts. This will allow the script to work properly for you in cases where local wiki has set permissions that would otherwise block you. If you're using this script for just yourself, you wouldn't want a local wiki to prevent you from using it with their permissions settings, would you?
Configuration
There is a setting which allows this script to run only for users in specific user groups. To use this configuration setting, you have to add user groups as strings to the permissions array. Here is how the basic syntax works:
// https://dev.fandom.com/wiki/RevealAnonIP
window.RevealAnonIP = {
permissions : ['GROUP1', 'GROUP2', 'GROUP3']
};
Where you should fill in groups 1, 2 and 3 to be the names of the usergroups who have permission to see anon's IP addresses. See the examples below.
Using configuration options with Fandom Developers Wiki scripts
The instructions on this page describe how to use configuration options with a script. Here on the Fandom Developers Wiki, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS
is used to load the scripts, it will be executed last.
// 1. AjaxRC import statement
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:AjaxRC.js'
]
});
// 2. AjaxRC configuration option
window.ajaxRefresh = 30000;
// 1. AjaxRC configuration option
window.ajaxRefresh = 30000;
// 2. AjaxRC import statement
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:AjaxRC.js'
]
});
All logged-in users
This configuration allows the script to work for logged-in users, but it will not run for people who are logged-out. This means that anons cannot see other anons' IP addresses.
// https://dev.fandom.com/wiki/RevealAnonIP
window.RevealAnonIP = {
permissions : ['user']
};
Rollbacks, Admins and Bureaucrats only
This configuration only allows the script to work for users who belong to one of the following user groups: rollback, sysop, bureaucrat
// https://dev.fandom.com/wiki/RevealAnonIP
window.RevealAnonIP = {
permissions : ['rollback', 'sysop', 'bureaucrat']
};
List of user groups
Here is a basic list of user groups you can choose from while setting up permissions. Note: if your wiki is using custom user groups (requires community agreement and sending a message to Fandom staff at Special:Contact), you may have names that aren't on this list.
Value | Description |
---|---|
staff | Fandom staff members (Special:Listusers/staff) |
util | Fandom technical staff (Special:Listusers/util) |
helper | Fandom Helpers (Special:Listusers/helper) |
bureaucrat | Bureacrats on this wiki (Special:Listusers/bureaucrat) |
sysop | Administrators on this wiki (Special:Listusers/sysop) |
rollback | Rollback users on this wiki (Special:Listusers/rollback) |
chatmoderator | Chat moderators on this wiki (Special:Listusers/chatmoderator) |
user | Users on this wiki (Special:Listusers) |
* | Everyone (both logged-in and logged-out users) |
Running this script together with AjaxRC
If you are using AjaxRC, please take note: this script automatically adds the RevealAnonIP.reveal
function to your ajaxCallAgain
array, that way it should work when the ajax refresh occurs. But, if you re-assign this array *after* importing RevealAnonIP/code.js in your JavaScript file, then you'll need to make sure that you re-add RevealAnonIP.reveal
to the array.
window.ajaxCallAgain = [YOUR_FUNCTION_1, YOUR_FUNCTION_2, RevealAnonIP.reveal];
Where YOUR_FUNCTION_1 and YOUR_FUNCTION_2 are placeholder names for other functions that you might want to be calling after AjaxRC refreshes. See AjaxRC#Options for more information about getting other scripts to work together with AjaxRC.
Updates
- 25 October, 2013
- UltimateSupreme added support for Fandom's lazy loading sidebar.
- 4 February 2013
- Lunarity added support for Special:Forum and forum Boards on the new forum.
- 13 January 2013
- Lunarity added support for Special:WikiActivity's paginate feature.
- 11 December 2012
- Lunarity altered the behavior so that it no longer affects walls or threads in the new forums, since they display the IP address automatically anyway.
- 14 September 2012
- Lunarity added RevealAnonIP/usercode.js in order to fix a bug where the script wasn't working properly in global.js, Mathmagician updated this help page.
- 11 September 2012
- Lunarity optimized code a bit, ran through JS Lint, fixed some bugs.
- 24 August 2012
- Mathmagician: Made encapsulation/object-oriented improvements, no feature changes
- 7 August 2012
- Mathmagician: Added fix for WikiaActivityModule per Jens Ingels note on the talk page
- 6 August 2012
- Mathmagician: Added functionality: can optionally restrict this tool to privileged users
- 2 August 2012
- Mathmagician: Integrated some bug fixes / additional functionality
- A long time ago, in a galaxy far, far, away
- Rappy, Monchoman45 et. al. first created this script.