4 ms·
I'm just concerned that's inviting an arms race where unwelcome page elements get randomized CSS namespaces. Fuck that noise.
by bashinator 6y ago
I'm just concerned that's inviting an arms race where unwelcome page elements get randomized CSS namespaces. Fuck that noise.
- chmod775 6y agoIn 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.
- dmurray 6y agoThe 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.
- dredmorbius 6y agoWhitelist, not blacklist. Which whould break CSS minifiers, but that's the point.
- chmod775 6y agoMatch 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.
- literallycancer 6y agoYou can have filters that look at parent or child elements of the randomized element or other patterns.
- FroshKiller 6y agoI hate to tell you this, but we're already there.
- janitor61 6y agoThat'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"]
- dorgo 6y agoAnd random structure to break nth-child selectors. Even better: draw everything in a canvas.