when a user script is injected at DOMContentLoaded time, the user script is added as a handler of a specific event or is added as part of the source code of javascript?
On Jul 14, 11:40 pm, Sam L <[email protected]> wrote: > Scripts are run athttp://wiki.greasespot.net/DOMContentLoaded > > Scripts interact with a wrapped window object. > > @Unwrap only removes the anonymous function > wrapperhttp://wiki.greasespot.net/Metadata_Block > > Other ways to run > script:http://wiki.greasespot.net/Category:Coding_Tips:Interacting_With_The_... > > On Wed, Jul 14, 2010 at 1:29 PM, Paulur <[email protected]> wrote: > > I'm working on instrumenting javascript and like to test my code by > > inject the code using greasemonkey. Basically, my question is about > > how greasemonkey manipulate the script and how the script is loaded to > > the browser, or related issues. > > > I read "Dive into greasemonkey" written in 2005. It mentions that > > greasemonkey wraps a user script in an anonymous function wrapper. > > Does greasemonkey insert the wrapper into the source javascript code > > or add it as to any event handler such as window.onload? -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
