From 0bcca242413dae9ca4891bb2e2ae16cefb5456a8 Mon Sep 17 00:00:00 2001 From: Josh Patra Date: Wed, 1 Apr 2026 15:20:22 -0400 Subject: [PATCH] fix: switch from url based video diffing to dom based --- inject.js | 79 ++++++++++++++++++++++++++++++++------------------- manifest.json | 3 +- 2 files changed, 50 insertions(+), 32 deletions(-) diff --git a/inject.js b/inject.js index 66c57cd..4dc435b 100644 --- a/inject.js +++ b/inject.js @@ -627,26 +627,7 @@ function sanitizeSpeed(speed, fallback) { } function getVideoSourceKey(video) { - if (!video) return "unknown_src"; - - var docLocation = - video.ownerDocument && - video.ownerDocument.location && - video.ownerDocument.location.href - ? video.ownerDocument.location - : location; - - var hostname = (docLocation && docLocation.hostname) || ""; - if ( - hostname.includes("youtube.com") || - hostname.includes("youtube-nocookie.com") - ) { - // YouTube frequently reuses the same