about summary refs log tree commit diff stats
path: root/background.js
diff options
context:
space:
mode:
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 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}`;
   }
 }