On 15 sep, 22:56, Anthony Lieuallen <[email protected]> wrote:
> On 09/15/09 15:04, elfio wrote:
>
> > ... the order of the blocks tagged like <script> are important
> > in the structure of a page. I don't know if is equaly important with
> > the user script. ...
>
> That's true for a regular web page.  A greasemonkey script is not
> actually part of the page.  It's separate, but connected.
>
> > For example, the original page makes some calls to externals script
> > like that:
> > <script type="text/javascript" src="js/Video.js"></script>
> > It calls the Video.js script, no?
>
> Yes, it does.
>
> > I'll be able to use the variables and the functions that are defined
> > in that file?
>
> No, you will not.  Like I said above, user scripts are separate.  (You
> _could_ access them, with unsafeWindow: but like the name says, it is
> unsafe!  You should not use it.)

But I need access to some variables of the page. How can I do it
without use unsafeWindow?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to