mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 14:07:13 +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. */
|
/** Updates the visibility of buttons on the player related to creating segments. */
|
||||||
function updateEditButtonsOnPlayer(): void {
|
function updateEditButtonsOnPlayer(): void {
|
||||||
// Don't try to update the buttons if we aren't on a YouTube video page
|
// 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 creatingSegment = false;
|
||||||
let submitButtonVisible = false;
|
let submitButtonVisible = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user