Live data from Hacker News

I challenge you to remove the gray ad using Adblock

0x1b.pw

41–46 of 46 posts

Re: I challenge you to remove the gray ad using Adblock

#43

This 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.

Who does that, though? Even the big content providers that have their own ad platforms (e.g. Yahoo!) serve ads from separate domains.

Re: I challenge you to remove the gray ad using Adblock

#44
post #36
post #35

It 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 "…

Thats a nice story, but unfortunately not the truth. This was simply a spur of the moment idea and I wanted to see if it worked, which to a relative degree it did, hence why I posted it. The main goal of posting it is to show how easy it would be for a website to show ads to a user, even with an extension such as Adblock enabled. In regards to the account, I haven't had a need for a HN account before now.

Sorry if you didn't like it.

Re: I challenge you to remove the gray ad using Adblock

#45
post #34

var 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}); } }); };

This solution (and those listed in the comments) are all very interesting solutions, well done. They might not work with different colour images, but they are interesting nonetheless.
Post reply on HN