Skip to content

Commit

Permalink
feat: homepage hide no interest
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Apr 12, 2024
1 parent 69e8d28 commit 27b12dd
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 3.4.4

- 新增:首页视频列表隐藏负反馈菜单(三个点),恢复标题宽度

## 3.4.3

- 修复:空间页css
Expand Down
1 change: 0 additions & 1 deletion src/rules/bangumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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覆盖失败) */
Expand Down
1 change: 0 additions & 1 deletion src/rules/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
1 change: 0 additions & 1 deletion src/rules/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const dynamicUnfold = () => {
setInterval(unfold, 500)
}

// GroupList
const dynamicGroupList: Group[] = []

/**
Expand Down
8 changes: 7 additions & 1 deletion src/rules/homepage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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',
Expand Down
1 change: 0 additions & 1 deletion src/rules/live.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const cleanLiveDanmaku = () => {
setInterval(clean, 500)
}

// GroupList
const liveGroupList: Group[] = []

// 直播页面规则, 只适用于直播间内, 不适用于直播首页
Expand Down
1 change: 0 additions & 1 deletion src/rules/popular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
1 change: 0 additions & 1 deletion src/rules/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
1 change: 0 additions & 1 deletion src/rules/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ const coinDisableAutoLike = () => {
}
}

// GroupList
const videoGroupList: Group[] = []

// 普通播放页,稍后再看播放页,收藏夹播放页
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.4.3',
version: '3.4.4',
description:
'净化 B站/哔哩哔哩 网页元素,去广告,BV号转AV号,播放器净化,过滤视频,过滤评论,提供300+项功能,定制自己的B站页面',
author: 'festoney8',
Expand Down

0 comments on commit 27b12dd

Please sign in to comment.