Skip to content

Commit c8cbd89

Browse files
committed
Don't hide the popup on video change
also hide the info button if the popup was open when setting up buttons
1 parent 11b01fd commit c8cbd89

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/content.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,6 @@ async function videoIDChange(id: string): Promise<void> {
438438
}
439439
}
440440

441-
//close popup
442-
closeInfoMenu();
443-
444441
sponsorsLookup();
445442

446443
// Make sure all player buttons are properly added
@@ -1812,7 +1809,8 @@ async function updateVisibilityOfPlayerControlsButton(): Promise<void> {
18121809
updateEditButtonsOnPlayer();
18131810

18141811
// Don't show the info button on embeds
1815-
if (Config.config.hideInfoButtonPlayerControls || document.URL.includes("/embed/") || onInvidious) {
1812+
if (Config.config.hideInfoButtonPlayerControls || document.URL.includes("/embed/") || onInvidious
1813+
|| document.getElementById("sponsorBlockPopupContainer") != null) {
18161814
playerButtons.info.button.style.display = "none";
18171815
} else {
18181816
playerButtons.info.button.style.removeProperty("display");

0 commit comments

Comments
 (0)