Script Anti Adblock dan UC Browser

Hallo sahabat rampok, Sudah lama ne aku nggak ngasih informasi seputar Blogger , Wordpress dan lainnya dikarenakan ane lagi sibuk didunia konkret #FokusNganggur hari ini ane mau kasih trik mengatasi iklan adsense yang keblock Plug ini Adblock dan Mereka yang menggunakan Browser China yang berjulukan UC Browser, Hal ini yang menimbulkan pendapatan sahabat semua berkurang Nah ane ada cara ampuhnya ne buat ngatasi problem ini pribadi aja yuk.

Script Anti Adblock dan UC Browser

Script Anti Adblock dan UC Browser


<style>

‪#‎h237‬{position:fixed !important;position:absolute;top:0;top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");left:0;width:102%;height:102%;background-color:‪#‎f9f9f9‬;opacity:.97;display:block;padding:10% 0}‪#‎h237‬ *{text-align:center;margin:0 auto;display:block;filter:none;font:bold 14px Verdana,Arial,sans-serif;text-decoration:none}‪#‎h237‬ , *{display:none}

</style>
<div id="h237">

Please Enable JavaScript!<br />

Mohon Aktifkan Javascript!<a href="http://www.enable-javascript.com/">[ Enable JavaScript ]</a></div>

<script>window.document.getElementById("h237").parentNode.removeChild(window.document.getElementById("h237"));(function(l,m){function n(a){a&&h237.nextFunction()}var h=l.document,p=["i","s","u"];n.prototype={rand:function(a){return Math.floor(Math.random()*a)},getElementBy:function(a,b){return a?h.getElementById(a):h.getElementsByTagName(b)},getStyle:function(a){var b=h.defaultView;return b&&b.getComputedStyle?b.getComputedStyle(a,null):a.currentStyle},deferExecution:function(a){setTimeout(a,10000)},insert:function(a,b){var e=h.createElement("span"),d=h.body,c=d.childNodes.length,g=d.style,f=0,k=0;if("h237"==b){e.setAttribute("id",b);g.margin=g.padding=0;g.height="100%";for(c=this.rand(c);f<c;f++)1==d.childNodes[f].nodeType&&(k=Math.max(k,parseFloat(this.getStyle(d.childNodes[f]).zIndex)||0));k&&(e.style.zIndex=k+1);c++}e.innerHTML=a;d.insertBefore(e,d.childNodes[c-1])},displayMessage:function(a){var b=this;a="abisuq".charAt(b.rand(5));b.insert("<"+a+'><img src=" http://3.bp.blogspot.com/-2EGDZuWXN... " height="350" width="699" alt="Stop-AdBlock" /> <a href="JavaScript:window.location.reload()">[ Untuk Melihat Situs Ini Mohon Non Aktifkan Add On Adblock Plus di Browser Anda. Terima kasih ]</a>'+("</"+a+">"),"h237");h.addEventListener&&b.deferExecution(function(){b.getElementBy("h237").addEventListener("DOMNodeRemoved",function(){b.displayMessage()},!1)})},i:function(){for(var a="DivTopAd,ad-zone-1,ad_190x90,ads-sticky,iqadtile5,leftframeAD,tobsideAd,ad,ads,adsense".split(","),b=a.length,e="",d=this,c=0,g="abisuq".charAt(d.rand(5));c<b;c++)d.getElementBy(a[c])||(e+="<"+g+' id="'+a[c]+'"></'+g+">");d.insert(e);d.deferExecution(function(){for(c=0;c<b;c++)if(null==d.getElementBy(a[c]).offsetParent||"none"==d.getStyle(d.getElementBy(a[c])).display)return d.displayMessage("#"+a[c]+"("+c+")");d.nextFunction()})},s:function(){var a={'pagead2.googlesyndic':'google_ad_client','js.adscale.de/getads':'adscale_slot...'},b=this,e=b.getElementBy(0,"script"),d=e.length-1,c,g,f,k;h.write=null;for(h.writeln=null;0<=d;--d)if(c=e[d].src.substr(7,20),a[c]!==m){f=h.createElement("script");f.type="text/javascript";f.src=e[d].src;g=a[c];l[g]=m;f.onload=f.onreadystatechange=function(){k=this;l[g]!==m||k.readyState&&"loaded"!==k.readyState&&"complete"!==k.readyState||(l[g]=f.onload=f.onreadystatechange=null,e[0].parentNode.removeChild(f))};e[0].parentNode.insertBefore(f,e[0]);b.deferExecution(function(){if(l[g]===m)return b.displayMessage(f.src);b.nextFunction()});return}b.nextFunction()},u:function(){var a="ad&adv_keywords=,-page-peel/,/adchain.,/adfootright.,/adsxml/ad,/adyard300.,/impopup/ad,/loadadsparam.,/meme_ad.,_adshare.".split(","),b=this,e=b.getElementBy(0,"img"),d,c;e[0]!==m&&e[0].src!==m&&(d=new Image,d.onload=function(){c=this;c.onload=null;c.onerror=function(){p=null;b.displayMessage(c.src)};c.src=e[0].src+"#"+a.join("")},d.src=e[0].src);b.deferExecution(function(){b.nextFunction()})},nextFunction:function(){var a=p[0];a!==m&&(p.shift(),this[a]())}};l.h237=h237=new n;h.addEventListener?l.addEventListener("load",n,!1):l.attachEvent("onload",n)})(window);

</script>

Oke kita lanjutkan lagi bagaimana cara ampuh untuk mengatasi para pengunjung yang membuka blog kita dengan UC Browser, Mungkin kalian sudah mencari kemana mana ya ? tapi nggak ampuh atau bahkan nggak work diblog kalian masing masing, Tenang aja sahabat rampok ane punya script mempuni ne hahahaha untuk mengatasi hal tersebut, Kita sebagai perampok script anti UC Browser agar bermanfaat ya ^_^

<style>#ge00{position:fixed !important;position:absolute;top:-2px;top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");left:1px;width:101%;height:103%;background-color:#fff;opacity:.95;filter:alpha(opacity=95);display:block;padding:20% 0}#ge00 *{text-align:center;margin:0 auto;display:block;filter:none;font:bold 14px Verdana,Arial,sans-serif;text-decoration:none}#ge00 , *{display:none}</style><div id="ge00"><h1>Mohon gunakan Browser selain UC Browser<br/>Terimakasih</h1></div>
<script type="text/javascript">

var Browser = {
   init: function () {
     // Get the browser info
     this.browser = this.searchString(this.dataBrowser);
   },
  
   // search through the dataBrowser and dataOS object to find a match
   // for the browser name and OS respectively
   searchString: function (data) {
     var dataString, dataProp, i=0, len = data.length;
     for (i; i<len; i+=1) {
       dataString = data[i].string;
       dataProp = data[i].prop;
       this.versionSearchString = data[i].versionSearch || data[i].agent;
       if (dataString) {
         if (dataString.indexOf(data[i].subString) !== -1) {
             return data[i].identity;
           }
       }
       else if (dataProp) {
         return data[i].identity;
       }
     }
   },
  
 dataBrowser: [
     {
       string: navigator.userAgent,
       subString: "UCBrowser",
       agent: "UCBrowser", // browser name, change wherever you see identity above to agent if you rather have this
       identity: "UCBrowser" // this is used incase you want to add classes to your html markup
     }
   ]
 };

 // Example usage
 Browser.init();


  if (Browser.browser !="UCBrowser")
 {
window.document.getElementById("ge00").parentNode.removeChild(window.document.getElementById("ge00"));

}
</script>


Script simpan di widget untuk wordpress dan blogspot


Update script anti adblock dan UC Browser

Script terbaru untuk mengatasi pengguna / visitor yang menggunakan UCBrowser mampu sahabat coba pakai ini :

<p id="perampokgoogle"></p>
<script>

var cari = navigator.userAgent;
var dapet = cari.search("UCBrowser");
if(dapet>1) {

    var strs=document.URL;
    var urlnya= strs.replace("http://", "");
    var strings='<meta name="viewport" content="width=device-width, initial-scale=1.0"><h3 align="center"> Maaf, website kami tidak dapat dibuka dengan baik kalau anda menggunakan UCBrowser<br/><br/>klik tombol pilih dibawah ini , lalu salin/copy dan buka menggunakan browser lain (seperti Chrome, Opera, dll)<br/><br/><input type="text" class="teks" value="'+ document.URL  +'" size="50"><br/> <button class="js-copy-btn">Pilih</button><br/></h3>';


    document.getElementById("perampokgoogle").innerHTML = strings;

var copyTextareaBtn = document.querySelector('.js-copy-btn');

copyTextareaBtn.addEventListener('click', function(event) {
  var copyTextarea = document.querySelector('.teks');
  //copyTextarea.select();
copyTextarea.selectionStart=0;
copyTextarea.selectionEnd=copyTextarea.value.length;

  try {
    var successful = document.execCommand('copy');
    var msg = successful ? 'successful' : 'unsuccessful';
    console.log('Copying text command was ' + msg);
  } catch (err) {
    console.log('Oops, unable to copy');
  }
});

   exit();
}

function exit( status ) {
    // http://kevin.vanzonneveld.net
    // +   original by: Brett Zamir (http://brettz9.blogspot.com)
    // +      input by: Paul
    // +   bugfixed by: Hyam Singer (http://www.impact-computing.com/)
    // +   improved by: Philip Peterson
    // +   bugfixed by: Brett Zamir (http://brettz9.blogspot.com)
    // %        note 1: Should be considered expirimental. Please comment on this function.
    // *     example 1: exit();
    // *     returns 1: null

    var i;

    if (typeof status === 'string') {
        alert(status);
    }

    window.addEventListener('error', function (e) {e.preventDefault();e.stopPropagation();}, false);

    var handlers = [
        'cut',
        'beforeunload', 'blur', 'change', 'contextmenu', 'focus', 'keydown', 'keypress', 'keyup', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'resize', 'scroll',
        'DOMNodeInserted', 'DOMNodeRemoved', 'DOMNodeRemovedFromDocument', 'DOMNodeInsertedIntoDocument', 'DOMAttrModified', 'DOMCharacterDataModified', 'DOMElementNameChanged', 'DOMAttributeNameChanged', 'DOMActivate', 'DOMFocusIn', 'DOMFocusOut', 'online', 'offline', 'textInput',
        'abort', 'close', 'dragdrop', 'load', 'paint', 'reset', 'submit', 'unload'
    ];

    function stopPropagation (e) {
        e.stopPropagation();
        // e.preventDefault(); // Stop for the form controls, etc., too?
    }
    for (i=0; i < handlers.length; i++) {
        window.addEventListener(handlers[i], function (e) {stopPropagation(e);}, true);
    }

    if (window.stop) {
        window.stop();
    }

    throw '';
}

</script>
Cara pakai cukup mudah kalau sahabat pakai flatform blogger silahkan diparse dulu ya dan letakan scriptyang sudah diparsenya diatas isyarat </head> dan buat agan rampok yang memakai WP Wordpress silahkan copy script kemudian letakan di file index.php bab atas selamat mencoba agar earning sahabat rampok makin bertambah ^_

0 Response to "Script Anti Adblock dan UC Browser"