diff options
author | mini-bomba <[email protected]> | 2022-10-11 16:08:07 +0200 |
---|---|---|
committer | mini-bomba <[email protected]> | 2022-10-11 16:08:07 +0200 |
commit | c8cbd893f729a61f7c198006c64a2a11d8fce062 (patch) | |
tree | cdf6a839aaa65cd64b39c0d7b60f612175fe7a20 | |
parent | 11b01fd3dd8810eb81721062034ae0245942765a (diff) | |
download | SponsorBlock-c8cbd893f729a61f7c198006c64a2a11d8fce062.tar.gz SponsorBlock-c8cbd893f729a61f7c198006c64a2a11d8fce062.zip |
Don't hide the popup on video change
also hide the info button if the popup was open when setting up buttons
-rw-r--r-- | src/content.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/content.ts b/src/content.ts index f1755019..6db9803b 100644 --- a/src/content.ts +++ b/src/content.ts @@ -438,9 +438,6 @@ async function videoIDChange(id: string): Promise<void> { } } - //close popup - closeInfoMenu(); - sponsorsLookup(); // Make sure all player buttons are properly added @@ -1812,7 +1809,8 @@ async function updateVisibilityOfPlayerControlsButton(): Promise<void> { updateEditButtonsOnPlayer(); // Don't show the info button on embeds - if (Config.config.hideInfoButtonPlayerControls || document.URL.includes("/embed/") || onInvidious) { + if (Config.config.hideInfoButtonPlayerControls || document.URL.includes("/embed/") || onInvidious + || document.getElementById("sponsorBlockPopupContainer") != null) { playerButtons.info.button.style.display = "none"; } else { playerButtons.info.button.style.removeProperty("display"); |