Reputation: 16974
I'm working on some Google Chrome user scripts and now I'd like to make them work on other browsers too.
That means Greasemonkey compatibility for Firefox, I think I've heard Opera has some support too, and if it's possible to support Safari and Explorer too, all in one script that would be great.
But I have one problem. I'm loading jQuery into my script and sometimes other libraries or dependencies, such as jQuery UI. This seems tricky to get right just for one browser. Is there some snippet / framework / pattern floating around that can do this for all browsers that support a version of Greasemonkey user scripts?
I had been using this "Multiple-dependancy Chrome-friendly userscript pattern" by Brian Schweitzer but it turns out that it has some flaw which when I use it on Stack Exchange, prevents the post editing toolbar and previews from appearing, so I'm looking for alternatives.
Upvotes: 0
Views: 361
Reputation: 1872
While I work at Crossrider, and my opinion might be a bit biased - From what you're describing, I think Crossrider's framework would be useful for you. You can develop with jQuery natively, and your code would work on all major browsers (Chrome, Firefox, IE and Safari).
It would save you a lot of hassle of "getting it right" on each browser.
Upvotes: 4