从 Firefox 扩展检测 JS API 调用
我正在编写一个 FF 扩展,它将修改现有网页的行为。该网站的一个页面(通过 Javascript)调用回我想要增强的服务器(通过公共 api)。
有谁知道我该怎么做这样的事情?不太确定从哪里开始。
非常感谢, 马特
I am writing a FF extension that will modify the behavior of an existing webpage. A page from the site makes a call (via Javascript) back to a server (via a public api) that I would like to augment.
Does anyone know how I might do something like this? Not exactly sure where to start.
Thank you very much,
Matt
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须首先弄清楚您尝试扩展的网页如何执行您想要增强的调用。 Firebug 和检查源代码在这里会很有帮助。
然后使用 GreaseMonkey 或其重新实现部分对页面进行必要的更改。
You'll have to first figure out how the web page you're trying to extend does the call you want to augment. Firebug and inspecting the source will be helpful here.
Then use GreaseMonkey or a reimplement parts of it to make the necessary changes to the page.