Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
302 commits
Select commit Hold shift + click to select a range
8dd230e
Bump Version 0.5.8
hanydd Dec 20, 2024
8a14d22
upgrade packages
hanydd Dec 24, 2024
7a6259c
Update README
hanydd Dec 24, 2024
5e42ee4
Add refresh button as a react component
hanydd Dec 25, 2024
600c159
Use imperative handle to expose update segments
hanydd Dec 25, 2024
5d5e148
Optimize danmaku matching for segment's skipping
xiaoxuan010 Dec 25, 2024
7d0f611
Merge pull request #111 from xiaoxuan010/optimize-danmaku-matching
hanydd Dec 25, 2024
9bde07e
Merge pull request #99 from hanydd/feature-advance-notice
hanydd Dec 25, 2024
7967ec8
reformat
hanydd Dec 25, 2024
07c9d84
Add style to the port video section in popup
hanydd Dec 25, 2024
0bc4d18
Bump Version 0.6.0
hanydd Dec 25, 2024
c2c0541
Update README
hanydd Dec 26, 2024
7504808
Optimize danmaku matching for segment's skipping
xiaoxuan010 Dec 26, 2024
1c70c89
Format HTML Source Files
xiaoxuan010 Dec 26, 2024
9a91b0d
Add danmakus utils test
xiaoxuan010 Dec 27, 2024
5ea3b4a
Merge pull request #113 from xiaoxuan010/optimize-danmaku-matching
hanydd Dec 27, 2024
5acc18a
修改電腦詞彙
NeKoOuO Dec 27, 2024
63104d9
Merge pull request #114 from NeKoOuO/patch-1
hanydd Dec 28, 2024
c13b7f4
add i18n
hanydd Dec 28, 2024
ccb1d49
Bump Version 0.6.1
hanydd Dec 28, 2024
e5556a8
fix port video section on non video page
hanydd Dec 28, 2024
65d4056
update thumbnail full video label render
hanydd Dec 28, 2024
54be660
format
hanydd Dec 28, 2024
180da24
Redo change render order
hanydd Dec 28, 2024
044932c
Bump Version 0.6.2
hanydd Dec 30, 2024
23af0a5
Feat: Dynamic Sponsor Block
etherfun Jan 2, 2025
8c6d390
fix thumbnail rendering
hanydd Jan 2, 2025
0874c3b
feat(Components): optimize player button tooltips
xiaoxuan010 Jan 4, 2025
56b1d5d
fix(Utils): fix VideoID URL parsing error
xiaoxuan010 Dec 31, 2024
cab71c0
Merge pull request #120 from xiaoxuan010/master
hanydd Jan 5, 2025
3f2fa8f
fix history popup
hanydd Jan 5, 2025
8adae02
add history page
hanydd Jan 5, 2025
de204bb
add fav popup thumbnail selector
hanydd Jan 5, 2025
19ee7c7
fix(WebInception): refine condition checks and error handling
xiaoxuan010 Jan 7, 2025
2abd89e
Add type for different selectors
hanydd Jan 13, 2025
e6e3119
custom label anchor
hanydd Jan 13, 2025
8efcadd
Remove log
hanydd Jan 13, 2025
11caae8
feat(Components): add keybind notice in tooltip
xiaoxuan010 Jan 14, 2025
beeb268
feat(Components): add keybind notice for buttons
xiaoxuan010 Jan 14, 2025
bab2fbd
video label on history pages
hanydd Jan 15, 2025
77c548e
add label to play list
hanydd Jan 15, 2025
cd4905e
handle multiple thumbnail label insertion
hanydd Jan 15, 2025
6f41f88
Fix duplicated labels
hanydd Jan 15, 2025
9f2523c
check thumbnails after video id change
hanydd Jan 15, 2025
d002d95
cache segment requests
hanydd Jan 16, 2025
e6ccfe6
Add wait for pageload
hanydd Jan 16, 2025
82db09b
Merge pull request #119 from etherfun/DynamicSponsorBlock
hanydd Jan 16, 2025
10c2a96
Merge pull request #121 from xiaoxuan010/minor-improvements
hanydd Jan 16, 2025
9db4114
change label to class
hanydd Jan 16, 2025
a041514
fix when there are no segments
hanydd Jan 16, 2025
936fd15
only request data when clicking the thumbnail
hanydd Jan 17, 2025
5640df6
Bump Version 0.7.0
hanydd Jan 17, 2025
b5730e4
hide portvideo segment in popup when optioned out
hanydd Jan 20, 2025
36f247e
feat(Utils): local convert between bvid and avid
xiaoxuan010 Jan 22, 2025
fe42434
Merge pull request #124 from xiaoxuan010/feat-local-abv-convert
hanydd Jan 22, 2025
2705540
remove verbose logs
hanydd Jan 25, 2025
8a50c42
Merge SB v5.11.5
ajayyy Sep 12, 2024
deefbb8
Update zh-TW
NeKoOuO Jan 25, 2025
84d122f
Merge pull request #125 from NeKoOuO/patch-1
hanydd Jan 26, 2025
329fea9
try to fix skip button inserted before time
hanydd Jan 26, 2025
0e6455a
Bump Version 0.7.1
hanydd Jan 26, 2025
0328d5d
try to solve memory leak on live page
hanydd Jan 27, 2025
1c25ccd
Bump Version 0.7.2
hanydd Jan 27, 2025
e431d8b
setting segment is before node rendering
hanydd Feb 4, 2025
0767efa
feat: 阻止全屏时使用`Enter`跳过赞助片段时播放器默认聚焦到弹幕输入框的行为
icinggslits Feb 11, 2025
b9b8c1b
Bump Version 0.7.3
hanydd Feb 14, 2025
1b37be9
Merge pull request #130 from icinggslits/feature/block_focus_in_full_…
hanydd Feb 25, 2025
0648032
upgrade dependency
hanydd Mar 18, 2025
4a02022
Bump Version 0.7.4
hanydd Mar 18, 2025
daf8427
new video id format
hanydd Mar 18, 2025
c3765aa
fix circular dependency
hanydd Mar 18, 2025
42317ef
port video api
hanydd Mar 18, 2025
79d12ce
segment api and port video api
hanydd Mar 18, 2025
ebedc15
fix category pill segment not getting reset
hanydd Mar 18, 2025
c32ef3b
fix lint
hanydd Mar 18, 2025
4462dfb
Change messages.json description
etherfun Mar 19, 2025
8e421b6
Update dynamic sponsor regex pattern
etherfun Mar 19, 2025
18f7c45
Feat: Add debug mode for dynamic sponsor blocker and bug fix
etherfun Mar 20, 2025
a599280
support bilibili Gate
etherfun Mar 22, 2025
dbb4e3f
support bewlybewly
etherfun Mar 22, 2025
7353254
feat: 修复一处文字表达
uarix Mar 23, 2025
4d40350
Merge pull request #138 from uarix/master
hanydd Mar 24, 2025
72a1cf0
Merge pull request #135 from etherfun/Dynamic-Sponsor-Block
hanydd Mar 24, 2025
7053792
Merge pull request #137 from etherfun/support
hanydd Mar 26, 2025
3347fb4
Merge remote-tracking branch 'origin/master' into dev-cid
hanydd Mar 26, 2025
4fe7b7e
cache persistence
hanydd Mar 26, 2025
f7ef910
get cid from window list
hanydd Mar 27, 2025
ff83782
fix typo
hanydd Mar 27, 2025
01d171c
less verbose
hanydd Mar 27, 2025
5e45d1c
fix list page
hanydd Mar 27, 2025
ded73e4
cache debounce
hanydd Mar 27, 2025
a9908f8
more robust
hanydd Mar 27, 2025
33f44f4
fix typo
hanydd Mar 29, 2025
a91fda1
fix video id might be null
hanydd Mar 29, 2025
a989db2
Merge pull request #63 from hanydd/dev-cid
hanydd Mar 29, 2025
29d51c4
Bump Version 0.8.0
hanydd Mar 29, 2025
14ea221
reformat
hanydd Mar 30, 2025
7438ed7
detect cid change on a single page video
hanydd Mar 30, 2025
ef412b0
fix(test): fix test case for bvid2avid
xiaoxuan010 Jan 23, 2025
df993c4
feat(Tooltip): add fade out and mouse enter event
xiaoxuan010 Mar 30, 2025
ecef1b4
feat(CategoryPill): add vote request in Tooltip
xiaoxuan010 Mar 31, 2025
18ce93a
Update zh-TW
david082321 Apr 1, 2025
8e3ea88
Merge pull request #142 from david082321/patch-4
hanydd Apr 2, 2025
20d09aa
Merge branch 'master' into dev
hanydd Apr 2, 2025
d47b0c1
fix(Tooltip): optimize PersistedTooltip methods
xiaoxuan010 Apr 2, 2025
bc89e9e
Merge pull request #141 from xiaoxuan010/dev
hanydd Apr 9, 2025
e19cfc7
move server temporarily
hanydd May 1, 2025
d7c078f
Bump Version 0.8.1
hanydd May 1, 2025
9d7ee78
Feat: comment sponsor block
etherfun May 3, 2025
bed3691
Merge branch 'master' into CommentSponsorBlock
etherfun May 3, 2025
de6c007
fix : shadowRootStyle function name
etherfun May 4, 2025
5c1e659
update readme
hanydd May 8, 2025
8cacf67
Merge pull request #154 from etherfun/CommentSponsorBlock
hanydd May 11, 2025
59c91b2
Fix: regex parameters not being passed
etherfun May 12, 2025
0e058fc
feat: enhance match text display
etherfun May 12, 2025
3cebe38
move back server endpoint
hanydd May 16, 2025
ecada53
Bump Version 0.8.2
hanydd May 16, 2025
d69be14
Fix: typo and enhance regex pattern for sponsor block
etherfun May 16, 2025
fdff364
Fix: comment sponsor block condition
etherfun May 16, 2025
25e3c56
Fix: use SVG
etherfun May 17, 2025
76738e1
Fix: DynamicSponsorOption setting is invalid
etherfun May 17, 2025
0d7c04d
lint
hanydd May 17, 2025
9f941a6
fix port video cannot get UUID
hanydd May 17, 2025
ff67b61
fix update port segments
hanydd May 18, 2025
6e4e45e
Merge branch 'master' into regex
hanydd May 22, 2025
669a865
Merge pull request #161 from etherfun/regex
hanydd May 22, 2025
9683d84
Bump Version 0.8.3
hanydd May 22, 2025
33a7983
Fix: page change the CommentListener not loaded
etherfun May 23, 2025
ff734f2
Merge pull request #165 from etherfun/commentlistener
hanydd May 23, 2025
19ed70e
Bump Version 0.8.4
hanydd May 30, 2025
f3b4fcc
Feat: if unskip switch to manual skip
etherfun Jun 1, 2025
7a0157c
upgrade dependency
hanydd Jun 3, 2025
6844254
disable on live page
hanydd Jun 3, 2025
47a7f56
Feat: All comment check
etherfun Jun 4, 2025
7a2ef79
Merge pull request #170 from etherfun/SponsorComment
hanydd Jun 15, 2025
84adf04
Merge pull request #171 from etherfun/upcoming
hanydd Jun 15, 2025
5d8972c
Bump Version 0.8.5
hanydd Jun 18, 2025
cdd585e
Feat: Comment Sponsor Reply Block And Add CommentListener Condition
etherfun Jun 26, 2025
ac8c607
Merge pull request #176 from etherfun/SponsorCommentBlock
hanydd Jul 12, 2025
6ebd4ae
upgrade dependencies
hanydd Jul 19, 2025
d467d15
exclude live pages
hanydd Jul 19, 2025
ead45d0
Bump Version 0.9.0
hanydd Jul 19, 2025
65c7000
update wiki links
hanydd Jul 21, 2025
1c883a0
add wiki links in popup
hanydd Jul 21, 2025
40f28dd
update help page
hanydd Jul 21, 2025
e484b80
Bump Version 0.9.1
hanydd Jul 25, 2025
c3cf176
feat(setting): add confirmation dialog for selector
etherfun Jul 27, 2025
bd68008
feat(ui): Hide full video sponsor label on pages
etherfun Jul 27, 2025
55931aa
reword
hanydd Jul 28, 2025
5fcf0d6
update wording
hanydd Jul 28, 2025
8806ac8
Bump Version 0.9.2
hanydd Jul 28, 2025
5e02239
chore(i18n): sync word name
etherfun Jul 28, 2025
ac9cd00
remove link
hanydd Jul 28, 2025
4c36cc1
update readme
hanydd Jul 28, 2025
d35ec48
fix: correct duplicate HideFullVideoLabels.BlurRevealOnHover and lint…
etherfun Jul 28, 2025
715a50f
update wording
hanydd Jul 28, 2025
086cade
update traditional cn locale
hanydd Jul 31, 2025
aab53ae
Merge pull request #186 from etherfun/HideFullVideo
hanydd Aug 2, 2025
ea87fe9
update wording
hanydd Aug 5, 2025
73f1084
format
hanydd Aug 5, 2025
6d1be84
reorder options
hanydd Aug 5, 2025
8b145a7
Bump Version 0.9.3
hanydd Aug 5, 2025
4bf5649
format
hanydd Aug 5, 2025
d746b4f
update readme
hanydd Aug 5, 2025
1919226
update readme
hanydd Aug 5, 2025
ea45748
do not request data from bilibili
hanydd Aug 6, 2025
c698183
fix readme
hanydd Aug 6, 2025
0aefc86
Bump Version 0.9.4
hanydd Aug 6, 2025
3a5c2e3
update wording
hanydd Aug 7, 2025
affaf6f
disclaimer
hanydd Aug 7, 2025
4ddf801
Bump Version 0.9.5
hanydd Aug 7, 2025
93e403f
unsupported char
hanydd Aug 8, 2025
ca2e35b
update readme
hanydd Aug 8, 2025
05f2a45
cache
hanydd Aug 8, 2025
592146c
exclude live pages from all content scripts
WorldlineChanger Aug 11, 2025
113c5c1
cleanup and reorder
hanydd Aug 11, 2025
94c854b
Merge pull request #197 from WorldlineChanger/master
hanydd Aug 11, 2025
97c13a6
four char hash prefix
hanydd Aug 16, 2025
36611f7
upgrade dependency
hanydd Aug 16, 2025
50fefe7
upgrade dependency
hanydd Aug 16, 2025
231fe4a
four char hash prefix
hanydd Aug 16, 2025
8f6910d
segment cache
hanydd Aug 17, 2025
b5a43d8
common request function
hanydd Aug 17, 2025
b4eb9d7
separate request functions
hanydd Aug 17, 2025
4d23a07
handle response
hanydd Aug 17, 2025
a2d44ba
Bump Version 0.9.6
hanydd Aug 19, 2025
bbd72d8
reduce cache size
hanydd Aug 23, 2025
b738b56
better segment cache
hanydd Aug 23, 2025
d491be4
size based cache
hanydd Aug 23, 2025
95d7c38
Bump Version 0.9.7
hanydd Aug 23, 2025
4845427
persist queue
hanydd Aug 24, 2025
948528e
load queue
hanydd Aug 24, 2025
168ea75
remove unused permission
hanydd Aug 25, 2025
995d8dc
Bump Version 0.9.8
hanydd Aug 25, 2025
5abba72
reduce gc and persist frequency
hanydd Aug 31, 2025
efc4233
remove document cache storage
hanydd Aug 31, 2025
cc8fcdb
Bump Verson 0.9.9
hanydd Sep 6, 2025
5b57783
fix typo
hanydd Sep 6, 2025
20b3550
add options to view cache stats
hanydd Sep 7, 2025
173938d
fix typo
hanydd Sep 7, 2025
221096c
config cache toggle
hanydd Sep 7, 2025
c923dda
move cache config on page
hanydd Sep 7, 2025
9331a8f
cache stats
hanydd Sep 9, 2025
9c26d20
Bump Version 0.10.0
hanydd Sep 9, 2025
c7c9e72
invalidate key on read
hanydd Sep 11, 2025
15a34f0
better cache size calculation
hanydd Sep 12, 2025
b16bc0d
calculate entry size
hanydd Sep 12, 2025
f91994e
use max age
hanydd Sep 13, 2025
e4b3e2c
count as hit
hanydd Sep 13, 2025
c5f9d4b
Fix: Incorrect element selection for “mainPageRecommendation”
etherfun Oct 23, 2025
b9ef88c
Fix: Blur mask not intercepting mouse events
etherfun Oct 23, 2025
56be726
cache control
hanydd Oct 27, 2025
e3f8993
Merge pull request #212 from etherfun/Mask-fix
hanydd Oct 29, 2025
fcb03a0
Bump Version 0.10.2
hanydd Oct 29, 2025
ffdf554
add padding category
hanydd Nov 2, 2025
4c776ba
Bump Version 0.11.0
hanydd Nov 2, 2025
1d1dc2f
whitelist manage component
hanydd Nov 2, 2025
b6a81a2
always show whitelist table
hanydd Nov 2, 2025
1edc4b6
UI change
hanydd Nov 2, 2025
511a3c8
Bump Version 0.11.1
hanydd Nov 5, 2025
1b310fd
Remove unnecessary headers
hanydd Nov 8, 2025
eea2991
Optimization: Improved dynamic sponsor regular expressions and added …
etherfun Nov 8, 2025
19cd7f1
Bump Version 0.11.2
hanydd Nov 8, 2025
51fe4f4
Merge pull request #218 from etherfun/regex
hanydd Nov 9, 2025
5c9217c
Fix: Update text selectors for opus type dynamics
etherfun Nov 27, 2025
9c71c52
optimization: Code optimization
etherfun Nov 27, 2025
717f716
feat: Add keyword count blocking threshold
etherfun Nov 27, 2025
3377e78
Bump Version 0.11.3
hanydd Nov 28, 2025
6740e75
feat: 统一设置界面表格中下拉菜单宽度
kt286 Dec 31, 2025
561636d
update depencencies
hanydd Feb 20, 2026
4e476ed
fx width
hanydd Feb 20, 2026
246ad61
feat(skip): 添加快进到片段中间时仍跳过的开关
AHackerX Feb 7, 2026
20adf90
refactor(content): 逐帧跳转改用同步获取帧率
AHackerX Feb 8, 2026
10dbccf
feat: add macOS Safari extension build pipeline
jackeyzzz12138 Feb 19, 2026
4705580
Feat: Support festival page
etherfun Feb 20, 2026
01cf2b4
Feat: Add festival page pagetype
etherfun Feb 20, 2026
301b156
add safari cicd
hanydd Feb 20, 2026
a19fb2d
format
hanydd Feb 20, 2026
b5939b4
Bump Version 0.11.4
hanydd Feb 20, 2026
7439ab6
fix(deps): resolve 4 high severity minimatch ReDoS vulnerabilities
Mar 3, 2026
219adce
Fix(VideoID): Add av regex
etherfun Feb 22, 2026
e87e0a6
Fest(page): Support bangumi page
etherfun Feb 22, 2026
f1e279c
Optimize: Improve festival page detection
etherfun Feb 24, 2026
99dfd02
Feat(VideoID): get video id from player manifest
etherfun Feb 24, 2026
463532f
Fix(popup&previewbar): festival and bangumi page init error
etherfun Feb 26, 2026
05cc04c
upgrade dependency & bump node version to 20
hanydd Mar 4, 2026
371e2b1
Bump Version 0.11.5
hanydd Mar 4, 2026
06a7b66
optimize vote button style on category pills
hanydd Mar 16, 2026
a3167b2
Add AGENTS.md with Cursor Cloud specific instructions for dev environ…
cursoragent Mar 16, 2026
1a97bfe
more robust page load detection method
hanydd Mar 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Feat: Support festival page
  • Loading branch information
etherfun authored and hanydd committed Feb 20, 2026
commit 4705580b4549757e5218a08da8c8b7f03150e921
6 changes: 4 additions & 2 deletions src/document/cidListMap.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { BilibiliPagelistDetail } from "../requests/type/BilibiliRequestType";
import { BilibiliPagelistDetail, BilibiliPagelistDetailForEvent } from "../requests/type/BilibiliRequestType";
import { BVID, CID } from "../types";
import { DataCache } from "../utils/cache";

const cache = new DataCache<BVID, Map<number, CID>>("cid_map", () => new Map());

export function saveCidMap(bvid: BVID, pageList: BilibiliPagelistDetail[]): void {
export function saveCidMap(bvid: BVID, pageList: BilibiliPagelistDetail[] | BilibiliPagelistDetailForEvent[] ): void {
if (!bvid || !pageList || !Array.isArray(pageList)) {
console.error("[BSB] Invalid data for saveCidMap", { bvid, pageList });
return;
Expand All @@ -30,6 +30,8 @@ export function getCidMap(bvid: BVID): Map<number, CID> {
// Try to get CID from window state if available
if (window?.__INITIAL_STATE__?.videoData?.pages && window?.__INITIAL_STATE__?.bvid === bvid) {
saveCidMap(bvid, window.__INITIAL_STATE__.videoData.pages);
} else if (window?.__INITIAL_STATE__?.videoInfo?.pages && window?.__INITIAL_STATE__?.toBvid === bvid) {
saveCidMap(bvid, window.__INITIAL_STATE__.videoInfo.pages);
}

const result = cache.getFromCache(bvid);
Expand Down
4 changes: 3 additions & 1 deletion src/globals.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import SBObject from "./config";
import { BilibiliResponse, BiliPlayInfo, BiliVideoDetail } from "./requests/type/BilibiliRequestType";
import { BilibiliResponse, BiliPlayInfo, BiliVideoDetail, BiliVideoDetailForEvent } from "./requests/type/BilibiliRequestType";
import { AID, BVID, CID } from "./types";
declare global {
interface Window {
SB: typeof SBObject;
__INITIAL_STATE__?: {
bvid: BVID;
toBvid: BVID;
aid: AID;
cid: CID;
upData: { mid: string };
videoData: BiliVideoDetail;
videoInfo: BiliVideoDetailForEvent
};
__playinfo__?: BilibiliResponse<BiliPlayInfo>;
}
Expand Down
37 changes: 37 additions & 0 deletions src/requests/type/BilibiliRequestType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,27 @@ export interface BiliVideoDetail {
duration: number;
}


export interface BiliVideoDetailForEvent {
bvid: BVID;
aid: AID;
cid: CID;
copyright: number;
desc: string;
danmakuCount: number;
enableVt: boolean;
his_rank: number;
noReprint: number;
pages: BilibiliPagelistDetailForEvent[];
pubdate:number;
title:string;
upMid: number;
upName: string;
viewCount: number;
vt: number;
vtDisplay: string;
}

export interface BilibiliPagelistDetail {
cid: CID;
page: number;
Expand All @@ -49,6 +70,22 @@ export interface BilibiliPagelistDetail {
first_frame: string | null;
}


export interface BilibiliPagelistDetailForEvent {
cid: CID;
dimension: {
height: number;
rotate: number;
width: number;
}
duration: number;
from: string;
page: number
part: string;
vid: string;
weblink: string;
}

export interface BiliPlayInfo {
quality: number;
dash: {
Expand Down
13 changes: 6 additions & 7 deletions src/utils/parseVideoID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
export async function getBilibiliVideoID(url?: string): Promise<NewVideoID | null> {
url ||= document?.URL;

if (url.includes("bilibili.com/video") || url.includes("bilibili.com/list/")) {
if (/www\.bilibili\.com.*BV[a-zA-Z0-9]{10}/.test(url)) {
const id = (await getVideoIDFromWindow()) ?? (await getVideoIDFromURL(url));
return id;
}
Expand Down Expand Up @@ -68,12 +68,11 @@ export async function getBvIDFromURL(url: string): Promise<BVID | null> {
// av id
return await getBvidFromAidFromWindow(idMatch[3]);
}
} else if (urlObject.host == "www.bilibili.com" && urlObject.pathname.startsWith("/list/")) {
return null;
} else {
const id = urlObject.searchParams.get("bvid");
return id as BVID;
return id as BVID ?? null;
}

return null;
}

export async function getVideoIDFromURL(url: string): Promise<NewVideoID | null> {
Expand Down Expand Up @@ -114,8 +113,8 @@ export async function getVideoIDFromURL(url: string): Promise<NewVideoID | null>
}
}
}
// List video page
else if (urlObject.pathname.startsWith("/list/")) {
// List & event video page
else {
bvid = urlObject.searchParams.get("bvid") as BVID;
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export function detectPageType(): PageType {

const urlObject = new URL(document.URL);
if (urlObject.hostname === "www.bilibili.com") {
if (urlObject.pathname.startsWith("/video/")) {
if (urlObject.pathname.startsWith("/video/") || /BV[a-zA-Z0-9]{10}/.test(urlObject.searchParams.get("bvid"))) {
pageType = PageType.Video;
} else if (urlObject.pathname.startsWith("/list/")) {
pageType = PageType.List;
Expand Down