We are now developing a web site, we have some image link by outside source, like
<img class="comp_img" src="http://media-cdn......" />
it will be blocked, and add some attributions into <img>
tag like
style="display: none !important; visibility: hidden !important; opacity: 0 !important; background-position: 0px 400px;"
I'm sure it's not AD, can I re-showing images by javascript? My javascript may like..
function showAdblockImage() {
//get all google ad elements
var adsList = document.querySelectorAll(".comp_img");
if (!adsList) { return; }
for (var i = 0; i < adsList.length; i++) {
if (adsList[i].innerHTML.replace('/\s/g', "").length != 0) {
//AdBlock is not active, hence exit
break;
}
//apply inline css to force display
adsList[i].style.cssText = '';
}
}