Re:Chrome Extension Development, By Practical Example
by candeira on Saturday January 21, 2012 @04:47AM
(#3493169)
It seems to me there is a need for a browser extension framework/polyfill that allows you to write code once, deploy to any browser. Would that even be possible?
If you abstract away the browser-specific API, it's not too hard to write a cross-browser extension. Here's one that runs on both Chrome and Safari:
http://code.google.com/p/marking-menu-js/source/browse/#svn%...
Notice how it implements the important bits of Chrome's extension API in terms of Safari's:
http://code.google.com/p/marking-menu-js/source/browse/trunk...
That allows you to easily port Chrome extensions over.