Skip to content

Commit e61bae7

Browse files
fix youtube ad inject
1 parent 5e4f800 commit e61bae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: injects/youtube.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ try {
1010
if(video.length > 0) {
1111
video.forEach(vid => {
1212
try {
13-
vid.currentTime = vid.duration;
13+
vid.currentTime = Math.max(vid.duration - 1, 0);
1414
console.log('[AnotherAdBlock]: Skipped an ad video!');
1515
}
1616
catch{}

0 commit comments

Comments
 (0)