diff --git a/src/content.ts b/src/content.ts index ac2770c8..fc2e6078 100644 --- a/src/content.ts +++ b/src/content.ts @@ -259,7 +259,12 @@ function resetValues() { //reset sponsor data found check sponsorDataFound = false; - switchingVideos = true; + if (switchingVideos === null) { + // When first loading a video, it is not switching videos + switchingVideos = false; + } else { + switchingVideos = true; + } } async function videoIDChange(id) { @@ -588,7 +593,7 @@ function sponsorsLookup(id: string, channelIDPromise?) { UUIDs = smallUUIDs; } - if (!video.paused && !switchingVideos) { + if (!switchingVideos) { // See if there are any starting sponsors let startingSponsor: number = -1; for (const time of sponsorTimes) {