Creating a WebExtensions extension that works in multiple browsers

I have an 8 year old extension called Redirector. I just tried to port it to WebExtensions, but found that it’s not really ready to use yet, not even in Nightly. Instead I rewrote my extension as a Chrome extension and then got it working using the Add-on SDK and some polyfills for Firefox. So, now I have an extension using mostly the same code working on three browsers, Firefox, Opera and Chrome.

I wrote about this approach here: http://einaregilsson.com/writing-a-browser-extension-for-three-browsers/ , if anyone’s interested.

4 Likes

Thanks for sharing! Blogs are awesome but visibility on them is real low for your non-followers. So nice idea to share it on the forum. I think documentation is crucial to programmers so maybe on MDN we can get a “related links” section that links to related blogs :slight_smile:

1 Like