views:

92

answers:

1

I'm looking to make a browser add-on as widely and easily distributable as possible.

Is there a set of wrapper addons for all the major browsers that will let me write one piece of code and it can execute in any of the environments? I don't need anything fancy, just DOM and some ajax stuff.

Something along the lines of greasemonkey for IE, FF, and Chrome would be nice.

In the same vein, is there a way to link to my script so that it prompts for an install of greasemonkey (if it isn't installed) and then leads the script?

+1  A: 

For IE there's Trixie or IE7Pro, there's built-in Opera support for userscripts, and for Safari there's GreaseKit, and for Chrome, you can enable user-scripts as well.

I'm not sure about auto-triggering the install of GreaseMonkey.

pib
Wow, ok. Any scripts to do browser detection and get my users to install the right one? And any documentation on the shared subset of available features?
Paul Tarjan
For browser detection, I'd use jQuery.browser (http://docs.jquery.com/Utilities/jQuery.browser), or you could try to parse navigator.userAgent (http://www.w3schools.com/jsref/prop_nav_useragent.asp) yourself.The QuirksMode compatibility charts (http://www.quirksmode.org/compatibility.html) are a good source of what features of JS (and other things) are supported in various browsers.
pib