From fe8f25fe2342dfa3b2a1c0ac7ecb8d7abef6c117 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 5 Jul 2020 00:11:29 -0400 Subject: [PATCH] Hide submit button on invidious --- src/content.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content.ts b/src/content.ts index c443077b..9b824001 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1199,9 +1199,9 @@ async function changeStartSponsorButton(showStartSponsor, uploadButtonVisible) { ( document.getElementById("startSponsorImage")).src = chrome.extension.getURL("icons/PlayerStartIconSponsorBlocker256px.png"); document.getElementById("startSponsorButton").setAttribute("title", chrome.i18n.getMessage("sponsorStart")); - if (document.getElementById("startSponsorImage").style.display != "none" && uploadButtonVisible && !Config.config.hideUploadButtonPlayerControls) { + if (document.getElementById("startSponsorImage").style.display != "none" && uploadButtonVisible && !Config.config.hideUploadButtonPlayerControls && !onInvidious) { document.getElementById("submitButton").style.display = "unset"; - } else if (!uploadButtonVisible) { + } else if (!uploadButtonVisible || onInvidious) { //disable submit button document.getElementById("submitButton").style.display = "none"; }