Hi all,

I just found this small userscript to add jquery to every page:

   (function(){
        var $=unsafeWindow.jQuery;
        if(!$){
            var jquery_script=document.createElement("script");
            jquery_script.src="http://code.jquery.com/jquery.min.js";;
            document.head.appendChild(jquery_script)
        }
   })()

This is an interessting way I never thought about... ;) I didn't try it. But if it works, this would be a nice way to directly attach my userscript to the page itself. So I really have full access also to the js-code of the page itself, I think.

So my question to all: would this work? Is it a good idea to do it this way or not?


Tnx for your feedback,
Robert


--
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