mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 20:47:11 +03:00
Only show close button on in page popup
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<body id="sponsorBlockPopupBody" style="visibility: hidden">
|
<body id="sponsorBlockPopupBody" style="visibility: hidden">
|
||||||
<div id="sponsorblockPopup" class="sponsorBlockPageBody sb-preload">
|
<div id="sponsorblockPopup" class="sponsorBlockPageBody sb-preload">
|
||||||
|
|
||||||
<button id="sbCloseButton" title="__MSG_closePopup__" class="sbCloseButton">
|
<button id="sbCloseButton" title="__MSG_closePopup__" class="sbCloseButton hidden">
|
||||||
<img src="icons/close.png" width="15" height="15">
|
<img src="icons/close.png" width="15" height="15">
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|||||||
@@ -140,6 +140,10 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (window !== window.top) {
|
||||||
|
PageElements.sbCloseButton.classList.remove("hidden");
|
||||||
|
}
|
||||||
|
|
||||||
// Hide donate button if wanted (Safari, or user choice)
|
// Hide donate button if wanted (Safari, or user choice)
|
||||||
if (!showDonationLink()) {
|
if (!showDonationLink()) {
|
||||||
PageElements.sbDonate.style.display = "none";
|
PageElements.sbDonate.style.display = "none";
|
||||||
|
|||||||
Reference in New Issue
Block a user