diff --git a/src/scripts/ytContent.tsx b/src/scripts/ytContent.tsx
index 20bd76f..3281698 100644
--- a/src/scripts/ytContent.tsx
+++ b/src/scripts/ytContent.tsx
@@ -112,11 +112,13 @@ function updateButton(ctx: UpdateContext | null): void {
if (!mountPoint) return
if (!ctx) return render(, mountPoint)
if (ctx.descriptor.type !== 'video') return;
- const time = videoElement?.currentTime ?? 0
const lbryPathname = ctx.lbryPathname
const targetPlatform = ctx.targetPlatform
+ let time: number = videoElement?.currentTime ?? 0
+ if (time < 3) time = 0
+ if (time >= (videoElement?.duration ?? 0) - 1) time = 0
- render(, mountPoint)
+ render(, mountPoint)
}
function redirectTo({ targetPlatform, lbryPathname }: UpdateContext): void {