Merge pull request #363 from ajayyy/react

Category Improvements
This commit is contained in:
Ajay Ramachandran
2020-06-07 11:30:33 -04:00
committed by GitHub
20 changed files with 438 additions and 104 deletions

View File

@@ -973,7 +973,7 @@ function skipToTime(v: HTMLVideoElement, skipTime: number[], skippingSegments: S
if (openNotice) {
//send out the message saying that a sponsor message was skipped
if (!Config.config.dontShowNotice || !autoSkip) {
let skipNotice = new SkipNotice(skippingSegments, autoSkip, skipNoticeContentContainer);
new SkipNotice(skippingSegments, autoSkip, skipNoticeContentContainer);
}
}
@@ -1494,6 +1494,10 @@ async function sendSubmitMessage(){
// Increase contribution count
Config.config.sponsorTimesContributed = Config.config.sponsorTimesContributed + sponsorTimesSubmitting.length;
// New count just used to see if a warning "Read The Guidelines!!" message needs to be shown
// One per time submitting
Config.config.submissionCountSinceCategories = Config.config.submissionCountSinceCategories + 1;
// Empty the submitting times
sponsorTimesSubmitting = [];