构建Google Chrome插件的提示/资源
时间:2020-03-05 18:46:45 来源:igfitidea点击:
在试用了30分钟左右的Google Chrome浏览器后,我喜欢它,即使此刻它似乎还很简陋。添加一些我无法忍受的东西的明显方法是通过插件。有人在如何开始为Chrome构建插件/附件方面有资源链接吗?谢谢。
解决方案
回答
Chrome浏览器确实支持netscape插件api,但这用于显示某些类型的内容。
我们似乎是在使用扩展API,实际上Firefox是唯一鼓励和支持第三方扩展浏览功能的主流浏览器(不仅仅是新的工具栏)
开发人员文档中没有任何内容指向Google似乎希望保持对应用程序外观的严格控制的浏览器增强型api。
我们可能会在开发站点上找到更确定的答案:
dev.chromium.org,其中一些开发人员可能在freenode的#chromium上的irc上。
回答
马特·卡茨(Google
SEO专家)对chrome进行了问答,并且
写道:
Q: But I can’t install extension X! Google Chrome is dead to me if I can’t use extension X! A: Then you’ll have to use another browser for a while. Google Chrome currently doesn’t support browser extensions (it does support plug-ins, such as Flash). I’m sure that extensions/add-ons are something that the Chrome team would like to do down the road, but the Chrome team will be a bit busy for a while, what with the feedback from the launch plus working on Mac and Linux support. I’d suggest that you give Google Chrome a try for a few days to see if enjoy browsing even without extension X. A lot of really cool extension-like behaviors such as resize-able textareas and drag-and-drop file upload are already built into Google Chrome.
回答
Chromium支持NPAPI插件,与Firefox扩展相比,该插件更难编程。但是,NPAPI具有更好的性能并且用途更多。
请查看此NPAPI插件的简约示例。
回答
Q: But I can’t install extension X! Google Chrome is dead to me if I can’t use extension X! A: No worries! Now google chrome has extensions too. Look here.
如果有人对chrome扩展程序开发感兴趣,请访问以下链接,获取最新的Google chrome扩展程序开发人员文档页面。
注意:插件(NPAPI)和扩展名(基于JS)是不同的
从文件...
Extensions are small software programs that can modify and enhance the functionality of Google Chrome. You write them using web technologies like HTML, JavaScript, and CSS. So if you know how to write web pages, you already know most of what you need to know to write extensions.
回答
Chrome现在支持扩展程序和主题。这是开发扩展的文档,这是描述主题创建的页面。