mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 22:17:21 +03:00
Hide donate button on safari
This commit is contained in:
@@ -138,7 +138,7 @@
|
|||||||
<a href="https://discord.gg/QnmVMpU" target="_blank" rel="noopener">Discord</a> |
|
<a href="https://discord.gg/QnmVMpU" target="_blank" rel="noopener">Discord</a> |
|
||||||
<a href="https://matrix.to/#/#sponsor:ajay.app?via=ajay.app&via=matrix.org&via=mozilla.org" target="_blank" rel="noopener">Matrix</a> |
|
<a href="https://matrix.to/#/#sponsor:ajay.app?via=ajay.app&via=matrix.org&via=mozilla.org" target="_blank" rel="noopener">Matrix</a> |
|
||||||
<a id="helpButton" style="cursor: pointer;">__MSG_help__</a> |
|
<a id="helpButton" style="cursor: pointer;">__MSG_help__</a> |
|
||||||
<a href="https://sponsor.ajay.app/donate" target="_blank" rel="noopener">$</a>
|
<a href="https://sponsor.ajay.app/donate" target="_blank" rel="noopener" id="sbDonate">$</a>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<button id="showNoticeAgain" style="display: none" class="dangerButton popupElement">__MSG_showNotice__</button>
|
<button id="showNoticeAgain" style="display: none" class="dangerButton popupElement">__MSG_showNotice__</button>
|
||||||
|
|||||||
@@ -103,8 +103,14 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
|
|||||||
"sponsorMessageTimes",
|
"sponsorMessageTimes",
|
||||||
//"downloadedSponsorMessageTimes",
|
//"downloadedSponsorMessageTimes",
|
||||||
"whitelistButton",
|
"whitelistButton",
|
||||||
|
"sbDonate"
|
||||||
].forEach(id => PageElements[id] = document.getElementById(id));
|
].forEach(id => PageElements[id] = document.getElementById(id));
|
||||||
|
|
||||||
|
// Hide donate button on safari
|
||||||
|
if (navigator.vendor === "Apple Computer, Inc.") {
|
||||||
|
PageElements.sbDonate.style.display = "none";
|
||||||
|
}
|
||||||
|
|
||||||
//setup click listeners
|
//setup click listeners
|
||||||
PageElements.sponsorStart.addEventListener("click", sendSponsorStartMessage);
|
PageElements.sponsorStart.addEventListener("click", sendSponsorStartMessage);
|
||||||
PageElements.whitelistToggle.addEventListener("change", function() {
|
PageElements.whitelistToggle.addEventListener("change", function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user