User:Kb03/scripts/proxychecker.js

//May have been "borrowed" and modified from https://en.wikipedia.org/wiki/User:Oshwah/Templates/GlobalRenameHelper.js (function {	$(document).ready(function { mw.loader.using( ['mediawiki.util'], function {			{				var L=mw.util.addPortletLink("p-navigation", "#", "Proxy Check");				if(L)L.addEventListener("click", goPXYCHECK);				var M=mw.util.addPortletLink("p-navigation", "#", "WHOIS");				if(M)M.addEventListener("click", goWHOIS);				var N=mw.util.addPortletLink("p-navigation", "#", "Page Logs"); //M.addEventListener("click", goLOGS);				return;			}		}); }); }); function goPXYCHECK { var szIP = prompt ("IP?"); switch (szIP) { case null: case undefined: case '': //Do nothing break; default: {			window.open('https://tools.wmflabs.org/ipcheck/index.php?ip=' + szIP, '_blank'); }	} } function goWHOIS { var checkIP = prompt ("IP?"); switch (checkIP) { case null: case undefined: case '': //Do nothing break; default: {			window.open('https://tools.wmflabs.org/whois/' + checkIP, + '/lookup', '_blank'); }	} //function goLOGS { //	switch (getPname) { //		case null: //			{ //				window.open('https://en.wikimedia.org/wiki/Special:' + pageN); //			} //		} //	} }