diff options
author | Ajay Ramachandran <[email protected]> | 2019-07-27 11:10:23 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2019-07-27 11:10:23 -0400 |
commit | 808dfe42ceb45c448ccf586ef4555e1e07842379 (patch) | |
tree | fd25d632ada0973c52c72d90f3ae95f9d91d89d7 | |
parent | 504f0b0ededf0f1e25115badb4a6dde7a4db5c7f (diff) | |
parent | 600365d998748316324f3f29308cfbd08ed5aa0c (diff) | |
download | SponsorBlock-808dfe42ceb45c448ccf586ef4555e1e07842379.tar.gz SponsorBlock-808dfe42ceb45c448ccf586ef4555e1e07842379.zip |
Merge pull request #35 from ajayyy/experimentalv1.0.10
Made it not possible to submit from the hotkey when not ready
-rw-r--r-- | content.js | 7 | ||||
-rw-r--r-- | firefox_manifest.json | 2 | ||||
-rw-r--r-- | manifest.json | 2 |
3 files changed, 9 insertions, 2 deletions
@@ -593,6 +593,13 @@ function sponsorMessageStarted() { } function submitSponsorTimes() { + console.log("Tessst") + 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"); document.getElementById("submitButton").style.animation = "rotate 1s 0s infinite"; diff --git a/firefox_manifest.json b/firefox_manifest.json index 8a7b6bb6..7021c6ff 100644 --- a/firefox_manifest.json +++ b/firefox_manifest.json @@ -1,7 +1,7 @@ { "name": "SponsorBlock - YouTube Sponsorship Blocker", "short_name": "SponsorBlock", - "version": "1.0.9", + "version": "1.0.10", "description": "Skip over sponsorship on YouTube videos. Report sponsors on videos you watch to save the time of others.", "content_scripts": [ { diff --git a/manifest.json b/manifest.json index 4a8146c4..8a397921 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "SponsorBlock - YouTube Sponsorship Blocker", "short_name": "SponsorBlock", - "version": "1.0.9", + "version": "1.0.10", "description": "Skip over sponsorship on YouTube videos. Report sponsors on videos you watch to save the time of others.", "content_scripts": [ { |