diff --git a/content.js b/content.js index 4c624aaa..5e46eff7 100644 --- a/content.js +++ b/content.js @@ -593,6 +593,7 @@ function sponsorMessageStarted() { } function submitSponsorTimes() { + if(!confirm("Are you sure you want to submit this?")) return; //add loading animation document.getElementById("submitButtonImage").src = chrome.extension.getURL("icons/PlayerUploadIconSponsorBlocker256px.png"); document.getElementById("submitButton").style.animation = "rotate 1s 0s infinite"; @@ -670,4 +671,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 +}