aboutsummaryrefslogtreecommitdiffhomepage
path: root/content.js
diff options
context:
space:
mode:
Diffstat (limited to 'content.js')
-rw-r--r--content.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/content.js b/content.js
index 4c624aaa..23c08036 100644
--- a/content.js
+++ b/content.js
@@ -593,6 +593,13 @@ function sponsorMessageStarted() {
}
function submitSponsorTimes() {
+ console.log("Tessst")
+ if (document.getElementById("submitButton").style.display == "none") {
+ //don't submit, not ready
+ return;
+ }
+ console.log("Test")
+
//add loading animation
document.getElementById("submitButtonImage").src = chrome.extension.getURL("icons/PlayerUploadIconSponsorBlocker256px.png");
document.getElementById("submitButton").style.animation = "rotate 1s 0s infinite";