Hacker News new | ask | show | jobs
by thrdbndndn 957 days ago
Yeah it's reachable (in unsafeWindow for user script), I eventually find it by something similar.

In your example, you already has a reference of `fn` to use, which isn't the case for my userscript (if I have a reference, I would just use it!).

I have to search based on the features in plain text of the function (using some regexes on `fn.toString()` to check how the arguments look like).

1 comments

The idea is that you use a breakpoint somewhere where you have a reference to the function to see it then paste the search() function in the debugger console and call it to find it in window
Oh I got it now. Thanks! Will try next time.