是否可以使用自己的Chrome扩展来执行另一个扩展? [英] Is it possible to execute another chrome extension using your own chrome extension?

查看:152
本文介绍了是否可以使用自己的Chrome扩展来执行另一个扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我希望能够编程我自己的扩展,以便为特定目的触发另一个扩展。这甚至可能吗?

解决方案

如果你想管理其他扩展,你可以看看 chrome.management ,对于您的情况,我相信您希望检查 management.setEnabled ,它允许您启用/禁用另一个扩展。



如果您的意思是与正在运行的扩展进行消息传递通信,并且您可以控制两个扩展,则可以使用跨扩展消息与其他扩展进行通信。

Essentially I want to be able to program my own extension to trigger another extension for certain purposes. Is this even possible?

解决方案

If you want to manage other extensions, you could take a look at chrome.management, for your case, I believe you'd like to check management.setEnabled, it allows you to enable/disable another extension.

If you mean to communicate with an running extension for message passing and you have control on both of the two extensions, you could use Cross-extension messaging to communicate with other extensions.

这篇关于是否可以使用自己的Chrome扩展来执行另一个扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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