From 05b02365fe7b07212c8cc01a158bab8d918ed7fc Mon Sep 17 00:00:00 2001 From: Hakadao Date: Tue, 23 Jan 2024 01:42:48 +0800 Subject: [PATCH] fix: exclude the unsupported page (#206) --- src/contentScripts/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contentScripts/index.ts b/src/contentScripts/index.ts index 70207ab8..9e596714 100644 --- a/src/contentScripts/index.ts +++ b/src/contentScripts/index.ts @@ -56,7 +56,7 @@ function isSupportedPages() { // notifications page || /https?:\/\/message.bilibili.com\.*/.test(currentUrl) // bilibili channel page b站分区页面 - || /https?:\/\/www.bilibili.com\/v\/.*/.test(currentUrl) + || /https?:\/\/www.bilibili.com\/v\/(?!popular).*/.test(currentUrl) // anime page & chinese anime page || /https?:\/\/www.bilibili.com\/(anime|guochuang).*/.test(currentUrl) // channel page e.g. tv shows, movie, variety shows, mooc page