From 08cb324125d9a3b631c0fc85131b09822cc7b287 Mon Sep 17 00:00:00 2001 From: Official Noob <31563761+OfficialNoob@users.noreply.github.com> Date: Sat, 27 Jul 2019 12:57:44 +0100 Subject: [PATCH] Added confirm for submitSponsorTimes --- content.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +}