From bd51f5b621bbb114842ea49a9137198b8e3a0fc4 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 14 Dec 2020 22:26:27 -0500 Subject: [PATCH] Listen to custom videospeed event https://github.com/igrigorik/videospeed/pull/740 --- src/content.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content.ts b/src/content.ts index b2a02012..5124030d 100644 --- a/src/content.ts +++ b/src/content.ts @@ -589,6 +589,8 @@ async function sponsorsLookup(id: string) { } }); video.addEventListener('ratechange', () => startSponsorSchedule()); + // Used by videospeed extension (https://github.com/igrigorik/videospeed/pull/740) + video.addEventListener('videoSpeed_ratechange', () => startSponsorSchedule()); video.addEventListener('pause', () => { // Reset lastCheckVideoTime lastCheckVideoTime = -1;