开发者

using jQuery in Safari Extension

开发者 https://www.devze.com 2023-01-08 22:48 出处:网络
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 m

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开发者_Go百科 WWDC videos, but I don't know how to do it.

Thanks


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号