Project

General

Profile

« Previous | Next » 

Revision 6b53d6c8

Added by koszko about 2 years ago

use StreamFilter under Mozilla to prevent csp tags from blocking our injected scripts

View differences:

content/main.js
47 47

  
48 48
    handle_page_actions(policy.nonce);
49 49

  
50
    if (!policy.allow && is_mozilla)
51
	addEventListener('beforescriptexecute', mozilla_suppress_scripts, true);
52

  
53
    if (!policy.allow && is_chrome) {
50
    if (!policy.allow) {
54 51
	const old_html = document.documentElement;
55 52
	const new_html = document.createElement("html");
56 53
	old_html.replaceWith(new_html);

Also available in: Unified diff