diff --git a/content.js b/content.js index 95ebe703..5c55a5b4 100644 --- a/content.js +++ b/content.js @@ -146,9 +146,12 @@ function videoIDChange(id) { if (response != undefined) { let sponsorTimes = response.sponsorTimes; if (sponsorTimes != null && sponsorTimes.length > 0 && sponsorTimes[sponsorTimes.length - 1].length >= 2) { - document.getElementById("submitButton").style.display = "unset"; + changeStartSponsorButton(true, true); } else if (sponsorTimes != null && sponsorTimes.length > 0 && sponsorTimes[sponsorTimes.length - 1].length < 2) { - toggleStartSponsorButton(); + changeStartSponsorButton(false, true); + } else { + changeStartSponsorButton(true, true); + document.getElementById("submitButton").style.display = "none"; } } });