开发一个简单的Firefox插件方便吗(JS注入)
所以我只是想知道开发一个非常简单的 Firefox 插件是否很容易,你可以点击一个按钮,它就会执行一些 Javascript 代码!
请注意,我从未为 Firefox 开发过任何类型的插件,我只是想知道这是否是一项容易完成的任务(比如不到一个小时)
我还想将这个非常简单的插件重新分发给我的朋友。
So I was just wondering if it was easy to develop a very simple Firefox plugin where you could click a button, and it would execute some Javascript code!
Please note that I have never developed any kind of plugin for firefox, I just want to know if that is an easy task to do (like less than an hour)
I would also like to redistribute this very simple plugin to my friends.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果你只是想这样做,你可以创建一个 Greasemonkey 插件 代替。这真的很简单。
If you just want to do this, you could create a Greasemonkey plugin instead. This is really simple.
查看 Jetpack:https://jetpack.mozillalabs.com/ 或可能使用 GreaseMonkey:http://www.greasespot.net/
Have a look at Jetpack: https://jetpack.mozillalabs.com/ or possibly GreaseMonkey: http://www.greasespot.net/
或者,如果您想实际创建一个扩展,您可以使用以下内容:
http:// www.rietta.com/firefox/Tutorial/overview.html
提供了一个很好的完整演练。与 MDC 和 AMO 结合使用,您就拥有了构建 Firefox 扩展所需的一切。您所需要的背景只是一些 HTML、CSS 和 JavaScript 知识,您就可以了!
Or, if you wanted to actually create an extension you could use something like:
http://www.rietta.com/firefox/Tutorial/overview.html
which provides a nice complete walkthrough. Couple with MDC, and AMO you have everything you need to build a Firefox extension. All you need a a background is some HTML, CSS and JavaScript knowledge and you're there!
使用 crossrider,他们的 API 非常有用且简单
use crossrider, their API's are so useful and simple