diff --git a/vaft/vaft-ublock-origin.js b/vaft/vaft-ublock-origin.js index f927c53..3f7b76a 100644 --- a/vaft/vaft-ublock-origin.js +++ b/vaft/vaft-ublock-origin.js @@ -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; diff --git a/vaft/vaft.user.js b/vaft/vaft.user.js index 1066138..42e4150 100644 --- a/vaft/vaft.user.js +++ b/vaft/vaft.user.js @@ -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;