From 27b12ddfd9f1913535a0ac3731918629fafe6928 Mon Sep 17 00:00:00 2001 From: festoney8 Date: Sat, 13 Apr 2024 00:28:18 +0800 Subject: [PATCH] feat: homepage hide no interest --- CHANGELOG.md | 4 ++++ src/rules/bangumi.ts | 1 - src/rules/channel.ts | 1 - src/rules/dynamic.ts | 1 - src/rules/homepage.ts | 8 +++++++- src/rules/live.ts | 1 - src/rules/popular.ts | 1 - src/rules/search.ts | 1 - src/rules/video.ts | 1 - vite.config.ts | 2 +- 10 files changed, 12 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9134cb7b..b30e3493 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 3.4.4 + +- 新增:首页视频列表隐藏负反馈菜单(三个点),恢复标题宽度 + ## 3.4.3 - 修复:空间页css diff --git a/src/rules/bangumi.ts b/src/rules/bangumi.ts index c5d25439..3b0e7334 100644 --- a/src/rules/bangumi.ts +++ b/src/rules/bangumi.ts @@ -4,7 +4,6 @@ import { CheckboxItem } from '../components/item' import { debugRules as debug, error } from '../utils/logger' import { isPageBangumi } from '../utils/page-type' -// GroupList const bangumiGroupList: Group[] = [] /** 覆盖版权视频页分享按钮功能 (疑似firefox在bangumi page覆盖失败) */ diff --git a/src/rules/channel.ts b/src/rules/channel.ts index 6b97b845..ecaf64db 100644 --- a/src/rules/channel.ts +++ b/src/rules/channel.ts @@ -2,7 +2,6 @@ import { Group } from '../components/group' import { CheckboxItem, NumberItem } from '../components/item' import { isPageChannel } from '../utils/page-type' -// GroupList const channelGroupList: Group[] = [] if (isPageChannel()) { diff --git a/src/rules/dynamic.ts b/src/rules/dynamic.ts index ae00c0f7..f1452e32 100644 --- a/src/rules/dynamic.ts +++ b/src/rules/dynamic.ts @@ -20,7 +20,6 @@ const dynamicUnfold = () => { setInterval(unfold, 500) } -// GroupList const dynamicGroupList: Group[] = [] /** diff --git a/src/rules/homepage.ts b/src/rules/homepage.ts index a2201dea..fa9b2fa6 100644 --- a/src/rules/homepage.ts +++ b/src/rules/homepage.ts @@ -3,7 +3,6 @@ import { Group } from '../components/group' import { CheckboxItem, NumberItem, RadioItem } from '../components/item' import { isPageHomepage } from '../utils/page-type' -// GroupList const homepageGroupList: Group[] = [] if (isPageHomepage()) { @@ -319,6 +318,13 @@ if (isPageHomepage()) { font-size: 14px !important; }`, }), + // 隐藏 视频负反馈 恢复标题宽度 + new CheckboxItem({ + itemID: 'homepage-hide-no-interest', + description: '隐藏 视频负反馈 恢复标题宽度', + itemCSS: `.bili-video-card.enable-no-interest, .bili-live-card.enable-no-interest {--title-padding-right: 0;} + .bili-video-card__info--no-interest, .bili-live-card__info--no-interest {display: none !important;}`, + }), // 隐藏 视频tag (已关注/1万点赞) new CheckboxItem({ itemID: 'homepage-hide-up-info-icon', diff --git a/src/rules/live.ts b/src/rules/live.ts index 73ba1079..340adbff 100644 --- a/src/rules/live.ts +++ b/src/rules/live.ts @@ -48,7 +48,6 @@ const cleanLiveDanmaku = () => { setInterval(clean, 500) } -// GroupList const liveGroupList: Group[] = [] // 直播页面规则, 只适用于直播间内, 不适用于直播首页 diff --git a/src/rules/popular.ts b/src/rules/popular.ts index b911e29f..096813cd 100644 --- a/src/rules/popular.ts +++ b/src/rules/popular.ts @@ -2,7 +2,6 @@ import { Group } from '../components/group' import { CheckboxItem, RadioItem } from '../components/item' import { isPagePopular } from '../utils/page-type' -// GroupList const popularGroupList: Group[] = [] if (isPagePopular()) { diff --git a/src/rules/search.ts b/src/rules/search.ts index 697ad8fc..03132562 100644 --- a/src/rules/search.ts +++ b/src/rules/search.ts @@ -2,7 +2,6 @@ import { Group } from '../components/group' import { CheckboxItem } from '../components/item' import { isPageSearch } from '../utils/page-type' -// GroupList const searchGroupList: Group[] = [] if (isPageSearch()) { diff --git a/src/rules/video.ts b/src/rules/video.ts index 2e0f6195..3aa735dc 100644 --- a/src/rules/video.ts +++ b/src/rules/video.ts @@ -214,7 +214,6 @@ const coinDisableAutoLike = () => { } } -// GroupList const videoGroupList: Group[] = [] // 普通播放页,稍后再看播放页,收藏夹播放页 diff --git a/vite.config.ts b/vite.config.ts index 514e47e3..b9f0e39e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ userscript: { name: 'bilibili 页面净化大师', namespace: 'http://tampermonkey.net/', - version: '3.4.3', + version: '3.4.4', description: '净化 B站/哔哩哔哩 网页元素,去广告,BV号转AV号,播放器净化,过滤视频,过滤评论,提供300+项功能,定制自己的B站页面', author: 'festoney8',