3 ms·
I've been trying to figure out for years how to keep specific bits of Javascript like that from triggering. But so many modern webpages are procedurally generat
by Tanoc 1mo ago
I've been trying to figure out for years how to keep specific bits of Javascript like that from triggering. But so many modern webpages are procedurally generated messes born from frameworks that I can't reliably track down a way to do it. On Reddit for example there's reddit.com, redd.it, redditstatic.com, and cdn-apple.com that are all subdomains that load on the page, and each pull Javascript from dozens of different sources. If you disable Javascript entirely the page won't load and instead nags you to enable it. I don't want to go digging through the page inspector in my dev console just to track down which .js file is causing that, and then figure out how to only stop it from killing the scrollbar. If you can even do that. Some pages are so labyrinthine that you can't.
- duskdozer 1mo agoI'm sure there must be something on https://github.com/gorhill/ublock/wiki/Resources-Library https://github.com/gorhill/ublock/wiki/Resources-Library but I've still not really been able to make sense/use of these rules much. At this point blocking certain things in js universally seems kind of impossible now that everything is webpack-chunked with random names or hidden in react context that seems inaccessible. But I think this css rule covers many simple cases html[style*="overflow:hidden"], html[style*="overflow: hidden"] { overflow: auto !important; }
- port11 1mo agoMany websites might be broken, but I’d like a toggle to disable listening for scroll events. And no overflow overrides on major and screen-wide elements.