From 11bf235a238e1cf39ecc774cebf5a6b7cbd85424 Mon Sep 17 00:00:00 2001 From: xiaoxuan010 <2592053474@qq.com> Date: Sun, 17 Nov 2024 02:26:03 +0800 Subject: [PATCH] Fixed lack of thumbnail update in t.bilibili.com --- src/thumbnail-utils/thumbnail-selectors.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/thumbnail-utils/thumbnail-selectors.ts b/src/thumbnail-utils/thumbnail-selectors.ts index 993a2e5e..4443b4fa 100644 --- a/src/thumbnail-utils/thumbnail-selectors.ts +++ b/src/thumbnail-utils/thumbnail-selectors.ts @@ -57,7 +57,12 @@ const thumbnailSelectors: { [key: string]: ThumbnailSelector } = { thumbnailSelector: ".small-item", }, "dynamic": { - // 动态页面 + // 动态首页页面 + containerSelector: "section:has(.bili-dyn-list)", + thumbnailSelector: ".bili-dyn-content", + }, + "channelDynamic": { + // 用户空间动态 containerSelector: ".bili-dyn-list", thumbnailSelector: ".bili-dyn-content", }, @@ -76,7 +81,7 @@ const pageTypeSepecialSelector: { [key in PageType]: string[] } = { [PageType.List]: ["listPlayerSideRecommendation", "listPlayerListCard"], [PageType.Search]: ["search"], [PageType.Dynamic]: ["dynamic"], - [PageType.Channel]: ["spaceMain", "spaceUpload", "dynamic"], + [PageType.Channel]: ["spaceMain", "spaceUpload", "channelDynamic"], [PageType.Message]: [], [PageType.Manga]: [], [PageType.Anime]: [],