mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Added confirm for submitSponsorTimes
This commit is contained in:
parent
504f0b0ede
commit
08cb324125
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue