Added option for auto-vote.

This commit is contained in:
Ajay Ramachandran
2020-01-10 20:06:16 -05:00
parent 5c227f445a
commit 7335429541
5 changed files with 27 additions and 5 deletions

View File

@@ -556,8 +556,9 @@ function skipToTime(v, index, sponsorTimes, openNotice) {
//send out the message saying that a sponsor message was skipped
if (!SB.config.dontShowNotice) {
let skipNotice = new SkipNotice(this, currentUUID, SB.config.disableAutoSkip);
//auto-upvote this sponsor
if (SB.config.trackViewCount && !SB.config.disableAutoSkip) {
if (SB.config.trackViewCount && !SB.config.disableAutoSkip && SB.config.autoUpvote) {
vote(1, currentUUID, null);
}
}