10

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

Josef Richter
  • 497
  • 1
  • 9
  • 16

2 Answers2

6

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

Noleli
  • 61
  • 1
3

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.

Delan Azabani
  • 79,602
  • 28
  • 170
  • 210