Jump to content

User:Technical 13/Scripts/ACCHelp/Global block list.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
if(mw.config.get("wgCanonicalSpecialPageName") === "GlobalBlockList"){
	$("div.mw-globalblocking-noresults").addClass("error");
	if(typeof($("div.mw-globalblocking-noresults").html()) === "undefined"){
		$("h1#firstHeading").html(tickBad + " " + $("h1#firstHeading").html());
		document.title = Ucross + document.title;
		alert("WARNING!\n\t\tThere is a global block on:\n\n\t\t\t\t" + $("input[name=\"ip\"]").val());
	} else {
		$("h1#firstHeading").html(tickGood + " " + $("h1#firstHeading").html());
		document.title = Ucheck + document.title;
	}
}