Merge branch 'experimental' into patch-24

This commit is contained in:
Ajay Ramachandran
2019-08-27 21:04:05 -04:00
committed by GitHub
4 changed files with 20 additions and 5 deletions

View File

@@ -14,6 +14,7 @@
<a href="https://sponsor.ajay.app/stats">Stats</a>
</p>
[![](https://img.shields.io/amo/users/sponsorblock?label=Firefox%20Users)](https://addons.mozilla.org/addon/sponsorblock/?src=external-github) [![](https://img.shields.io/chrome-web-store/users/mnjggcdmjocbbbhaepdhchncahnbgone?label=Chome%20Users)](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.

View File

@@ -231,5 +231,17 @@
},
"showNotice": {
"message": "Show Notice Again"
},
"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"
}
}

View File

@@ -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 = [];
@@ -412,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;

View File

@@ -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": [