From ecfcb0b846b07ae2fa5b5a4c1aa5e863f04efb5c Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 16 May 2021 20:45:16 -0400 Subject: [PATCH] Make buttons not appear on invidious --- src/content.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content.ts b/src/content.ts index 50c5cf87..22ab7c3e 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1123,9 +1123,9 @@ async function updateVisibilityOfPlayerControlsButton(): Promise { /** Updates the visibility of buttons on the player related to creating segments. */ function updateEditButtonsOnPlayer(): void { // Don't try to update the buttons if we aren't on a YouTube video page - if (!sponsorVideoID || onInvidious) return; + if (!sponsorVideoID) return; - const buttonsEnabled = !Config.config.hideVideoPlayerControls; + const buttonsEnabled = !Config.config.hideVideoPlayerControls && !onInvidious; let creatingSegment = false; let submitButtonVisible = false;