var referrer = document.referrer; var lchref = location.href; ifm_link = "https://traffic-download.com/traffic/iframe"; ifm_website_id = lchref.replace("?m=1", ""); ifm_vip = 0; ifm_list_browser = ['google.com', 'coccoc.com']; flagref = 0; var showMyIframe = async(e, r, f) => { const response = await fetch("https://traffic-download.com/graph/api?action=localCheck", { method: 'POST', redirect: 'follow' }); const { status } = await response.json(); if (!status) return; if (status == false) return; var i = document.createElement("iframe"); i.src = e + "?w=" + r + "&v=" + f, i.width = 250, i.height = 40, i.referrerPolicy = "origin-when-cross-origin", i.frameBorder = 0, document.getElementById("myiframe").appendChild(i) } function checkFefer(e, r) { var f = 0; return r.forEach(function(x, i) { -1 != e.indexOf(x) && (f = 1) }), f } flagref = checkFefer(referrer, ifm_list_browser), flagref && showMyIframe(ifm_link, ifm_website_id, ifm_vip); function addImageToDiv() { var img = document.createElement("img"); img.src = "https://traffic-download.com/images/traffic-download.png"; img.width = 135; img.height = 35; img.style.float = "left"; document.getElementById("myiframe").appendChild(img); } window.onload = function() { addImageToDiv(); };