User:Steel359/Protection js
Appearance
Current features
- Respond to Wikipedia:Requests for page protection requests in two clicks.
- Tag protected articles with those {{pp-protected}} templates that no-one can ever remember the names of. Does the funny subst stuff[1] for expiry times automagically.
- Adds a version of ^demon's CSD AutoReason to the confirm protection page - no typing required.
Installation
Add the following to your monobook.js:
// [[User:Steel359/protection.js]] importScript('User:Steel359/protection.js');
Credit
Basic structure taken from WikiProject User scripts/Scripts/CloseAFD.js, regex from Eagle 101. Thanks to ^demon for letting me tear apart his autoreason script.
Notes
- ^ From Template:Pp-protected:
{{pp-protected|expiry={{subst:#time:F j, Y|+7 days}}}}
— wtf is "subst:#time:F j, Y"?