Josef Richter
Josef Richter

Reputation: 507

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

Upvotes: 10

Views: 2752

Answers (2)

Noleli
Noleli

Reputation: 61

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

Upvotes: 6

Delan Azabani
Delan Azabani

Reputation: 81384

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.

Upvotes: 3

Related Questions