Jump to content

User:Steel359/Protection js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by EVula (talk | contribs) at 20:57, 27 August 2007 (adding link to monobook file). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

  1. ^ From Template:Pp-protected: {{pp-protected|expiry={{subst:#time:F j, Y|+7 days}}}} — wtf is "subst:#time:F j, Y"?