+2. Turn on `Developer mode` then press `Load Unpacked`
3. Load the decompressed extension folder in your browser
#### Chrome
@@ -58,7 +64,7 @@ Opening the `edge://extensions` page in the Edge or `chrome://extensions` page i
> Ensure you installed [extension.zip](https://github.com/hakadao/BewlyBewly/releases) and decompress this file.
1. Type in `chrome://extensions/` in the address bar and press Enter
-2. Turn on `Developer mode` then press `Load unpacked`
+2. Turn on `Developer mode` then press `Load Unpacked`
3. Load the decompressed extension folder in your browser
diff --git a/assets/rules.json b/assets/rules.json
index ca397ae6..9c30657d 100644
--- a/assets/rules.json
+++ b/assets/rules.json
@@ -20,7 +20,8 @@
"condition": {
"domainType": "thirdParty",
"urlFilter": "||api.bilibili.com",
- "resourceTypes": ["xmlhttprequest"]
+ "resourceTypes": ["xmlhttprequest"],
+ "requestMethods": ["post"]
}
},
{
@@ -44,7 +45,8 @@
"condition": {
"domainType": "thirdParty",
"urlFilter": "||passport.bilibili.com",
- "resourceTypes": ["xmlhttprequest"]
+ "resourceTypes": ["xmlhttprequest"],
+ "requestMethods": ["post"]
}
}
]
diff --git a/package.json b/package.json
index b8261c74..be4cccb2 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "bewly-bewly",
"displayName": "BewlyBewly",
- "version": "0.15.5",
+ "version": "0.16.1",
"private": true,
"packageManager": "pnpm@8.15.3",
"description": "Just make a few small changes to your Bilibili homepage.",
diff --git a/src/_locales/cmn-CN.yml b/src/_locales/cmn-CN.yml
index 67c91608..9da32ea0 100644
--- a/src/_locales/cmn-CN.yml
+++ b/src/_locales/cmn-CN.yml
@@ -1,5 +1,6 @@
common:
view_all: 查看更多
+ play_all: 播放全部
loading: 加载中...
undo: 还原
view: '{count}次'
@@ -24,6 +25,8 @@ common:
refresh: 刷新
reset: 重置
no_more_content: 没有更多内容了
+ confirm: 确定
+ cancel: 取消
settings:
title: 设置
@@ -248,7 +251,8 @@ dock:
light_mode: 亮色模式
settings: 设置
home:
- not_interested_in: 对哪方面不感兴趣?
+ not_interested: 不感兴趣
+ tell_us_why: 为什么这么做...
video_removed: 视频已移除
for_you: 个性推荐
following: 正在关注
@@ -297,7 +301,6 @@ favorites:
unfavorite: 取消收藏
watch_later:
title: 稍后再看
- play_all: 播放全部
clear_all: 清空稍后再看
clear_all_confirm: |-
要清空稍后再看吗?
diff --git a/src/_locales/cmn-TW.yml b/src/_locales/cmn-TW.yml
index 5461bb32..dbb94088 100644
--- a/src/_locales/cmn-TW.yml
+++ b/src/_locales/cmn-TW.yml
@@ -1,5 +1,6 @@
common:
view_all: 檢視所有
+ play_all: 全部播放
loading: 載入中...
undo: 復原
view: '{count}次'
@@ -24,6 +25,8 @@ common:
refresh: 重新整理
reset: 重置
no_more_content: 沒有更多內容了
+ confirm: 確定
+ cancel: 取消
settings:
title: 設定
@@ -251,7 +254,8 @@ dock:
light_mode: 淺色模式
settings: 設定
home:
- not_interested_in: 對哪方面不感興趣?
+ not_interested: 不感興趣
+ tell_us_why: 為什麼這樣做...
video_removed: 影片已移除
for_you: 爲你推薦
following: 正在跟隨
@@ -300,7 +304,6 @@ favorites:
unfavorite: 取消收藏
watch_later:
title: 稍後觀看
- play_all: 全部播放
clear_all: 清空稍後觀看
clear_all_confirm: |-
要清空稍後觀看的影片嗎?
diff --git a/src/_locales/en.yml b/src/_locales/en.yml
index 155ededd..803e58f0 100644
--- a/src/_locales/en.yml
+++ b/src/_locales/en.yml
@@ -1,5 +1,6 @@
common:
view_all: View ALL
+ play_all: Play ALL
loading: Loading...
undo: UNDO
view: no view | {count} view | {count} views
@@ -24,6 +25,8 @@ common:
refresh: Refresh
reset: Reset
no_more_content: No more content now, owari da
+ confirm: Confirm
+ cancel: Cancel
settings:
title: Settings
@@ -249,7 +252,8 @@ dock:
light_mode: Light Mode
settings: Settings
home:
- not_interested_in: Not interested in...
+ not_interested: Not interested
+ tell_us_why: Choose a reason why
video_removed: Video removed
for_you: For you
following: Following
@@ -296,7 +300,6 @@ favorites:
unfavorite: Unfavorite
watch_later:
title: Watch Later
- play_all: Play all
clear_all: Clear all watch later
clear_all_confirm: |-
Clear all watch later?
diff --git a/src/_locales/jyut.yml b/src/_locales/jyut.yml
index 5b1a4319..076ab197 100644
--- a/src/_locales/jyut.yml
+++ b/src/_locales/jyut.yml
@@ -1,7 +1,8 @@
common:
view_all: 睇晒佢哋
+ play_all: 播晒佢哋
loading: 撈緊...
- undo: 整返
+ undo: 整返返去
view: '{count}次'
viewWithoutNum: 次
danmaku: '{count} 彈幕'
@@ -24,6 +25,8 @@ common:
refresh: 重新整理
reset: 重置
no_more_content: 唔使睇喇,冇嘢喇
+ confirm: 確定
+ cancel: 取消
settings:
title: 設定
@@ -251,8 +254,9 @@ dock:
light_mode: 淺色模式
settings: 設定
home:
- not_interested_in: 對邊方面冇癮?
- video_removed: 經已鏟咗條片
+ not_interested: 唔鍾意
+ tell_us_why: 點解噉做...
+ video_removed: 已經鏟咗條片
for_you: 估你心水
following: Follow 緊
trending: 時下至 Hit
@@ -300,7 +304,6 @@ favorites:
unfavorite: 唔再愛喇
watch_later:
title: 陣間至睇
- play_all: 播晒佢哋
clear_all: 剷曬陣間至睇啲片
clear_all_confirm: |-
係咪要剷曬陣間至睇啲片呀?
diff --git a/src/background/messageListeners/video.ts b/src/background/messageListeners/video.ts
index dc319b29..d1a52416 100644
--- a/src/background/messageListeners/video.ts
+++ b/src/background/messageListeners/video.ts
@@ -33,16 +33,43 @@ const API_VIDEO: APIMAP = {
},
afterHandle: AHS.J_D,
},
+ // https://github.com/indefined/UserScripts/blob/master/bilibiliHome/bilibiliHome.API.md#%E6%8F%90%E4%BA%A4%E4%B8%8D%E5%96%9C%E6%AC%A2
dislikeVideo: {
- url: 'https://api.bilibili.com/x/feed/dislike',
+ url: 'https://app.bilibili.com/x/feed/dislike',
_fetch: {
- method: 'post',
+ method: 'get',
},
params: {
access_key: '',
- appkey: '27eb53fc9058f8c3',
- feedback_id: '',
+ goto: '',
+ id: 0,
+ idx: 0,
reason_id: 1,
+ device: '',
+ mobi_app: '',
+ build: 0,
+ appkey: '',
+ sign: '',
+ },
+ afterHandle: AHS.J_D,
+ },
+ // https://github.com/indefined/UserScripts/blob/master/bilibiliHome/bilibiliHome.API.md#%E6%92%A4%E9%94%80%E4%B8%8D%E5%96%9C%E6%AC%A2
+ undoDislikeVideo: {
+ url: 'https://app.bilibili.com/x/feed/dislike/cancel',
+ _fetch: {
+ method: 'get',
+ },
+ params: {
+ access_key: '',
+ goto: '',
+ id: 0,
+ idx: 0,
+ reason_id: 1,
+ device: '',
+ mobi_app: '',
+ build: 0,
+ sign: '',
+ appkey: '',
},
afterHandle: AHS.J_D,
},
diff --git a/src/background/msg.define.ts b/src/background/msg.define.ts
index e4a06817..d697cbd8 100644
--- a/src/background/msg.define.ts
+++ b/src/background/msg.define.ts
@@ -52,6 +52,7 @@ enum VIDEO {
GET_RECOMMEND_VIDEOS = 'getRecommendVideos',
GET_APP_RECOMMEND_VIDEOS = 'getAppRecommendVideos',
DISLIKE_VIDEO = 'dislikeVideo',
+ UNDO_DISLIKE_VIDEO = 'undoDislikeVideo',
GET_VIDEO_INFO = 'getVideoInfo',
GET_VIDEO_COMMENTS = 'getVideoComments',
GET_POPULAR_VIDEOS = 'getPopularVideos',
diff --git a/src/components/Button.vue b/src/components/Button.vue
index bc4f5ff4..337254fc 100644
--- a/src/components/Button.vue
+++ b/src/components/Button.vue
@@ -3,6 +3,7 @@ interface Props {
type?: | 'default'
| 'primary'
| 'secondary'
+ | 'tertiary'
| 'info'
| 'success'
| 'warning'
@@ -92,6 +93,12 @@ function handleClick(evt: MouseEvent) {
--b-button-text-color: var(--bew-text-1);
}
+ &--type-tertiary {
+ --b-button-color: transparent;
+ --b-button-color-hover: var(--bew-fill-2);
+ --b-button-text-color: var(--bew-text-1);
+ }
+
&--type-error {
--b-button-color: var(--bew-error-color);
--b-button-color-hover: var(--bew-error-color)
@@ -113,7 +120,7 @@ function handleClick(evt: MouseEvent) {
}
&--custom-color {
- --at-apply: hover:opacity-80;
+ --at-apply: hover:opacity-70;
}
&--strong {
diff --git a/src/components/Dialog.vue b/src/components/Dialog.vue
new file mode 100644
index 00000000..88bd6a2f
--- /dev/null
+++ b/src/components/Dialog.vue
@@ -0,0 +1,172 @@
+
+
+
+ + {{ title }} +
+
+
+ {{ $t('home.video_removed') }} +
+ +