User:MusikAnimal/spamublock
spamublock.js | |
---|---|
Author(s) | MusikAnimal |
Status | Stable |
Updated | February 20, 2015 |
Browsers | Any modern browser, IE8+ |
Skins | Vector, Monobook, probably others |
Source | User:MusikAnimal/spamublock.js |
spamublock.js is a user script that expedites the all too common {{uw-spamublock}} scenario. That is, you have a WP:G11 user page of a user with promotional user name.
What it does
[edit]If you are on any page in the userspace, there will be a {{spamublock}} link in your cactions menu (the "More" menu on Vector skin, or the top toolbar on Monobook). Alternatively there is separate script to put the link in your toolbox (see #Setup).
Once clicked you are prompted for confirmation, then the following will occur:
- Deletes the page you are on, as (G11: Unambiguous advertising or promotion)
- Blocks the user indefinitely as ({{uw-spamublock}} <!-- Promotional username, promotional edits -->), with account creation blocked and autoblock enabled
- Adds the template {{uw-spamublock}} to the bottom of the user's talk page
You can use your own template instead, just create it at Special:MyPage/uw-spamublock and the script will use that instead of {{uw-spamublock}}.
Setup
[edit]Add the following to your common.js:
{{subst:lusc|User:MusikAnimal/spamublock.js}}
If you want the link to be in your toolbox rather than the cactions menu, use this instead:
{{subst:lusc|User:MusikAnimal/spamublock-toolbox.js}}