diff options
author | Jesús <heckyel@hyperbola.info> | 2020-12-15 12:30:46 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-12-15 12:30:46 -0500 |
commit | f9461a2e79cd0be50937139eb9d0ad1a55e0578f (patch) | |
tree | 5b73b4e68349da83df4dd664728efe17ddbe048d /youtube/static/js/sponsorblock.js | |
parent | a6f21bbc6596a2e20e657dcecac0c64144c497d6 (diff) | |
download | yt-local-f9461a2e79cd0be50937139eb9d0ad1a55e0578f.tar.lz yt-local-f9461a2e79cd0be50937139eb9d0ad1a55e0578f.tar.xz yt-local-f9461a2e79cd0be50937139eb9d0ad1a55e0578f.zip |
Migration general theme: fix query video tag
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 +} |