User:GeneralNotability/moremenu-proxy-spurkey.js

$(function {  mw.hook('moremenu.ready').add(function (config) { const isip = mw.util.isIPAddress(config.targetUser.name, false); // Things that only work on single IP addresses if (isip) { MoreMenu.addSubmenuLink('user', 'ip-lookup', 'Spur Dashboard', 'https://spur.us/app/context?q=' + config.targetUser.encodedName); MoreMenu.addSubmenuLink('user', 'ip-lookup', 'On-Wiki Spur Script', mw.util.getUrl('User:GeneralNotability/SpurLookup', {address: config.targetUser.name})); } }); });