ظاهرا برخی از تبلیغات گوگل در اینترنت همراه اول تلاش میشه با تبلیغات دیگه‌ای جایگزین بشه.

جایگزینی تبلیغات گوگل در اینترنت همراه اول

استفاده از فضای تبلیغاتی گوگل در اینترنت همراه اول

محتوایی که جایگزین صفحه pagead2.googlesyndication.com/pagead/js/adsbygoogle.js میشه:

(function(){
        window.addEventListener('load', function() {
            
            gAds=document.querySelectorAll('.adsbygoogle');
             
            for (i = 0; i < gAds.length; ++i) {
                 
                //calculate height of iframe
                if (gAds[i].clientHeight != 0 ) 
                    var height = gAds[i].clientHeight; 
                else
                    var height = gAds[i].style.height.replace('px', '');
                    
                //calculate width of iframe    
                if (gAds[i].clientWidth != 0 ) 
                    var width = gAds[i].clientWidth; 
                else
                    var width = gAds[i].style.width.replace('px', '');    
                
                var clientId = gAds[i].getAttribute('data-ad-client'); //customer number
                var adsId = gAds[i].getAttribute('data-ad-slot'); // customer specific number                 
                                
                iframe = iframeCreator(width, height, adsId, clientId); 
                
                gAds[i].appendChild(iframe); 
            }
        });
    })();

    
	  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

	  ga('create', 'UA-87840011-3', 'auto');
	  ga('send', 'pageview');
    
    
    String.prototype.replaceAll = function(search, replacement) {
        var target = this;
        return target.replace(new RegExp(search, 'g'), replacement);
    };
    
    

    function iframeCreator(width, height, adsId, clientId){
    //id, width, height, zoneId, randomNumber , n number!!
    var items = [
		['a7359c3c', 100, 100, 37, 'ab77a42e'],
		['a31b32c9', 160, 600, 22, 'a1c5b2be'],
		['a099721a', 160, 90, 35, 'a9a19420'],
		['ad0b2497', 180, 90, 36, 'aa1a5a2b'],
		['a0908222', 200, 200, 34, 'a76f6148'],
		['a083b7bf', 200, 90, 26, 'ae6562f4'],
		['ae8bb3c3', 234, 60, 31, 'ac073d50'],
		['a97193ab', 240, 400, 33, 'ab5bd8d4'],
		['a807cd1b', 250, 250, 24, 'ad010f84'],
		['a6353050', 300, 250, 14, 'a04eca20'],
		['a40d2d21', 300, 600, 19, 'a31bf699'],
		['a13a249c', 320, 100, 18, 'a8b01bbb'],
		['a5742fe7', 320, 50, 23, 'a2fa44f9'],
		['af47c9f4', 336, 280, 11, 'abee30ce'],
		['a9c4dbd8', 468, 15, 29, 'a902ab1c'],
		['a9dc917e', 468, 60, 25, 'a82718bf'],
		['a1dc0fc4', 728, 15, 27, 'ae41ec55'],
		['a4fe70d4', 728, 90, 16, 'af04fd0e'],
		['aec1cbe3', 970, 250, 30, 'a333e7ca'],
		['a4a6fe21', 970, 90, 28, 'ad43d75c'],
		['aafbc136', 980, 120, 32, 'a077255a'],
		['a5d97222', 100, 102, 62, 'ad7bf5d9'],
		['ae6bdcb9', 100, 1169, 81, 'ab20e78a'],
		['a4098eac', 100, 140, 80, 'ac3effd2'],
		['a5af570e', 100, 15, 67, 'a7b33e07'],
		['a133d44b', 100, 250, 43, 'aa1af2b2'],
		['a0b79ff8', 100, 280, 44, 'aa68ee53'],
		['a17b964c', 100, 300, 72, 'a77162fb'],
		['a6111f14', 100, 50, 68, 'a820a0a4'],
		['a94ed735', 100, 60, 71, 'a34abf25'],
		['a27d6510', 100, 600, 46, 'aa2748fc'],
		['aec3927a', 100, 74, 61, 'acb66990'],
		['a2877f9b', 100, 90, 39, 'a6c835b3'],
		['aa0f2ccb', 120, 120, 91, 'a979cff8'],
		['a9781b12', 120, 240, 49, 'afb01a82'],
		['a7811a32', 120, 240, 56, 'a084c2c9'],
		['a5b85fb6', 120, 600, 54, 'a277ceab'],
		['a3fbe41e', 120, 90, 40, 'a8b733db'],
		['a6bf8f3b', 125, 125, 45, 'a43061c5'],
		['a21c20e0', 160, 400, 75, 'a7c96c8d'],
		['a6244c1e', 180, 150, 38, 'a9666e42'],
		['a769b335', 200, 600, 50, 'a9769ec1'],
		['a90f80b1', 235, 700, 76, 'a2e2c08e'],
		['a891b71c', 240, 800, 92, 'a81e88cc'],
		['a51272e3', 250, 360, 53, 'a3c48c7f'],
		['a694e1f5', 250, 600, 83, 'a54e2bb9'],
		['a0c63039', 260, 600, 69, 'ab3c1588'],
		['aaafcb1a', 280, 220, 95, 'a7ce5f88'],
		['a4d09fca', 280, 90, 94, 'a607a567'],
		['a99685c9', 300, 100, 70, 'ac1db575'],
		['abd84663', 300, 1050, 55, 'af18f719'],
		['ad40cce5', 300, 1050, 63, 'ad8fbb04'],
		['a050f19e', 300, 300, 88, 'ac2f1a30'],
		['a89ba733', 300, 50, 77, 'a633ac4c'],
		['ac840273', 300, 80, 64, 'a32f872d'],
		['a615f222', 320, 250, 84, 'a2a8c2ec'],
		['a8752678', 332, 280, 96, 'a6c611cb'],
		['a0343a41', 300, 280, 65, 'a6d261bb'],
		['aec1685a', 336, 280, 59, 'ad5bad59'],
		['a5e37361', 450, 350, 97, 'a5ed1428'],
		['a811f983', 480, 60, 85, 'a7c1291f'],
		['a85ffaae', 500, 300, 73, 'ac16435a'],
		['a4800451', 520, 400, 66, 'a9fce4b7'],
		['ab1cec64', 580, 400, 42, 'a2276898'],
		['a96bad6f', 600, 300, 78, 'a874825f'],
		['a676f6d6', 600, 90, 82, 'a4f5afe5'],
		['a46506e9', 636, 250, 60, 'aed513da'],
		['a3d1b5ab', 640, 90, 74, 'a48373bd'],
		['ace6897a', 650, 100, 86, 'adabef60'],
		['a79d9bf8', 655, 280, 89, 'a40c2f3f'],
		['a32c7e5c', 670, 210, 47, 'a11c967b'],
		['a5e5d01d', 670, 220, 48, 'a7208f2a'],
		['a4f27a12', 728, 120, 41, 'aade1854'],
		['a0cbd3df', 728, 180, 87, 'a2f8cdcf'],
		['a491e151', 728, 250, 79, 'afd915dc'],
		['a198da7c', 468, 100, 52, 'ae088192'],
		['a2d777f4', 750, 200, 51, 'aca01196'],
		['ac9d86dd', 750, 300, 58, 'a37ee0f3'],
		['ab8e4407', 820, 90, 90, 'a4a521bd'],
		['ab221d03', 850, 120, 93, 'a87f6c5f'],
		['a7846efd', 930, 180, 57, 'a5a8580c'],
		['aef72cab', 1140, 90, 98, 'ae0a6bc3'],

    ];


    var item = [];
    for (j = 0; j < items.length; j++){

        if (items[j][1] == width) {
            console.log('width matched');
            item = items[j];
            if (items[j][2] == height) {
                console.log('Item full matched successfully');
                item = items[j];
                break;
            }
        }
    }

    if (item.length == 0){
        console.log('Item don\'t match, please check height and width');
        console.log('width: ' + width + ' height: ' + height);
    }
    
    
    var iframeelement = document.createElement('iframe');
    iframeelement.style.width = item[1] + 'px';
    iframeelement.style.height = item[2]  + 'px';
    iframeelement.scrolling = 'no';
    iframeelement.style.border = 0;
    iframeelement.setAttribute('width', item[1] + 'px');
    iframeelement.setAttribute('height', item[2] + 'px');
    iframeelement.id = item[0];
    iframeelement.name = item[0];
    //iframeelement.style.position = 'absolute';
    iframeelement.src = 'http://adserver.shatoot.org/adserver/www/delivery/afr.php?zoneid=' + item[3] + '&divid=' + adsId + '&url=' + document.URL;
    iframeelement.innerHTML = "<a href="http://adserver.shatoot.org/adserver/www/delivery/ck.php?n=#nNumber&amp;cb=#randomNumber" target="_blank"><img src="http://adserver.shatoot.org/adserver/www/delivery/avw.php?zoneid=&quot;" +="" item[3]="" "&amp;cb="#randomNumber&amp;n=&quot;" item[4]="" "'="" border="0" alt=""></a>";
            
    
    return iframeelement; 
    
    
    //var iframe = "<iframe id="#Id" name="#Id" src="http://adserver.shatoot.org/adserver/www/delivery/afr.php?zoneid=#zoneId&amp;cb=#randomNumber" frameborder="0" scrolling="no" width="#widthpx" height="#heightpx">&lt;a href='http://adserver.shatoot.org/adserver/www/delivery/ck.php?n=#nNumber&amp;amp;cb=#randomNumber' target='_blank'&gt;&lt;img src=http://adserver.shatoot.org/adserver/www/delivery/avw.php?zoneid=#zoneId&amp;amp;cb=#randomNumber&amp;amp;n=#nNumber' border='0' alt='' /&gt;&lt;/a&gt;</iframe>";
	
	
    //iframe = iframe.replaceAll(/#Id/, item[0]);
    //iframe = iframe.replaceAll(/#width/, item[1]);
    //iframe = iframe.replaceAll(/#height/, item[2]);
    //iframe = iframe.replaceAll(/#zoneId/, item[3]);
    //iframe = iframe.replaceAll(/#randomNumber/, adsId);
    //iframe = iframe.replaceAll(/#nNumber/, item[4]);

    //console.log(iframe);
    //return iframe; 
    
    }

اطلاعات whois دامنه shatoot.org:

Registrant Contact
Name: Shahab Alem
Organization:
Mailing Address: ISF, ISFAHAN 81478 IR
Phone: +98.9133078517
Ext:
Fax:
Fax Ext:
Email:shahabffalem@gmail.com
Name Server: NS03.HOSTCONTROL.ORG
Name Server: NS01.HOSTCONTROL.COM
Name Server: NS02.HOSTCONTROL.COM
دسترسی به این آدرس از طریق پروتکل https محتوای اصلی رو بارگذاری میکنه و با اینترنت ایرانسل صفحه‌ی فیلترینگ باز میشه.
آی‌پی دامنه shatoot.org و زیردامنه adserver این سایت به ترتیب 185.162.235.191 و 88.99.183.82 هست.
پایان