User:L10nM4st3r/ReportUser

ReportUser is a user script designed to report users in fewer steps. Instead of finding a user, copying the username, navigating to WB:Reading room/Administrative Assistance and manually writing a request to block the user, just go to the users contributions page (or user/talk page), press "report", and write a reason to report them. The script does the rest.

Supported Wikis
The script currently only works on the following wikis:
 * 1) en.wikibooks.org
 * 2) meta

Some of which are not wikimedia wikis:
 * 1) en.uncyclopedia.co

Request for more here.

Installation
Add the following code to your common.js file:

The script does currently not work for admins, since they can just block them. But if you really want to use it for whatever reason, just copy the whole script to your /common.js page and change the line that says  to.

You also cannot report yourself.

If you would like to opt-in for beta tests (not recommended), just replace the  to. Be warned that it might stop working at any time and without warning.

Settings
The following settings can be set at the top of the script. To do so, copy the script to your userspace and import that page to your /common.js subpage instead of the original one.
 * 1) can_report_self - deafult: false - if true, allows you to report yourself. Only used for testing purposes.
 * 2) force_enabled_for_admins - deafult: false - if true, you can use the script even if you are an admin.