I challenge you to remove the gray ad using Adblock
41–46 of 46 posts
Re: I challenge you to remove the gray ad using Adblock
#42Re: I challenge you to remove the gray ad using Adblock
#43This is a pointless challenge, because it has none of the characteristics of an actual ad. For tracking, security, and analytics reasons, ad providers almost always originate ads from a separate domain than the content provider's.
Correct, it isn't supposed to be used with ad providers that Adblock may (or may not) already block, it's supposed to work with internal ads that would come from the same domain as the content providers.
Re: I challenge you to remove the gray ad using Adblock
#44It still has a style that the other image doesn't: style="height: 250px; width: 250px;" After that, other than positionally blocking them, there's nothing that can be done short of visually inspecting the element. You could modify the script to randomly place the ad either first or second, so you don't need the third tag with no src. What is the goal of this experiment?
What is the goal of this experiment? I'm guessing intern at an ad network pitches he can come up with an "unblockable ad" to his boss. Boss wants to go home for the holiday weekend so he says, "OK, whatever kid" as he's walking out the door just after lunch. Intern signs up with a one-hour old HN account and posts his masterpiece here and starts playing whack-a-mole with the dozens of methods to trivially block the "…
Sorry if you didn't like it.
Re: I challenge you to remove the gray ad using Adblock
#45var removeGrayImage = function() { $("img").each(function(idx, el) { var canvas = $(" ")[0]; canvas.width = el.width; canvas.height = el.height; canvas.getContext("2d").drawImage(el, 0, 0, el.width, el.height); var pixel = canvas.getContext("2d").getImageData(1, 1, 1, 1); var r = pixel.data[0]; var g = pixel.data[1]; var b = pixel.data[2]; if(r == 183 && g == 183 && b == 183) { $(el).css({opacity: 0}); } }); };
Re: I challenge you to remove the gray ad using Adblock
#46This works assuming assuming OP doesn't change the page again: // First clear the interval assigned to window var highestTimeoutId = setTimeout(";"); for (var i = 0 ; i