Wikizine/2006-29-javascript-Special-Blockip

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

Change default options block-page[edit]

Add this to User:YourUsername/monobook.js (no guarantees about other skins) or the project-wide page MediaWiki:Monobook.js after local aproval.

// To check "block anonymous users only":
// Always check "block anons only" on Special:Blockip 

addOnloadHook(function(){ var x; if (x=document.getElementById('wpAnonOnly')) {x.checked=true;} });

// To uncheck "Prevent account creation":
// Always uncheck "Prevent account creation" on Special:Blockip

addOnloadHook(function(){ var x; if (x=document.getElementById('wpCreateAccount')) {x.checked=false;} });


This script is written by w:en:User:Lupin


Back to Wikizine