Poszukiwana przez Ciebie strona piskor.5v.pl jest w trakcie tworzenia
function getSubdomain() { var regexParse = new RegExp('[a-z\-0-9]{2,63}\.[a-z\.]{2,5}$'); var urlParts = regexParse.exec(window.location.hostname); return window.location.hostname.replace(urlParts[0],'').slice(0, -1); } var getJSON = function(url, callback) { var xhr = new XMLHttpRequest(); xhr.open("get", url, true); xhr.responseType = "json"; xhr.onload = function() { var status = xhr.status; if (status == 200) { callback(null, xhr.response); } else { callback(status); } }; xhr.send(); }; var subdomain = getSubdomain(); getJSON("http://5v.pl/exclude.php", function(err, data) { if (err != null) { } else { var show_ad = true; for (var i = 0; i < data.length; i++) { if(subdomain.indexOf(data[i])!== -1){ show_ad = false; } } if(show_ad){ var div = document.createElement("div"); div.style.width = "728px"; div.style.height = "90px"; div.style.margin = "0 auto"; div.innerHTML = ''; document.getElementById("content_write").appendChild(div); (adsbygoogle = window.adsbygoogle || []).push({}); } } });