最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Selectively run inline scripts after blocking all of them in FIrefox - Stack Overflow

programmeradmin1浏览0评论

Context: NoScript blocks inline scripts by using a content security policy.

Is it possible, for a Firefox extension, to walk the DOM and selectively pick out scripts to allow, after blocking all of it with a CSP?

For example, walking the DOM to remove disallowed scripts, then somehow making Firefox execute all the remaining scripts?

I'm not sure how to execute these scripts in the context of the page rather than in the context of the extension.

发布评论

评论列表(0)

  1. 暂无评论