Skip to content

Commit

Permalink
Merge pull request #66 from festoney8/dev
Browse files Browse the repository at this point in the history
merge dev to main, v3.4.6
  • Loading branch information
festoney8 authored Apr 20, 2024
2 parents 17ce83d + 11c1932 commit 7f52b77
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 119 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## 3.4.6

- 优化:优化评论区净化规则
- 优化:优化笔记图片查看
- 新增:隐藏播放器内评分总结弹窗
- 新增:隐藏动态页直播通知动态

## 3.4.5

- 新增:搜索页隐藏搜索结果顶部的游戏/热搜话题
Expand Down
82 changes: 40 additions & 42 deletions src/rules/bangumi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,29 +557,29 @@ if (isPageBangumi()) {
itemID: 'video-page-hide-reply-notice',
description: '隐藏 活动/notice',
defaultStatus: true,
itemCSS: `#comment-module .reply-header .reply-notice {display: none !important;}`,
itemCSS: `.reply-header .reply-notice {display: none !important;}`,
}),
// 隐藏 整个评论框
new CheckboxItem({
itemID: 'video-page-hide-main-reply-box',
description: '隐藏 整个评论框',
itemCSS: `#comment-module .main-reply-box {height: 0 !important; visibility: hidden !important;}
#comment-module .reply-list {margin-top: -20px !important;}`,
itemCSS: `.main-reply-box {height: 0 !important; visibility: hidden !important;}
.reply-list {margin-top: -20px !important;}`,
}),
// 隐藏 页面底部 吸附评论框, 默认开启
new CheckboxItem({
itemID: 'video-page-hide-fixed-reply-box',
description: '隐藏 页面底部 吸附评论框',
defaultStatus: true,
itemCSS: `#comment-module .fixed-reply-box {display: none !important;}`,
itemCSS: `.fixed-reply-box {display: none !important;}`,
}),
// 隐藏 评论编辑器内占位文字, 默认开启
new CheckboxItem({
itemID: 'video-page-hide-reply-box-textarea-placeholder',
description: '隐藏 评论编辑器内占位文字',
defaultStatus: true,
itemCSS: `#comment-module .main-reply-box .reply-box-textarea::placeholder {color: transparent !important;}
#comment-module .fixed-reply-box .reply-box-textarea::placeholder {color: transparent !important;}`,
itemCSS: `.main-reply-box .reply-box-textarea::placeholder {color: transparent !important;}
.fixed-reply-box .reply-box-textarea::placeholder {color: transparent !important;}`,
}),
// 隐藏 评论区用户卡片
new CheckboxItem({
Expand All @@ -591,68 +591,68 @@ if (isPageBangumi()) {
new CheckboxItem({
itemID: 'video-page-hide-reply-decorate',
description: '隐藏 评论内容右侧装饰',
itemCSS: `#comment-module .reply-decorate {display: none !important;}`,
itemCSS: `.reply-decorate {display: none !important;}`,
}),
// 隐藏 ID后粉丝牌
new CheckboxItem({
itemID: 'video-page-hide-fan-badge',
description: '隐藏 ID后粉丝牌',
itemCSS: `#comment-module .fan-badge {display: none !important;}`,
itemCSS: `.fan-badge {display: none !important;}`,
}),
// 隐藏 一级评论用户等级
new CheckboxItem({
itemID: 'video-page-hide-user-level',
description: '隐藏 一级评论用户等级',
itemCSS: `#comment-module .user-level {display: none !important;}`,
itemCSS: `.user-level {display: none !important;}`,
}),
// 隐藏 二级评论用户等级
new CheckboxItem({
itemID: 'video-page-hide-sub-user-level',
description: '隐藏 二级评论用户等级',
itemCSS: `#comment-module .sub-user-level {display: none !important;}`,
itemCSS: `.sub-user-level {display: none !important;}`,
}),
// 隐藏 用户头像外圈饰品
new CheckboxItem({
itemID: 'video-page-hide-bili-avatar-pendent-dom',
description: '隐藏 用户头像外圈饰品',
itemCSS: `#comment-module .root-reply-avatar .bili-avatar-pendent-dom {display: none !important;}
#comment-module .root-reply-avatar .bili-avatar {width: 48px !important; height:48px !important;}`,
itemCSS: `.root-reply-avatar .bili-avatar-pendent-dom {display: none !important;}
.root-reply-avatar .bili-avatar {width: 48px !important; height:48px !important;}`,
}),
// 隐藏 用户头像右下小icon
new CheckboxItem({
itemID: 'video-page-hide-bili-avatar-nft-icon',
description: '隐藏 用户头像右下小icon',
itemCSS: `#comment-module .bili-avatar-nft-icon {display: none !important;}
#comment-module .bili-avatar-icon {display: none !important;}`,
itemCSS: `.bili-avatar-nft-icon {display: none !important;}
.bili-avatar-icon {display: none !important;}`,
}),
// 隐藏 评论内容下tag(热评)
new CheckboxItem({
itemID: 'video-page-hide-reply-tag-list',
description: '隐藏 评论内容下tag(热评)',
itemCSS: `#comment-module .reply-tag-list {display: none !important;}`,
itemCSS: `.reply-tag-list {display: none !important;}`,
}),
// 隐藏 笔记评论前的小Logo, 默认开启
new CheckboxItem({
itemID: 'video-page-hide-note-prefix',
description: '隐藏 笔记评论前的小Logo',
defaultStatus: true,
itemCSS: `#comment-module .note-prefix {display: none !important;}`,
itemCSS: `.note-prefix {display: none !important;}`,
}),
// 隐藏 评论内容搜索关键词高亮, 默认开启
new CheckboxItem({
itemID: 'video-page-hide-jump-link-search-word',
description: '隐藏 评论内容搜索关键词高亮',
defaultStatus: true,
itemCSS: `#comment-module .reply-content .jump-link.search-word {color: inherit !important;}
#comment-module .reply-content .jump-link.search-word:hover {color: #008AC5 !important;}
#comment-module .reply-content .icon.search-word {display: none !important;}`,
itemCSS: `.reply-content .jump-link.search-word {color: inherit !important;}
.reply-content .jump-link.search-word:hover {color: #008AC5 !important;}
.reply-content .icon.search-word {display: none !important;}`,
}),
// 隐藏 二级评论中的@高亮
new CheckboxItem({
itemID: 'video-page-hide-reply-content-user-highlight',
description: '隐藏 二级评论中的@高亮',
itemCSS: `#comment-module .sub-reply-container .reply-content .jump-link.user {color: inherit !important;}
#comment-module .sub-reply-container .reply-content .jump-link.user:hover {color: #40C5F1 !important;}`,
itemCSS: `.sub-reply-container .reply-content .jump-link.user {color: inherit !important;}
.sub-reply-container .reply-content .jump-link.user:hover {color: #40C5F1 !important;}`,
}),
// 隐藏 召唤AI机器人的评论, 默认开启
new CheckboxItem({
Expand Down Expand Up @@ -748,43 +748,43 @@ if (isPageBangumi()) {
new CheckboxItem({
itemID: 'video-page-hide-zero-like-at-reply',
description: '隐藏 包含@的 无人点赞评论',
itemCSS: `#comment-module .reply-item:has(.root-reply .jump-link.user):not(:has(.sub-up-icon, .reply-info .reply-like span)) {display: none !important;}`,
itemCSS: `.reply-item:has(.root-reply .jump-link.user):not(:has(.delete-reply, .top-icon, .sub-up-icon, .reply-info .reply-like span)) {display: none !important;}`,
}),
// 隐藏 包含@的 全部评论
new CheckboxItem({
itemID: 'video-page-hide-at-reply-all',
description: '隐藏 包含@的 全部评论',
itemCSS: `#comment-module .reply-item:has(.root-reply .jump-link.user):not(:has(.sub-up-icon)) {display: none !important;}`,
itemCSS: `.reply-item:has(.root-reply .jump-link.user):not(:has(.delete-reply, .top-icon, .sub-up-icon)) {display: none !important;}`,
}),
// 隐藏 LV1 无人点赞评论
new CheckboxItem({
itemID: 'video-page-hide-zero-like-lv1-reply',
description: '隐藏 LV1 无人点赞评论',
itemCSS: `#comment-module .reply-item:has(.st1.lv1):not(:has(.sub-up-icon, .reply-info .reply-like span)) {display: none !important;}`,
itemCSS: `.reply-item:has(.user-level.level-1):not(:has(.delete-reply, .top-icon, .sub-up-icon, .reply-info .reply-like span)) {display: none !important;}`,
}),
// 隐藏 LV2 无人点赞评论
new CheckboxItem({
itemID: 'video-page-hide-zero-like-lv2-reply',
description: '隐藏 LV2 无人点赞评论',
itemCSS: `#comment-module .reply-item:has(.st1.lv2):not(:has(.sub-up-icon, .reply-info .reply-like span)) {display: none !important;}`,
itemCSS: `.reply-item:has(.user-level.level-2):not(:has(.delete-reply, .top-icon, .sub-up-icon, .reply-info .reply-like span)) {display: none !important;}`,
}),
// 隐藏 LV3 无人点赞评论
new CheckboxItem({
itemID: 'video-page-hide-zero-like-lv3-reply',
description: '隐藏 LV3 无人点赞评论',
itemCSS: `#comment-module .reply-item:has(.st1.lv3):not(:has(.sub-up-icon, .reply-info .reply-like span)) {display: none !important;}`,
itemCSS: `.reply-item:has(.user-level.level-3):not(:has(.delete-reply, .top-icon, .sub-up-icon, .reply-info .reply-like span)) {display: none !important;}`,
}),
// 一级评论 踩/回复 只在hover时显示, 默认开启
new CheckboxItem({
itemID: 'video-page-hide-root-reply-dislike-reply-btn',
description: '一级评论 踩/回复 只在hover时显示',
defaultStatus: true,
itemCSS: `#comment-module .reply-info:not(:has(i.disliked)) .reply-btn,
#comment-module .reply-info:not(:has(i.disliked)) .reply-dislike {
itemCSS: `.reply-info:not(:has(i.disliked)) .reply-btn,
.reply-info:not(:has(i.disliked)) .reply-dislike {
visibility: hidden;
}
#comment-module .reply-item:hover .reply-info .reply-btn,
#comment-module .reply-item:hover .reply-info .reply-dislike {
.reply-item:hover .reply-info .reply-btn,
.reply-item:hover .reply-info .reply-dislike {
visibility: visible !important;
}`,
}),
Expand All @@ -793,38 +793,38 @@ if (isPageBangumi()) {
itemID: 'video-page-hide-sub-reply-dislike-reply-btn',
description: '二级评论 踩/回复 只在hover时显示',
defaultStatus: true,
itemCSS: `#comment-module .sub-reply-container .sub-reply-item:not(:has(i.disliked)) .sub-reply-btn,
#comment-module .sub-reply-container .sub-reply-item:not(:has(i.disliked)) .sub-reply-dislike {
itemCSS: `.sub-reply-container .sub-reply-item:not(:has(i.disliked)) .sub-reply-btn,
.sub-reply-container .sub-reply-item:not(:has(i.disliked)) .sub-reply-dislike {
visibility: hidden;
}
#comment-module .sub-reply-container .sub-reply-item:hover .sub-reply-btn,
#comment-module .sub-reply-container .sub-reply-item:hover .sub-reply-dislike {
.sub-reply-container .sub-reply-item:hover .sub-reply-btn,
.sub-reply-container .sub-reply-item:hover .sub-reply-dislike {
visibility: visible !important;
}`,
}),
// 隐藏 大表情
new CheckboxItem({
itemID: 'video-page-hide-emoji-large',
description: '隐藏 大表情',
itemCSS: `#comment-module .emoji-large {display: none !important;}`,
itemCSS: `.emoji-large {display: none !important;}`,
}),
// 大表情变成小表情
new CheckboxItem({
itemID: 'video-page-hide-emoji-large-zoom',
description: '大表情变成小表情',
itemCSS: `#comment-module .emoji-large {zoom: .5;}`,
itemCSS: `.emoji-large {zoom: .5;}`,
}),
// 用户名 全部大会员色
new CheckboxItem({
itemID: 'video-page-reply-user-name-color-pink',
description: '用户名 全部大会员色',
itemCSS: `#comment-module .reply-item .user-name, #comment-module .reply-item .sub-user-name {color: #FB7299 !important;}}`,
itemCSS: `.reply-item .user-name, .reply-item .sub-user-name {color: #FB7299 !important;}}`,
}),
// 用户名 全部恢复默认色
new CheckboxItem({
itemID: 'video-page-reply-user-name-color-default',
description: '用户名 全部恢复默认色',
itemCSS: `#comment-module .reply-item .user-name, #comment-module .reply-item .sub-user-name {color: #61666d !important;}}`,
itemCSS: `.reply-item .user-name, .reply-item .sub-user-name {color: #61666d !important;}}`,
}),
// 笔记图片 查看大图优化, 默认开启
new CheckboxItem({
Expand All @@ -835,15 +835,13 @@ if (isPageBangumi()) {
itemCSS: `.reply-view-image .last-image, .reply-view-image .next-image {zoom: 1.4;}
.reply-view-image:has(.preview-item-box:only-child) .last-image {display: none !important;}
.reply-view-image:has(.preview-item-box:only-child) .next-image {display: none !important;}
.reply-view-image .preview-list:has(.preview-item-box:only-child) {display: none !important;}
.reply-view-image .preview-list {opacity: 0.2; transition: opacity 0.1s ease-in-out;}
.reply-view-image .preview-list:hover {opacity: 1; transition: opacity 0.1s ease-in-out;}`,
.reply-view-image .preview-list {display: none !important;}`,
}),
// 隐藏 整个评论区
new CheckboxItem({
itemID: 'video-page-hide-comment',
description: '隐藏 整个评论区',
itemCSS: `#comment, #comment-module {display: none;}`,
itemCSS: `#comment, {display: none;}`,
}),
]
bangumiGroupList.push(new Group('bangumi-comment', '评论区', commentItems))
Expand Down
Loading

0 comments on commit 7f52b77

Please sign in to comment.