User:Shahadat/reportSpam
Jump to navigation
Jump to search
reportSpam | |
---|---|
Author(s) | User:Shahadat |
First released | February 18, 2019 |
Browser support | Google Chrome, Firefox |
Source | User:Shahadat/reportSpam.js |
A user script to help recent changes patrollers report spambots quickly.
Installation
- Append
{{subst:iusc|User:Shahadat/reportSpam.js}}
to Special:MyPage/skin.js or Special:MyPage/common.js.
Usage
- Click the "report spam" option next to the user "talk" and "contribution" links on these special pages related to user contributions: Special:RecentChanges and Special:Contributions.
Configuration
For optional configurations, create a global object named reportSpam_customconfig
.
Key | Type | Default | Detail |
---|---|---|---|
debug | boolean | false
|
If set to true, all error messages and logs will be printed to the browser console. |
disable_notification | boolean | false
|
If set to true, the "mw.notify() "—the popup-ish thing—will be disabled.
|
report_page | string | "Justapedia:Administrator intervention against vandalism"
|
The page to submit reports to. There's no reason to modify this unless you want to run it on your sandbox. |
edit_summary | string | "Added report for a possible spambot: [[Special:Contributions/$username|$username]] ([[User:Shahadat/reportSpam|reportSpam]])"
|
The $username is a placeholder which gets replaced by the username of the user being reported.
|
Example
var reportSpam_customconfig = {
debug: true,
edit_summary: "Added report for $username."
};
Script Attribution
![]() | This script was manually imported from Wikipedia in compliance with their CC-BY-SA license. This script is utilized either partially or in full, incorporating corrections, modifications, or imported from the original script. For details regarding the original script and its creator, please refer to the following link: https://en.wikipedia.org/wiki/User:Rutilant/reportSpam |