Skip to content

Commit

Permalink
add fav popup thumbnail selector
Browse files Browse the repository at this point in the history
  • Loading branch information
hanydd committed Jan 5, 2025
1 parent 8adae02 commit de204bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/thumbnail-utils/thumbnail-selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ const thumbnailSelectors: { [key: string]: ThumbnailSelector } = {
containerSelector: ".bili-header .right-entry .v-popover-wrap:nth-of-type(3)",
thumbnailSelector: "a[data-mod=top_right_bar_window_dynamic]",
},
"favPopup": {
// 收藏弹出框
containerSelector: ".bili-header .right-entry .v-popover-wrap:nth-of-type(4)",
thumbnailSelector: "a[data-mod=top_right_bar_window_default_collection]",
},
"historyPopup": {
// 历史视频弹出框
containerSelector: ".bili-header .right-entry .v-popover-wrap:nth-of-type(5) div.v-popover-content",
Expand Down Expand Up @@ -88,7 +93,7 @@ const thumbnailSelectors: { [key: string]: ThumbnailSelector } = {
},
};

const commonSelector = ["dynamicPopup", "historyPopup"];
const commonSelector = ["dynamicPopup", "favPopup", "historyPopup"];
const pageTypeSepecialSelector: { [key in PageType]: string[] } = {
[PageType.Main]: ["mainPageRecommendation"],
[PageType.History]: [],
Expand Down

0 comments on commit de204bb

Please sign in to comment.