MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/* https://github.com/Hitchwiki/hitchwiki/issues/23 */ if ($('body.mw-special-Block')) { console.log('MediaWiki:Common.js in action'); $('#mw-input-wpDisableEmail').click; $('#mw-input-wpHardBlock').click; $('#mw-input-wpExpiry')[0].value = 'infinite'; /* $('#mw-input-wpReason')[0].value = "Spamming links to external sites"; */ }