Added confirm for submitSponsorTimes

This commit is contained in:
Official Noob
2019-07-27 12:57:44 +01:00
committed by GitHub
parent 504f0b0ede
commit 08cb324125

View File

@@ -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;
}
}