MediaWiki:Gadget-twinkleprotect.js

//

(function($) {

/* **************************************** *** twinkleprotect.js: Protect/RPP module **************************************** * Mode of invocation:    Tab ("PP"/"RPP") * Active on:             Non-special, non-MediaWiki pages */

// Note: a lot of code in this module is re-used/called by batchprotect.

Twinkle.protect = function twinkleprotect { if (mw.config.get('wgNamespaceNumber') < 0 || mw.config.get('wgNamespaceNumber') === 8) { return; }