简体   繁体   English

是否可以在工具栏中为Firebreath插件创建图标

[英]Is it possible to create an icon in the toolbar for firebreath plugin

I have created a firebreath plugin and I have a method like MyJsFunction() , this method can be called in javascript. 我创建了一个firebreath插件,并且有一个类似MyJsFunction()的方法,可以在javascript中调用该方法。

I want an icon in my browser toolbar like an add-on for my plugin, so that by clicking on that icon I can call my method, is this possible in plugin. 我希望浏览器工具栏中的图标像插件的附件一样,以便通过单击该图标可以调用我的方法,这在插件中是可能的。

because my plugin has to work for all webpages, not only for single page. 因为我的插件必须适用于所有网页,而不仅适用于单个页面。

No. The functionality you are looking for is not something that plugins are capable of doing -- you need an extension for that. 不需要。您正在寻找的功能不是插件能够实现的,您需要对此进行扩展。 See http://npapi.com/extensions for more information on the difference. 有关差异的更多信息,请参见http://npapi.com/extensions

You could use an extension with a plugin to potentially do this. 您可以使用带有插件的扩展程序来执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM