mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Merge pull request #30 from OfficialNoob/patch-1
Added confirm for submitSponsorTimes
This commit is contained in:
commit
7f505a52ca
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue