From 4c1092148ebfd198ed155c854954170fbfa6e15d Mon Sep 17 00:00:00 2001 From: SimonBrazell Date: Sat, 22 Feb 2020 14:21:44 +1100 Subject: Always proxy video through Invidious without an account --- background.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'background.js') diff --git a/background.js b/background.js index adbdb400..ab04f950 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}`; } } -- cgit 1.4.1