diff options
author | Ajay <[email protected]> | 2023-04-27 15:18:17 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2023-04-27 15:18:17 -0400 |
commit | 7768447ab0c0e1a4c04a42d76dc155930de94ed2 (patch) | |
tree | a5b9d3f515dfaa481f5ef3cecb791a67951a0d6f /src/content.ts | |
parent | e31efbbf8195f48e29a97f06031f367e4082d131 (diff) | |
download | SponsorBlock-7768447ab0c0e1a4c04a42d76dc155930de94ed2.tar.gz SponsorBlock-7768447ab0c0e1a4c04a42d76dc155930de94ed2.zip |
Upgrade maze-utils, move video element refreshes to lib
Diffstat (limited to 'src/content.ts')
-rw-r--r-- | src/content.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/content.ts b/src/content.ts index b3ba9b33..2fc328ec 100644 --- a/src/content.ts +++ b/src/content.ts @@ -36,7 +36,7 @@ import { ChapterVote } from "./render/ChapterVote"; import { openWarningDialog } from "./utils/warnings"; import { waitFor } from "@ajayyy/maze-utils"; import { getFormattedTime } from "@ajayyy/maze-utils/lib/formating"; -import { setupVideoMutationListener, getChannelIDInfo, getVideo, refreshVideoAttachments, getIsAdPlaying, getIsLivePremiere, setIsAdPlaying, checkVideoIDChange, getVideoID, getYouTubeVideoID, setupVideoModule, checkIfNewVideoID, isOnInvidious, isOnMobileYouTube } from "@ajayyy/maze-utils/lib/video"; +import { getChannelIDInfo, getVideo, getIsAdPlaying, getIsLivePremiere, setIsAdPlaying, checkVideoIDChange, getVideoID, getYouTubeVideoID, setupVideoModule, checkIfNewVideoID, isOnInvidious, isOnMobileYouTube } from "@ajayyy/maze-utils/lib/video"; import { StorageChangesObject } from "@ajayyy/maze-utils/lib/config"; import { findValidElement } from "@ajayyy/maze-utils/lib/dom" import { getHash, HashedValue } from "@ajayyy/maze-utils/lib/hash"; @@ -993,7 +993,6 @@ function setupCategoryPill() { async function sponsorsLookup(keepOldSubmissions = true) { if (lookupWaiting) return; - if (!getVideo() || !isVisible(getVideo())) refreshVideoAttachments(); //there is still no video here if (!getVideo()) { lookupWaiting = true; @@ -1004,8 +1003,6 @@ async function sponsorsLookup(keepOldSubmissions = true) { return; } - setupVideoMutationListener(); - const categories: string[] = Config.config.categorySelections.map((category) => category.name); const extraRequestData: Record<string, unknown> = {}; |