Skip to content

Commit

Permalink
feat: live page hide vote card
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jul 10, 2024
1 parent 1a97ce3 commit c7be621
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## 3.8.2

- 修复:直播页 弹幕列表高度bug
- 新增:直播页 隐藏互动投票

## 3.8.1

- 新增:播放页 禁用新版评论区灰度测试(临时功能)
Expand Down
11 changes: 9 additions & 2 deletions src/rules/live.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ if (isPageLiveRoom()) {
let cnt = 0
const id = setInterval(() => {
if (document.querySelector('.rendererRoot, #internationalHeader')) {
if (!location.href.includes('/blanc/')) {
if (!location.href.includes('/blanc/')) {
window.location.href = location.href.replace(
'live.bilibili.com/',
'live.bilibili.com/blanc/',
)
clearInterval(id)
}
}
}
cnt++
cnt > 50 && clearInterval(id)
}, 200)
Expand Down Expand Up @@ -528,6 +528,13 @@ if (isPageLiveRoom()) {
defaultStatus: true,
itemCSS: `.play-together-service-card-container {display: none !important;}`,
}),
// 隐藏 互动框 投票, 默认开启
new CheckboxItem({
itemID: 'live-page-vote-card',
description: '隐藏 互动框 投票',
defaultStatus: true,
itemCSS: `.vote-card {display: none !important;}`,
}),
// 隐藏 发送框 左侧功能按钮
new CheckboxItem({
itemID: 'live-page-control-panel-icon-row-left',
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
userscript: {
name: 'bilibili 页面净化大师',
namespace: 'http://tampermonkey.net/',
version: '3.8.1',
version: '3.8.2',
description:
'净化 B站/哔哩哔哩 页面,支持「精简功能、播放器净化、过滤视频、过滤评论、全站黑白名单」,提供 300+ 功能,定制自己的 B 站',
author: 'festoney8',
Expand Down

0 comments on commit c7be621

Please sign in to comment.