summaryrefslogtreecommitdiffstats
path: root/background.js
diff options
context:
space:
mode:
authorSimonBrazell <simon@brazell.com.au>2020-02-22 14:21:44 +1100
committerSimonBrazell <simon@brazell.com.au>2020-02-22 14:21:44 +1100
commit4c1092148ebfd198ed155c854954170fbfa6e15d (patch)
tree50ffd9827c33d06ded87a52d39626165749ffb9f /background.js
parent33bd56368317f653bb30fc40059495a0c07b05dc (diff)
downloadprivacy-redirect-4c1092148ebfd198ed155c854954170fbfa6e15d.tar.gz
privacy-redirect-4c1092148ebfd198ed155c854954170fbfa6e15d.tar.bz2
privacy-redirect-4c1092148ebfd198ed155c854954170fbfa6e15d.zip
Always proxy video through Invidious without an accountv1.1.9
Diffstat (limited to 'background.js')
-rw-r--r--background.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/background.js b/background.js
index adbdb40..ab04f95 100644
--- a/background.js
+++ b/background.js
@@ -66,6 +66,8 @@ function redirectYouTube(url) {
// Redirect requests for YouTube Player API to local files instead
return chrome.runtime.getURL('assets/www-widgetapi.js');
} else {
+ // Proxy video through the server
+ url.searchParams.append('local', true);
return `${invidiousInstance}${url.pathname}${url.search}`;
}
}