News for hackers. Stuff that matters.
Re:Kill-sticky, a bookmarklet to remove sticky elements and ... by szhu on Tuesday September 27, 2022 @02:37PM (#32999284)
Similar thing I made recently, but as a Chrome extension:

https://github.com/szhu/pagefreeze

It does the same thing, and in addition also prevents any async JS from running. It also can be easily toggled per-site; just click the extension icon! Unfortunately I didn't have time to put a GIF in the README. OP did a better job of explaining what their project does!

Would love feedback on it + hope it helps someone as well!

Re:Kill-sticky, a bookmarklet to remove sticky elements and ... by darepublic on Tuesday September 27, 2022 @03:04PM (#32999657)
You override window.addEventListener? At that point I think you may as well just use nojs
Re:Kill-sticky, a bookmarklet to remove sticky elements and ... by szhu on Tuesday September 27, 2022 @07:02PM (#33002238)
That doesn't work well, a lot of news websites and React-powered blogs need that initial load or else the page is all blank!