News for hackers. Stuff that matters.
Re:Show HN: I'm Building a Browser for Reverse Engineers by Retr0id on Tuesday October 07, 2025 @04:17PM (#45508285)
I have a project (in my rather long project backlog) that involves hooking JS APIs to download youtube videos. I'm worried that if my extension (or a similar extension) gained enough popularity, youtube would start inspecting the relevant JS objects to see if they'd been replaced with proxy instances.

Aside from playing a hooking/patching game of cat and mouse, I don't think this is fully solvable without modifying the browser engine itself - then you can hook things in a way that's completely transparent to the JS in webpages.

Re:Show HN: I'm Building a Browser for Reverse Engineers by nenxk on Wednesday October 08, 2025 @01:33AM (#45512427)
Was just about to comment this I’ve played that exact cat and mouse game before there’s also another fun way to hook I used to like by doing something like Object.defineProperty on Object.prototype to globally hook onto something and you can do lots of stuff with that it’s pretty useful in user scripts