diff --git a/src/main.ts b/src/main.ts index 81ee1fa..a19e5b7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -101,4 +101,7 @@ router.serve('https://www.bilibili.com/blackroom/ban/', () => hookBBComment({ bl */ router.serve('https://manga.bilibili.com/detail/', observeAndInjectComments) -router.match(location.href) +const { origin, pathname } = new URL(location.href) +const urlWithoutQueryOrHash = `${origin}${pathname}` + +router.match(urlWithoutQueryOrHash)