File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,9 +63,11 @@ function isSupportedPage(): boolean {
6363 const currentUrl = window . location . href
6464 return (
6565 // 视频页面
66- / h t t p s ? : \/ \/ (?: w w w \. ) ? b i l i b i l i \. c o m \/ v i d e o \/ .* / . test ( currentUrl )
66+ / h t t p s ? : \/ \/ (?: w w w \. | m \. ) ? b i l i b i l i \. c o m \/ v i d e o \/ .* / . test ( currentUrl )
67+ // 视频分享页短链路径
68+ || / h t t p s ? : \/ \/ (?: w w w \. | m \. ) ? b i l i b i l i \. c o m \/ s \/ v i d e o \/ .* / . test ( currentUrl )
6769 // 番剧页面
68- || / h t t p s ? : \/ \/ (?: w w w \. ) ? b i l i b i l i \. c o m \/ b a n g u m i \/ p l a y \/ .* / . test ( currentUrl )
70+ || / h t t p s ? : \/ \/ (?: w w w \. | m \. ) ? b i l i b i l i \. c o m \/ b a n g u m i \/ p l a y \/ .* / . test ( currentUrl )
6971 // 动态页面
7072 || / h t t p s ? : \/ \/ t \. b i l i b i l i \. c o m (? ! \/ v o t e | \/ s h a r e ) .* / . test ( currentUrl )
7173 // 动态详情页
@@ -77,11 +79,17 @@ function isSupportedPage(): boolean {
7779 // 话题页面
7880 || / h t t p s ? : \/ \/ (?: w w w \. ) ? b i l i b i l i \. c o m \/ v \/ t o p i c \/ d e t a i l .* / . test ( currentUrl )
7981 // 课程页面
80- || / h t t p s ? : \/ \/ (?: w w w \. ) ? b i l i b i l i \. c o m \/ c h e e s e \/ p l a y \/ .* / . test ( currentUrl )
82+ || / h t t p s ? : \/ \/ (?: w w w \. | m \. ) ? b i l i b i l i \. c o m \/ c h e e s e \/ p l a y \/ .* / . test ( currentUrl )
83+ // 稍后再看列表页(两种路径)
84+ || / h t t p s ? : \/ \/ (?: w w w \. ) ? b i l i b i l i \. c o m \/ w a t c h l a t e r \/ (?: # \/ ) ? l i s t .* / . test ( currentUrl )
85+ || / h t t p s ? : \/ \/ (?: w w w \. ) ? b i l i b i l i \. c o m \/ l i s t \/ w a t c h l a t e r (?: \? .* | \/ .* ) ? $ / . test ( currentUrl )
86+ // 收藏夹与媒体列表
87+ || / h t t p s ? : \/ \/ (?: w w w \. ) ? b i l i b i l i \. c o m \/ l i s t \/ m l .* / . test ( currentUrl )
88+ || / h t t p s ? : \/ \/ (?: w w w \. ) ? b i l i b i l i \. c o m \/ m e d i a l i s t \/ (?: p l a y | d e t a i l ) \/ .* / . test ( currentUrl )
8189 // 活动页面
82- || / h t t p s ? : \/ \/ (?: w w w \. ) ? b i l i b i l i \. c o m \/ b l a c k b o a r d \/ .* / . test ( currentUrl )
90+ || / h t t p s ? : \/ \/ (?: w w w \. | m \. ) ? b i l i b i l i \. c o m \/ b l a c k b o a r d \/ .* / . test ( currentUrl )
8391 // 拜年祭页面
84- || / h t t p s ? : \/ \/ (?: w w w \. ) ? b i l i b i l i \. c o m \/ f e s t i v a l \/ .* / . test ( currentUrl )
92+ || / h t t p s ? : \/ \/ (?: w w w \. | m \. ) ? b i l i b i l i \. c o m \/ f e s t i v a l \/ .* / . test ( currentUrl )
8593 // 漫画页面
8694 || / h t t p s ? : \/ \/ m a n g a \. b i l i b i l i \. c o m \/ d e t a i l \/ .* / . test ( currentUrl )
8795 )
You can’t perform that action at this time.
0 commit comments