News for hackers. Stuff that matters.
Re:Ask HN: A way to adblock “we're using cookies” popups? by hutzlibu on Sunday June 14, 2020 @06:28PM (#23521922)
I am amazed, at how much that annoyed me, too - and why I never bothered to find out, that ublock origin has this as a hidden feature. Awesome. I just also turned on all of the other annoyance settings. Is there a good chance of real content getting removed, on occasion, or do they work quite good?
Re:Ask HN: A way to adblock “we're using cookies” popups? by bashinator on Sunday June 14, 2020 @11:12PM (#23523421)
It's pretty easy to make your own, too. I use the element zapper and picker to block Reddit's incessant demands that I use "new" reddit and get a "premium" membership. I also use it to block Facebook's "trending" bullshit.
Re:Ask HN: A way to adblock “we're using cookies” popups? by naravara on Sunday June 14, 2020 @11:20PM (#23523454)
Either an element zapper or a one click sticky-header killer should honestly be standard issue features in browsers nowadays. The web would be a miserable without them, especially on mobile.
Re:Ask HN: A way to adblock “we're using cookies” popups? by bashinator on Monday June 15, 2020 @05:12AM (#23525376)
I'm just concerned that's inviting an arms race where unwelcome page elements get randomized CSS namespaces. Fuck that noise.
Re:Ask HN: A way to adblock “we're using cookies” popups? by chmod775 on Monday June 15, 2020 @05:46AM (#23525565)
In that case we could just match by the CSS rules' content - i.e. match all elements that have style X, Y, Z applied to them. That kind of arms race would be over real quick.
Re:Ask HN: A way to adblock “we're using cookies” popups? by dmurray on Monday June 15, 2020 @08:14AM (#23526490)
The arms race is that the next time you come back to the page, the offending element has a slightly different style (randomized CSS class name, RGB values changed by 1, font size changed by 0.1...) and your browser doesn't recognise it as being the right element to block.
Re:Ask HN: A way to adblock “we're using cookies” popups? by chmod775 on Monday June 15, 2020 @08:59AM (#23526812)
Match by ranges so changing values by 1 doesn't work. At the end of the day a human would have to come up with an entirely alternative style for the page to defeat your filters.

Pretty much any machine generated variations can also be defeated automatically by a machine. If defeating your filters takes a lot of work, and only helps until a few days later you update your filters in a few minutes, nobody is gonna bother.

Re:Ask HN: A way to adblock “we're using cookies” popups? by dredmorbius on Monday June 15, 2020 @08:26AM (#23526574)
Whitelist, not blacklist.

Which whould break CSS minifiers, but that's the point.

Re:Ask HN: A way to adblock “we're using cookies” popups? by janitor61 on Monday June 15, 2020 @12:36PM (#23529274)
That's already the case with sites like Twitter. In order to remove the trending pane in uBO, I had to rely on a11y attributes:

##div[aria-label="Timeline: Trending now"]

Re:Ask HN: A way to adblock “we're using cookies” popups? by FroshKiller on Monday June 15, 2020 @08:01AM (#23526418)
I hate to tell you this, but we're already there.
Re:Ask HN: A way to adblock “we're using cookies” popups? by literallycancer on Monday June 15, 2020 @07:20AM (#23526157)
You can have filters that look at parent or child elements of the randomized element or other patterns.
Re:Ask HN: A way to adblock “we're using cookies” popups? by dorgo on Tuesday June 16, 2020 @08:32AM (#23538355)
And random structure to break nth-child selectors.

Even better: draw everything in a canvas.

Re:Ask HN: A way to adblock “we're using cookies” popups? by hydroxonium on Monday June 15, 2020 @12:46AM (#23523880)
One-click sticky-header killer via JavaScript bookmarklet

https://medium.com/@jacob.tan.en/floating-elements-on-web-pa...

Re:Ask HN: A way to adblock “we're using cookies” popups? by alpaca128 on Monday June 15, 2020 @03:15AM (#23524674)
I activated all the options in uBlock Origin a couple months ago and didn't miss anything so far. Of course when I visit a new site it's hard to know, but the few times where a site was obviously missing some content it turned out to be broken in general.

So I would say the filter works pretty well, I didn't get a single popup of any sort ever since.

Re:Ask HN: A way to adblock “we're using cookies” popups? by zamadatix on Sunday June 14, 2020 @07:11PM (#23522230)
I have had all list except the extra languages lists enabled for a couple years now. Online fast food ordering sites (e.g. Chipotle) are the only ones I've noticed get broken.
Re:Ask HN: A way to adblock “we're using cookies” popups? by darekkay on Monday June 15, 2020 @04:34AM (#23525167)
> Is there a good chance of real content getting removed, on occasion, or do they work quite good?

Yes, I sometimes get some real content removed. If something looks strange, I temporarly deactivate uBlock. Last time it was a GDPR checkbox at a store checkout.

Re:Ask HN: A way to adblock “we're using cookies” popups? by gpderetta on Monday June 15, 2020 @06:08AM (#23525713)
Normally I disable ublock if I'm actually buying something from a website exactly for these sort of issues.
Re:Ask HN: A way to adblock “we're using cookies” popups? by DavideNL on Monday June 15, 2020 @10:09AM (#23527476)
Or just use a different browser/Firefox-profile which still has uBlock Origin installed but with only the default filter lists...