From aaf79fda0d21068716d2b5af00fada2675d4ee65 Mon Sep 17 00:00:00 2001
From: Ajay Ramachandran
Date: Sun, 25 Aug 2019 23:22:35 -0400
Subject: [PATCH 1/7] Added more language strings
---
_locales/en/messages.json | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index f4a08de1..3501b831 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -135,5 +135,17 @@
},
"submitCheck": {
"message": "Are you sure you want to submit this?"
+ },
+ "longDescription": {
+ "message": "SponsorBlock is an extension that will skip over sponsored segments of YouTube videos. SponsorBlock is a crowdsourced browser extension that let's anyone submit the start and end time's of sponsored segments of YouTube videos. Once one person submits this information, everyone else with this extension will skip right over the sponsored segment.",
+ "description": "Full description of the extension on the store pages."
+ },
+ "website": {
+ "message": "Website",
+ "description": "Used on Firefox Store Page"
+ },
+ "sourceCode": {
+ "message": "Source Code",
+ "description": "Used on Firefox Store Page"
}
}
From 5bbfcf742d248a28d39808797db2624596712aa7 Mon Sep 17 00:00:00 2001
From: Ajay Ramachandran
Date: Mon, 26 Aug 2019 14:30:55 -0400
Subject: [PATCH 2/7] Fixed preview bar bar loading too early
---
content.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/content.js b/content.js
index b2bf0f5c..1af670f4 100644
--- a/content.js
+++ b/content.js
@@ -238,8 +238,10 @@ function videoIDChange(id) {
//setup the preview bar
if (previewBar == null) {
//create it
- let progressBar = document.getElementsByClassName("ytp-progress-bar-container")[0] || document.getElementsByClassName("no-model cue-range-markers")[0];
- previewBar = new PreviewBar(progressBar);
+ wait(getControls).then(result => {
+ let progressBar = document.getElementsByClassName("ytp-progress-bar-container")[0] || document.getElementsByClassName("no-model cue-range-markers")[0];
+ previewBar = new PreviewBar(progressBar);
+ });
}
//warn them if they had unsubmitted times
@@ -271,7 +273,7 @@ function videoIDChange(id) {
sponsorsLookup(id);
//make sure everything is properly added
- updateVisibilityOfPlayerControlsButton(true);
+ updateVisibilityOfPlayerControlsButton();
//reset sponsor times submitting
sponsorTimesSubmitting = [];
From 3f35642010dbaa105b3b162fae11d33eed83eec9 Mon Sep 17 00:00:00 2001
From: Ajay Ramachandran
Date: Mon, 26 Aug 2019 14:35:49 -0400
Subject: [PATCH 3/7] Made the preview bar wait for it to not be null.
---
content.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/content.js b/content.js
index 1af670f4..d6a8bf2c 100644
--- a/content.js
+++ b/content.js
@@ -414,7 +414,7 @@ function updatePreviewBar() {
types.push("previewSponsor");
}
- previewBar.set(allSponsorTimes, types, v.duration);
+ wait(() => previewBar !== null).then((result) => previewBar.set(allSponsorTimes, types, v.duration));
//update last video id
lastPreviewBarUpdate = sponsorVideoID;
From 796466a72ae570882406ab624e2163ee073cb8d0 Mon Sep 17 00:00:00 2001
From: Ajay Ramachandran
Date: Mon, 26 Aug 2019 16:08:33 -0400
Subject: [PATCH 4/7] Added some shields
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 4d659fe0..537f4047 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@
Stats
+ 
SponsorBlock is an extension that will skip over sponsored segments of YouTube videos. SponsorBlock is a crowdsourced browser extension that lets anyone submit the start and end times of sponsored segments of YouTube videos. Once one person submits this information, everyone else with this extension will skip right over the sponsored segment.
From 59233f33076f6cceb5245295e613233239fd3f81 Mon Sep 17 00:00:00 2001
From: Ajay Ramachandran
Date: Mon, 26 Aug 2019 16:09:26 -0400
Subject: [PATCH 5/7] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 537f4047..41674fd3 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@
Stats
- 
+[]() []()
SponsorBlock is an extension that will skip over sponsored segments of YouTube videos. SponsorBlock is a crowdsourced browser extension that lets anyone submit the start and end times of sponsored segments of YouTube videos. Once one person submits this information, everyone else with this extension will skip right over the sponsored segment.
From 5891fccacb40f4814ec198119400b7e9452771a3 Mon Sep 17 00:00:00 2001
From: Ajay Ramachandran
Date: Mon, 26 Aug 2019 16:10:25 -0400
Subject: [PATCH 6/7] Updated shield links
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 41674fd3..44a2a5f1 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@
Stats
-[]() []()
+[](https://addons.mozilla.org/addon/sponsorblock/?src=external-github) [](https://chrome.google.com/webstore/detail/mnjggcdmjocbbbhaepdhchncahnbgone)
SponsorBlock is an extension that will skip over sponsored segments of YouTube videos. SponsorBlock is a crowdsourced browser extension that lets anyone submit the start and end times of sponsored segments of YouTube videos. Once one person submits this information, everyone else with this extension will skip right over the sponsored segment.
From c83eb589ea372906ca34201c3a43bd77a05e977a Mon Sep 17 00:00:00 2001
From: Ajay Ramachandran
Date: Tue, 27 Aug 2019 21:00:00 -0400
Subject: [PATCH 7/7] Updated version number.
---
manifest.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/manifest.json b/manifest.json
index 2e883ddf..83eb5041 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"name": "__MSG_fullName__",
"short_name": "__MSG_Name__",
- "version": "1.1.6",
+ "version": "1.1.7",
"default_locale": "en",
"description": "__MSG_Description__",
"content_scripts": [