MediaWiki:CustomGeoCSS

 var countryCodes = [["CA","US"]; var cssFile = "http://marvel.wikia.com/MediaWiki:FFPQBG?action=raw&ctype=text/css";

function loadCSSFile(filename) { var fileref = document.createElement("link"); fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", filename); document.getElementsByTagName("head")[0].appendChild(fileref); }

function checkCountryMatch { var actualCountryCode = Geo.getCountryCode; if (countryCodes.indexOf(actualCountryCode) > -1) { return true } }

function checkAndApplyCSS { if(checkCountryMatch === true) { loadCSSFile(cssFile); }	} checkAndApplyCSS;