从 Firefox 扩展检测 JS API 调用

发布于 2024-10-10 09:16:30 字数 130 浏览 0 评论 0原文

我正在编写一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜灵血窟げ 2024-10-17 09:16:30

您必须首先弄清楚您尝试扩展的网页如何执行您想要增强的调用。 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文