diff --git a/content.js b/content.js index 23c08036..522fb810 100644 --- a/content.js +++ b/content.js @@ -593,12 +593,12 @@ function sponsorMessageStarted() { } function submitSponsorTimes() { - console.log("Tessst") + if(!confirm("Are you sure you want to submit this?")) return; + 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"); @@ -677,4 +677,4 @@ function getYouTubeVideoID(url) { // Returns with video id else returns false var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/; var match = url.match(regExp); return (match && match[7].length == 11) ? match[7] : false; -} \ No newline at end of file +}