Am 12.02.2013 10:21, schrieb Ben:
When exactly is "@required" tag necessary?
Ok, obviously when a function from the assigned library is required in the
script.
But  how do I find out which functions of the script are from the library
and which from built-in core greasemonkey/browser?
How does an error message look like when a function is used in script which
is not provided by built-in and currently added libraries?
Lets say I specify: // @require
http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
Assume we have current libary version 1.5. Is library v1.3.2 removed by v1.5 installation or is v1.5 added on top of
v1.3.2?


@required resources are downloaded into the local script folder when you install the script. Since both resources are named "jquery.min.js", I'm pretty sure the new version will definitely overwrite the old one. I'm not sure what happens if you'd require a differently named script. It might happen that both files stay on your PC (not tested), but only the declared one will be used. It's easy to test though.

"Versuch macht klug", as we Germans say: "testing educates" :)

Chris

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to