aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-05-16 20:45:16 -0400
committerAjay Ramachandran <[email protected]>2021-05-16 20:45:16 -0400
commitecfcb0b846b07ae2fa5b5a4c1aa5e863f04efb5c (patch)
treee85de1f939db9a254466d60e8da936135fd768da
parent18d10ada5e313f6dd74b2a5cec29711910674901 (diff)
downloadSponsorBlock-ecfcb0b846b07ae2fa5b5a4c1aa5e863f04efb5c.tar.gz
SponsorBlock-ecfcb0b846b07ae2fa5b5a4c1aa5e863f04efb5c.zip
Make buttons not appear on invidious
-rw-r--r--src/content.ts4
1 files 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<void> {
/** 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;