From 6e1aabeb5f6c5cecd23005e00a980dbefbd53c76 Mon Sep 17 00:00:00 2001 From: festoney8 Date: Tue, 9 Apr 2024 17:35:39 +0800 Subject: [PATCH] feat: hide comment contractor-box --- CHANGELOG.md | 1 + src/rules/dynamic.ts | 6 ++++++ src/rules/video.ts | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec50c31f..97b880b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - 修复:点击顶栏logo时弹出其他按钮bug - 新增:隐藏顶栏按钮hover时弹出框 +- 新增:隐藏评论区老粉、原始粉丝Tag ## 3.4.1 diff --git a/src/rules/dynamic.ts b/src/rules/dynamic.ts index 2daf40a7..ae00c0f7 100644 --- a/src/rules/dynamic.ts +++ b/src/rules/dynamic.ts @@ -248,6 +248,12 @@ if (isPageDynamic()) { description: '隐藏 ID后粉丝牌', itemCSS: `.comment-container .fan-badge {display: none !important;}`, }), + // 隐藏 老粉、原始粉丝Tag + new CheckboxItem({ + itemID: 'video-page-hide-contractor-box', + description: '隐藏 老粉、原始粉丝Tag', + itemCSS: `.comment-container .contractor-box {display: none !important;}`, + }), // 隐藏 一级评论用户等级 new CheckboxItem({ itemID: 'video-page-hide-user-level', diff --git a/src/rules/video.ts b/src/rules/video.ts index 9ae042a5..e8c06931 100644 --- a/src/rules/video.ts +++ b/src/rules/video.ts @@ -1117,6 +1117,12 @@ if (isPageVideo() || isPagePlaylist()) { description: '隐藏 ID后粉丝牌', itemCSS: `.comment-container .fan-badge {display: none !important;}`, }), + // 隐藏 老粉、原始粉丝Tag + new CheckboxItem({ + itemID: 'video-page-hide-contractor-box', + description: '隐藏 老粉、原始粉丝Tag', + itemCSS: `.comment-container .contractor-box {display: none !important;}`, + }), // 隐藏 一级评论用户等级 new CheckboxItem({ itemID: 'video-page-hide-user-level',