Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vaft/vaft-ublock-origin.js
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ twitch-videoad.js text/javascript
const recentReloads = streamInfo.ReloadTimestamps.filter(t => Date.now() - t < 300000).length;
const effectiveCooldown = recentReloads >= 3 ? ReloadCooldownSeconds * 3 : ReloadCooldownSeconds;
const tooSoonSinceLastReload = streamInfo.LastPlayerReload && (Date.now() - streamInfo.LastPlayerReload) < (effectiveCooldown * 1000);
const shouldReload = streamInfo.IsUsingModifiedM3U8 || (ReloadPlayerAfterAd && (hadStrippedSegments || !tooSoonSinceLastReload));
const shouldReload = streamInfo.IsUsingModifiedM3U8 || (ReloadPlayerAfterAd && hadStrippedSegments && !tooSoonSinceLastReload);
if (shouldReload) {
streamInfo.ReloadTimestamps.push(Date.now());
streamInfo.IsUsingModifiedM3U8 = false;
Expand Down
2 changes: 1 addition & 1 deletion vaft/vaft.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@
const recentReloads = streamInfo.ReloadTimestamps.filter(t => Date.now() - t < 300000).length;
const effectiveCooldown = recentReloads >= 3 ? ReloadCooldownSeconds * 3 : ReloadCooldownSeconds;
const tooSoonSinceLastReload = streamInfo.LastPlayerReload && (Date.now() - streamInfo.LastPlayerReload) < (effectiveCooldown * 1000);
const shouldReload = streamInfo.IsUsingModifiedM3U8 || (ReloadPlayerAfterAd && (hadStrippedSegments || !tooSoonSinceLastReload));
const shouldReload = streamInfo.IsUsingModifiedM3U8 || (ReloadPlayerAfterAd && hadStrippedSegments && !tooSoonSinceLastReload);
if (shouldReload) {
streamInfo.ReloadTimestamps.push(Date.now());
streamInfo.IsUsingModifiedM3U8 = false;
Expand Down
Loading