diff options
Diffstat (limited to 'youtube/static/js/sponsorblock.js')
-rw-r--r-- | youtube/static/js/sponsorblock.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 +} |