How to design a browser extension/add-on compatible with multiple browsers

拥有回忆 提交于 2019-12-11 05:06:56

问题


I want to develop an browser extension/add-on which keeps track of the url value in the address bar. The add-on could either be downloaded to local file system or it could be integrated within the browser.

Also, i'm curious to know how browser extensions like Toolyo are programmed. (It's a demo link of the Toolyo tool. Sorry, I didn't find a better example than this whic is much similar to my requirement). Can someone please throw light on the languages/methods used to develop extensions that can work in multiple browsers.

Sorry for a generic (and vague, as well) question. I would really appreciate any answers/suggestions.


回答1:


The extension APIs for browsers with add-on functionality (Chrome, Firefox, etc.) are all very different and much of the browser-chrome-privileged code must be rewritten for the different browsers. User scripts, are a good alternative add-on architecture, but they only have the privilege level of an in-page script (except for GreaseMonkey in Firefox).




回答2:


Greasemonkey is inbuild in Chrome And also had support for Flock, Safari and Opera And its also coming for IE soon. So writing Greasemonkey script is also good rather then writing code per browser vendor.



来源:https://stackoverflow.com/questions/5166144/how-to-design-a-browser-extension-add-on-compatible-with-multiple-browsers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!