admin 管理员组

文章数量: 1086019

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.

本文标签: javascriptSelectively run inline scripts after blocking all of them in FIrefoxStack Overflow