User:Skizzerz/Scripts/WhoisIP.js

/******************** //whois tab function ipwhoistab { if(wgPageName = 'Special:Contributions') { var ip = document.getElementById('contentSub').innerHTML; ip = ip.substring(ip.indexOf(' ')+1); ip = ip.substring(0,ip.indexOf(' ')); if((ip.indexOf('<') != -1)||(ip.indexOf('.') == -1)) return; // not an ip       addTab('whois', 'http://www.dnsstuff.com/tools/whois.ch?email=on&cache=off&ip=' + ip, 'Whois' ); var tab = document.getElementById('ca-whois'); var a = tab.getElementsByTagName('a')[0]; a.target = '_blank'; ta['ca-whois'] = ['1', 'dnsstuff.com']; akeytt; } } addOnloadHook(ipwhoistab);
 * Whois IP script **