当我查看 Chrome 扩展插件时,有一个类或类似的东西叫做Chrome.extension
例如:
chrome.extension.onRequest.addListener(function(request, sender, response) {
if (request.msg == 'page_capturable') {
$('tip').style.display = 'none';
$('capture........
........................
........................
如您所见,此 chrome.extension 中有几个功能,例如 onRequest
,getBackgroundPage()
和其他...
我检查了 Firefox 浏览器,它也支持这个chrome.extension ......
我想尝试将此类添加到我的 html 文件中,以使用 JavaScript 或类似的东西启用此功能
我将尝试在Internet Explorer中使用它。
有没有人可以在这个话题上照亮我?也许是一个 URL 或它自己的包?
顺便说一句:我使用了 google chrome 扩展并设法将其转换为 Firefox 这是我证明 Firefox 支持这个 chrome.extension 的东西 Chrome on Firefox