How to disable a certain javascript script
Posted
by
D-Vee
on Super User
See other posts from Super User
or by D-Vee
Published on 2013-10-26T13:54:35Z
Indexed on
2013/10/26
15:57 UTC
Read the original article
Hit count: 286
firefox
|JavaScript
On an active website I go to, there is this javascript code that is displayed on every page.
<script type="text/javascript">
(function(){var d=document;var i=d.getElementsByTagName('iframe');if(google_ad_client!=null||(window.getComputedStyle?d.defaultView.getComputedStyle(i[i.length-1],null).getPropertyValue('display'):i[i.length-1].currentStyle['display'])=='none'){
alert('Adblock detected, please consider disabling it')
}})()
</script>
Is there any way that I could get my adblock -- or any other type of plugin -- to disable that specific code without disabling all javascript?
© Super User or respective owner