扩展程序上的Chrome扩展程序? [英] Chrome extension on an extension?

查看:116
本文介绍了扩展程序上的Chrome扩展程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能,即使以一种诡异的方式,为现有的扩展程序制作Chrome扩展程序?或者为了修补现有的扩展?



我希望对非开源的chrome扩展做一些简单的可用性更改。

chrome-extension:// 地址的其他扩展程序的内部页面工具栏弹出,页面动作弹出,选项页面,背景页面),也不访问其他扩展的内容脚本。

它不期望来自另一个扩展的


Is it possible, even in a hacky way, to make a chrome extension for an already existing extension? Or to monkey patch an existing extension?

I wish to make some simple usability changes to a non-open source chrome extension.

解决方案

Chrome extensions can't access the internal pages of other extensions which have chrome-extension:// address (toolbar popup, page action popup, options page, background page), nor access the content scripts of other extensions.

The only case where it's possible to influence another extension (implying it's not expecting an external connection from another extension) is when that other extension depends on DOM events and messages and this is the extent of it.

There's a questionable method though: using the debugger API it's possible to execute code in the context of another extension, change its variables and so on. However a big notification will be displayed on every page in the browser:

这篇关于扩展程序上的Chrome扩展程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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