Added notice info about the Invidious update. TODO: remove this in the future.

This commit is contained in:
Ajay Ramachandran
2020-01-10 22:15:28 -05:00
parent 4f8e1bc827
commit 259f7a9439
4 changed files with 19 additions and 1 deletions

View File

@@ -557,6 +557,13 @@ function skipToTime(v, index, sponsorTimes, openNotice) {
if (!SB.config.dontShowNotice) {
let skipNotice = new SkipNotice(this, currentUUID, SB.config.disableAutoSkip);
//TODO: Remove this when Invidious support is old
if (SB.config.invidiousUpdateInfoShowCount < 5) {
skipNotice.addNoticeInfoMessage(chrome.i18n.getMessage("invidiousInfo1"), chrome.i18n.getMessage("invidiousInfo2"));
SB.config.invidiousUpdateInfoShowCount += 1;
}
//auto-upvote this sponsor
if (SB.config.trackViewCount && !SB.config.disableAutoSkip && SB.config.autoUpvote) {
vote(1, currentUUID, null);