mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 05:27:03 +03:00
Inject document script using raw HTML to be fast enough to still be able to hijack listener when visiting YouTube channel page directly
This commit is contained in:
@@ -45,6 +45,7 @@ import { getHash, HashedValue } from "@ajayyy/maze-utils/lib/hash";
|
||||
import { generateUserID } from "@ajayyy/maze-utils/lib/setup";
|
||||
import { setThumbnailListener, updateAll } from "@ajayyy/maze-utils/lib/thumbnailManagement";
|
||||
import { labelThumbnails, setupThumbnailPageLoadListener } from "./utils/thumbnails";
|
||||
import * as documentScript from "../dist/js/document.js";
|
||||
|
||||
const utils = new Utils();
|
||||
|
||||
@@ -111,7 +112,8 @@ setupVideoModule({
|
||||
updatePreviewBar();
|
||||
updateVisibilityOfPlayerControlsButton();
|
||||
},
|
||||
resetValues
|
||||
resetValues,
|
||||
documentScript
|
||||
}, () => Config);
|
||||
setThumbnailListener(labelThumbnails);
|
||||
setupThumbnailPageLoadListener();
|
||||
|
||||
Reference in New Issue
Block a user