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.
[ Parent
| on HN ]
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.