aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2019-07-27 11:08:29 -0400
committerAjay Ramachandran <[email protected]>2019-07-27 11:08:29 -0400
commit600365d998748316324f3f29308cfbd08ed5aa0c (patch)
treeaf9667241f8881a569b60088760bae81350b6482
parent00877fb0878dfb40ace065945b21ca58cffd5250 (diff)
downloadSponsorBlock-600365d998748316324f3f29308cfbd08ed5aa0c.tar.gz
SponsorBlock-600365d998748316324f3f29308cfbd08ed5aa0c.zip
Made it not possible to submit from the hotkey when not ready.
-rw-r--r--content.js7
-rw-r--r--firefox_manifest.json2
-rw-r--r--manifest.json2
3 files changed, 9 insertions, 2 deletions
diff --git a/content.js b/content.js
index 4c624aaa..23c08036 100644
--- a/content.js
+++ b/content.js
@@ -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": [
{