Always proxy video through Invidious without an account

This commit is contained in:
SimonBrazell 2020-02-22 14:21:44 +11:00
parent 33bd563683
commit 4c1092148e
2 changed files with 3 additions and 1 deletions

View File

@ -66,6 +66,8 @@ function redirectYouTube(url) {
// Redirect requests for YouTube Player API to local files instead // Redirect requests for YouTube Player API to local files instead
return chrome.runtime.getURL('assets/www-widgetapi.js'); return chrome.runtime.getURL('assets/www-widgetapi.js');
} else { } else {
// Proxy video through the server
url.searchParams.append('local', true);
return `${invidiousInstance}${url.pathname}${url.search}`; return `${invidiousInstance}${url.pathname}${url.search}`;
} }
} }

View File

@ -1,7 +1,7 @@
{ {
"name": "Privacy Redirect", "name": "Privacy Redirect",
"description": "Redirects Twitter, YouTube & Instagram requests to privacy friendly alternatives - Nitter, Invidious, & Bibliogram.", "description": "Redirects Twitter, YouTube & Instagram requests to privacy friendly alternatives - Nitter, Invidious, & Bibliogram.",
"version": "1.1.8", "version": "1.1.9",
"manifest_version": 2, "manifest_version": 2,
"background": { "background": {
"scripts": [ "scripts": [