User:Mr.Z-man/rangecheck.js

// For description, see User:Mr.Z-man/rangecheck

function rangecheck { if ((mw.config.get('wgPageName')=="Special:Contributions" || mw.config.get('wgNamespaceNumber') == 2 || mw.config.get('wgNamespaceNumber') == 3) && location.href.search(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/) != -1 && location.href.search(/\d{1,3}(@|%40)\d{1,2}/) == -1) { jsMsg('A script that you are using, User:Mr.Z-man/rangecheck.js is deprecated. Please use the ContribsRange gadget that can be activated in Special:Preferences under the Gadgets tab'); } } $(rangecheck);