mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +03:00
Make buttons not appear on invidious
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user