youtube: fix consent cookie for youtube - firefox-fix-web - Firefox extension: … | |
git clone git://git.codemadness.org/firefox-fix-web | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 702d00a37d2537ac8b58187d023b93862c4b220e | |
parent 6288d9eeb4c61c74d95fe6f92dfd71193d159ac4 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 11 Apr 2021 12:50:58 +0200 | |
youtube: fix consent cookie for youtube | |
Diffstat: | |
M extension/background.js | 10 ++++++++-- | |
1 file changed, 8 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/extension/background.js b/extension/background.js | |
@@ -1,3 +1,7 @@ | |
+/* what this file does: | |
+ - rewrites User-Agent headers. | |
+ - sets consent cookie for Google and Youtube. */ | |
+ | |
function main(info) { | |
/* get current running Firefox version, to always keep up-to-date */ | |
@@ -87,8 +91,10 @@ chrome.webRequest.onBeforeSendHeaders.addListener( | |
"*://google.com/*", | |
"*://*.google.nl/*", | |
"*://google.nl/*", | |
- "*://*.youtube.*/*", | |
- "*://youtube.*/*", | |
+ "*://*.youtube.com/*", | |
+ "*://youtube.com/*", | |
+ "*://*.youtu.be/*", | |
+ "*://youtu.be/*", | |
"*://*.gstatic.com/*" | |
] | |
}, |