Jump to content

User:Steel359/Protection js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Steel (talk | contribs) at 21:46, 6 May 2007 (-). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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

// 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"?