Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using jQuery in Safari Extension

I am trying to make a simple Safari 5 Extension that just injects a custom javascript. Any ideas how can I make use of jQuery in this custom script, please? I only know it's possible, because it is mentioned on one of WWDC videos, but I don't know how to do it.

Thanks

like image 944
Josef Richter Avatar asked Jul 24 '10 18:07

Josef Richter


2 Answers

You can include jquery.js as a "start script". Your regular script (as an "end script") will see it.

like image 137
Noleli Avatar answered Sep 22 '22 07:09

Noleli


I believe that if you don't need to keep jQuery updated, just copying the source code of jQuery into your extension's code base should work.

like image 44
Delan Azabani Avatar answered Sep 21 '22 07:09

Delan Azabani