I'm new at Greasemonkey. I'm trying to create a user script to improve my user experience with a site I often visit.
So I'd like to create a javascript function f()
. My function requires a value that, according to my quick research and try at understanding the site's structure, only exists inside a javascript function g()
.
I am not sure of which file holds g()
on the server, but what I do know is that once the page has finished downloading, g()
can be used.
I would like to extract the string value from g()
without executing it (with g.toString()
).
My question is: how can I access g()
, without compromising my computer with unsafeWindow
?
(window.g
returns null
inside the Greasemonkey script).