如何设计一个浏览器扩展/插件与多个浏览器兼容 [英] How to design a browser extension/add-on compatible with multiple browsers

查看:332
本文介绍了如何设计一个浏览器扩展/插件与多个浏览器兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个浏览器扩展/插件其跟踪的地址栏中的URL价值。该附加既可以被下载到本地文件系统或者可以在浏览器中进行集成。

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.

另外,我很好奇,想知道浏览器扩展如 Toolyo 如何编程。 (这是Toolyo工具的演示环节。对不起,我没有找到一个最好的例子莫过于此whic很多类似我的要求)。可有人请上用于开发扩展,可以在多种浏览器的语言/方法扔光。

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.

对不起,通用(和模糊,以及)的问题。我真的AP preciate任何答案/建议。

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

推荐答案

与附加功能(浏览器,Firefox等)浏览器的扩展API都非常不同,许多浏览器铬特权$ C的$ C必须重写为不同的浏览器。用户脚本,是一个很好的选择附加架构,但他们只有一个在网页脚本的权限级别(除了在Firefox的GreaseMonkey)。

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).

这篇关于如何设计一个浏览器扩展/插件与多个浏览器兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆