From f9461a2e79cd0be50937139eb9d0ad1a55e0578f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 15 Dec 2020 12:30:46 -0500 Subject: Migration general theme: fix query video tag --- youtube/static/js/sponsorblock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'youtube/static/js/sponsorblock.js') diff --git a/youtube/static/js/sponsorblock.js b/youtube/static/js/sponsorblock.js index dab4372..a2fd094 100644 --- a/youtube/static/js/sponsorblock.js +++ b/youtube/static/js/sponsorblock.js @@ -13,7 +13,7 @@ function load_sponsorblock(){ const info_elem = Q('#skip_n'); if (info_elem.innerText.length) return; // already fetched const hash = sha256(data.video_id).substr(0,4); - const video_obj = Q("video"); + const video_obj = QId("js-video-player"); let url = `/https://sponsor.ajay.app/api/skipSegments/${hash}`; fetch(url) .then(response => response.json()) @@ -37,4 +37,4 @@ function load_sponsorblock(){ } } }); -} \ No newline at end of file +} -- cgit v1.2.3