哪种浏览器最容易开发浏览器扩展?
我有兴趣学习为大多数主要浏览器(Chrome、Firefox、Safari、Opera、IE)开发浏览器扩展,但我不确定从哪里开始。为了保持我的兴趣,我想开始为学习曲线最平缓的浏览器进行开发。
那么,您为不同浏览器开发扩展程序的经验如何?当然,一个人必须针对多种浏览器进行开发才能给出合理的答案。
我是一名经验丰富的 Web 开发人员,对 C++/Java/Ruby/Erlang 等也没有任何问题,所以问题不是我能够学习什么,而是我最快能收获什么成果。
I am interested in learning to develop browser extensions for most major browsers (Chrome, Firefox, Safari, Opera, IE), but I am unsure of where to start. To keep my interest up, I would like to start developing for the browser which has the gentlest learning curve.
So, what is your experience developing extensions for different browsers? Naturally, one must have developed for more than one browser in order to give a reasonable answer.
I am an experienced web developer, and also have no problems with C++/Java/Ruby/Erlang, etc, so the question is not what I am capable of learning, but rather what I most quickly would reap the fruits of.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据我的经验,Chrome 是最容易编写扩展的。它仅使用 HTML 和 JavaScript 等标准 Web 技术,并具有任何具有 Web 开发技能的人都熟悉的紧凑扩展 API。这与 Firefox 形成鲜明对比,Firefox 需要了解许多其他或多或少专有的语言、文件格式和 API,如 XUL、RDF 和 XPCOM。这意味着进入 Firefox 扩展开发的学习曲线更加陡峭。
另一方面,Chrome 提供的扩展功能有限,例如向工具栏添加按钮以及使用脚本修改网页内容。扩展程序经过严格沙箱处理,并且对本地计算机上的资源的访问受到限制。如果您的扩展需要额外的功能,那么您将必须使用 NPAPI 或 PPAPI 插件,这要复杂得多。在这种情况下,使用 Firefox 会更容易,因为它为“开箱即用”的扩展提供了更广泛的功能。
In my experience Chrome is the easiest to write extensions for. It uses only standard web technologies like HTML and JavaScript, with a compact extension API that will seem familiar to anyone with web development skills. This contrasts with Firefox which requires knowledge of a number of other more or less proprietary languages, file formats and APIs like XUL, RDF and XPCOM. This means that the learning curve to get into Firefox extension development is steeper.
On the other hand, Chrome offer limited capabilities for extensions such adding buttons to the toolbar and using script to modify the contents of a web page. Extensions are heavily sandboxed and have restricted access to resources on the local machine. If your extension requires additional capabilities then you will have to use an NPAPI or PPAPI plugin, which is much more complex. In this case, it would be easier to use Firefox which offers much broader capabilities to extensions "out of the box".
我只是想添加一些我发现的关于此的见解: http://alfonsoml.blogspot.com/2011/02/creating-extensions-for-each-browser.html
I just wanted to add some insights regarding this that I found: http://alfonsoml.blogspot.com/2011/02/creating-extensions-for-each-browser.html