From 45a64fcb03145c66dfd8e2a2cdfe939bc0322482 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 19 Dec 2019 00:38:55 -0500 Subject: [PATCH] Prevented upload button from appearing on invidious. It still appears if the video player controls are disabled. --- content.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content.js b/content.js index 424b476f..a1bdad71 100644 --- a/content.js +++ b/content.js @@ -756,6 +756,9 @@ function getControls() { //adds all the player controls buttons async function createButtons() { + // Don't add controls on Invidious yet + if (onInvidious) return; + let result = await wait(getControls).catch(); //set global controls variable