I am new to firefox extension building and would like some help on an application I am creating. I would like to create a firefox extension that on choosing to activate the firefox extension, opens a new tab and sends the script to the page to display a certain amount of text or perform some sort of activity. The only problem with this being that I do not know how to implement any of this in the javascript or xul file.
我是firefox扩展版的新手,希望对我正在创建的应用程序有所帮助。我想创建一个firefox扩展,在选择激活firefox扩展时,打开一个新选项卡并将脚本发送到页面以显示一定量的文本或执行某种活动。唯一的问题是我不知道如何在javascript或xul文件中实现任何这些。
I have created the menu option in the javascript file and this is called from the XUL file. Can anyone help me create the script in the web page?
我在javascript文件中创建了菜单选项,这是从XUL文件中调用的。任何人都可以帮我在网页上创建脚本吗?
Thank you
1 个解决方案
#1
If the script you're looking to run is JavaScript, I'd recommend just using the GreaseMonkey add-on.
如果您要运行的脚本是JavaScript,我建议您只使用GreaseMonkey附加组件。
#1
If the script you're looking to run is JavaScript, I'd recommend just using the GreaseMonkey add-on.
如果您要运行的脚本是JavaScript,我建议您只使用GreaseMonkey附加组件。