Difference between revisions of "User:Prino/common.js"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
$('#mw-input-wpExpiry')[0].value = 'infinite'; | $('#mw-input-wpExpiry')[0].value = 'infinite'; | ||
$('#mw-input-wpReason')[0].value = "Spamming links to external sites - plork"; | $('#mw-input-wpReason')[0].value = "Spamming links to external sites - plork"; | ||
+ | } | ||
+ | |||
+ | if ($('body.mw-special-UserMerge')) { | ||
+ | console.log('MediaWiki:Common.js in action'); | ||
+ | $('#deleteuser').click(); | ||
} | } |
Latest revision as of 21:33, 30 September 2015
/* JavaScript die hier wordt geplaatst heeft invloed op alle pagina's voor alle gebruikers */ /* 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 - plork"; } if ($('body.mw-special-UserMerge')) { console.log('MediaWiki:Common.js in action'); $('#deleteuser').click(); }