var html = ''; var blockAd = false; var blockUrlsStr = ''; var blockUrls = blockUrlsStr.split(","); blockUrls.forEach(function(item, index){ if(item == undefined){ return false; } var windowUrl = window.location.href; if(windowUrl == item){ blockAd = true; return false; } }); var pageTitle = document.title; var fileKeywords = []; fileKeywords = ["\u062f\u0627\u0646\u0644\u0648\u062f","\u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631","\u0646\u0633\u062e\u0647","\u062c\u062f\u06cc\u062f","\u0628\u0627\u0632\u06cc","\u0627\u0646\u062f\u0631\u0648\u06cc\u062f"]; if(fileKeywords.length > 0){ for(i=0; i 2) ? 1 : fileNumber + 1; adLink.setAttribute('fileNumber', fileNumber); var url = 'http://app2ads.com/ads/view/91/true'; url += '/' + fileNumber; url += '/'+document.title; load(url, function(xhr) { adLink.href = xhr.responseText; }); } function load(url, callback) { var xhr; if(typeof XMLHttpRequest !== 'undefined') xhr = new XMLHttpRequest(); else { var versions = ["MSXML2.XmlHttp.5.0", "MSXML2.XmlHttp.4.0", "MSXML2.XmlHttp.3.0", "MSXML2.XmlHttp.2.0", "Microsoft.XmlHttp"] for(var i = 0, len = versions.length; i < len; i++) { try { xhr = new ActiveXObject(versions[i]); break; } catch(e){} } // end for } xhr.onreadystatechange = ensureReadiness; function ensureReadiness() { if(xhr.readyState < 4) { return; } if(xhr.status !== 200) { return; } // all is well if(xhr.readyState === 4) { callback(xhr); } } xhr.open('GET', url, true); xhr.send(''); } html += '
'; html += ''; html += 'دانلود'; html += ''; html += '
'; if(!blockAd){ document.write(html); }