[Greasemonkey] Including other JS files and using "class" and custom styles

Bill Donnelly donnelly at snowcrest.net
Thu Aug 10 18:36:37 EDT 2006


What I'm talking about has to be done down inside Gm and be a supported 
feature.
There is no easy or good way to do it, imo, otherwise.


Stefano POGLIANI wrote:
 > Bill
 >
 >    how would you do for the first suggestion? Is this "pasting" the
 > external script code inside the current GM script or is there a coolest
 > way to do?
 >
 > I just tried the GM_xmlhttpRequest approach from Philip but in my case
 > it did not work as the "eval" seems not to return.
 >
 > Thanks
 > Best regards
 > /Stefano
 >
 > Bill Donnelly wrote:
 >> The easiest way to do it without having to worry about any 
complexity and
 >> such would be to just read the library file and insert it into the 
injected
 >> script right before injection. The only "problem" with this is that the
 >> code would have multiple instances, which is only a "memory space 
thing".
 >> They would all be sandboxed, so it wouldn't matter that there were 
multiple
 >> instances of the library code. (not optimal, but it would be easy, 
and would work)



More information about the Greasemonkey mailing list