diff options
author | Ajay Ramachandran <[email protected]> | 2021-05-16 20:45:16 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-05-16 20:45:16 -0400 |
commit | ecfcb0b846b07ae2fa5b5a4c1aa5e863f04efb5c (patch) | |
tree | e85de1f939db9a254466d60e8da936135fd768da | |
parent | 18d10ada5e313f6dd74b2a5cec29711910674901 (diff) | |
download | SponsorBlock-ecfcb0b846b07ae2fa5b5a4c1aa5e863f04efb5c.tar.gz SponsorBlock-ecfcb0b846b07ae2fa5b5a4c1aa5e863f04efb5c.zip |
Make buttons not appear on invidious
-rw-r--r-- | src/content.ts | 4 |
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; |