gpt4 book ai didi

javascript - 在运行之前拦截 Javascript

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:22:12 25 4
gpt4 key购买 nike

在 firefox 扩展中,我如何拦截添加后运行的节点(特别是脚本标签)?我认为这是可能的,因为像 NoScript 和 AdBlockPlus 这样的扩展似乎可以做到这一点。是否可以从暴露给插件的 javascript 接口(interface)?

最佳答案

不知道NoScript,但Adblock的主要武器是nsIContentPolicy .

您可能还对 onbeforescriptexecute 感兴趣. (在文档更新更多信息之前,请参阅 the bug that added this feature。)

关于javascript - 在运行之前拦截 Javascript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4207716/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com