diff --git a/src/popup.ts b/src/popup.ts index e1e5757f..50a0a942 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -70,7 +70,7 @@ class MessageHandler { let allowPopup = window === window.top; window.addEventListener("message", async (e): Promise => { if (e.source !== window.parent) return; - if (e.origin.endsWith('.youtube.com')) { + if (e.origin.endsWith('.bilibili.com')) { allowPopup = true; if (e.data && e.data?.type === "style") {