【自用分享】刷米游在TapTap的官号时防节奏跳脸的网页元素屏蔽规则(kiwi浏览器+uBlockOrigin可用)

自用,主要用来刷米家官号用。不想在刷官号时被社区节奏干扰。

主要功能:
屏蔽官号投稿下的社区评论显示。
屏蔽社区投稿的推荐流。

测试平台:

测试用例(需登录TapTap网页并关注米游动态):https://www.taptap.cn/forum/follow/app

code r0:

! taptap.cn
!#if env_mobile
!! 下侧悬浮App挑转按钮
www.taptap.cn##:root > body > #__nuxt > div > a.open-app-global-float
!! TapTap标头App跳转按钮
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.home-page__container > div.home-page_layout-header > div.tap-router.tap-button.open-app
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.home-page__container > div.home-page__tabs > div > div > div.app-calendar-header:style(top: initial !important)
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.top-rank-header > div.tap-router.tap-button.open-app
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.forum-page__container > div.forum-page_layout-header > div.tap-router.tap-button.open-app
!! 动态标签页关注投稿流切换
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.forum-page__container > div.forum-page__tabs > div > div.frequent-visit-header
!! ※当切换到动态标签页的「关注(的游戏)」子标签页时,隐藏标签页切换栏
www.taptap.cn##:root > body > #__nuxt > div > main > div:has(> div.forum-page__container > div.forum-page_layout-header > div.forum-page_layout-header-top > div.tap-slide--activated.forum-page__tab-headers > div.tap-slide__wrap > div > a.forum-page__tab-header.tap-tab--active[href="/forum/follow/app"]) > div.layout-tabbar.box-border
www.taptap.cn##:root > body > #__nuxt > div > main > div:has(> div.forum-page__container > div.forum-page_layout-header > div.forum-page_layout-header-top > div.tap-slide--activated.forum-page__tab-headers > div.tap-slide__wrap > div > a.forum-page__tab-header.tap-tab--active[href="/forum/follow"]) > div.layout-tabbar.box-border
!! ※当切换到动态标签页的「关注(的游戏)」子标签页时,隐藏其他子标签页入口
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.forum-page__container > div.forum-page_layout-header > div.forum-page_layout-header-top > div.tap-slide--activated.forum-page__tab-headers > div.tap-slide__wrap > div:has(> a.forum-page__tab-header.tap-tab--active[href="/forum/follow"]) > :not(a:nth-child(1))
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.forum-page__container > div.forum-page_layout-header > div.forum-page_layout-header-top > div.tap-slide--activated.forum-page__tab-headers > div.tap-slide__wrap > div:has(> a.forum-page__tab-header.tap-tab--active[href="/forum/follow/app"]) > :not(a:nth-child(1))
!#endif
!! ※当切换到动态标签页的「推荐」子标签时,隐藏动态瀑布流
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.forum-page__container:has(> div.forum-page_layout-header > div.forum-page_layout-header-top > div.tap-slide--activated.forum-page__tab-headers > div.tap-slide__wrap > div > a.forum-page__tab-header.tap-tab--active[href="/forum/hot"]) > div.forum-page__tabs > div.forum-feed-list
!! 已关注游戏的投稿页脚框评分、下载、进入论坛
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.moment-page:has(> div.moment-page__user-header > div.moment-header__follow-button > button.follow-button--following):has(> div.moment-page__content > div > div.moment-head__status > div > svg.official-icon) > div.moment-page__content > div.moment-page__ugc-pendant-card > div.tap-row-card > div.tap-row-card__contents > a.tap-router.pendant-card__go-to-group
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.moment-page:has(> div.moment-page__user-header > div.moment-header__follow-button > button.follow-button--following):has(> div.moment-page__content > div > div.moment-head__status > div > svg.official-icon) > div.moment-page__content > div.moment-page__ugc-pendant-card > div.tap-row-card > div.tap-row-card__contents > div.app-row-card__features > div.app-row-card__rating
!#if env_mobile
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.moment-page:has(> div.moment-page__user-header > div.moment-header__follow-button > button.follow-button--following):has(> div.moment-page__content > div > div.moment-head__status > div > svg.official-icon) > div.moment-page__content > div.moment-page__ugc-pendant-card > div.tap-row-card > div.tap-row-card__right > a.tap-router.open-app
!#endif
!! 游戏官方投稿的社区评论
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.moment-page:has(> div.moment-page__content > div > div.moment-head__status > div > svg.official-icon) > div.moment-page__comment > div > div.moment-comment-list__tap-list > div.moment-post-item > div.moment-post-item__comments > div.moment-post:not(:has(> div.moment-post__header > a.user-avatar > div.user-avatar__verified > span > img[data-src="https://img.tapimg.com/market/images/e8fb44ab9fb5f5fe04a1474416f3c15e.png"]))
www.taptap.cn##:root > body > #__nuxt > div > main > div > div.moment-page:has(> div.moment-page__content > div > div.moment-head__status > div > svg.official-icon) > div.moment-page__comment > div > div.moment-comment-list__tap-list > div.moment-post-item > div.moment-post:not(:has(> div.moment-post__header > a.user-avatar > div.user-avatar__verified > span > img[data-src="https://img.tapimg.com/market/images/e8fb44ab9fb5f5fe04a1474416f3c15e.png"]))

bonus tip:
手机端用kiwi浏览器全屏播放包括Tap在内的的网页视频时,会出现竖屏播放的情况。可以用这个油猴脚本让kiwi全屏播放网页视频时自动横屏:https://lucidusdev.github.io/2023/12/15/fullscreen-video-android-kiwi-browser/

see also:

https://zlb.ink/t/topic/6638/1

10 个赞

[uBlock Origin]
! Title: zlb:t/10620/2
! Expires: 24 days
! Version: 1
! Last modified: 19 Wed 2025 05:02 UTC
!. – 微博移动触屏版(HTML5)网页元素屏蔽代码

!! 时间线刷新按钮
m.weibo.cn##:root > body > #app > div.main-wrap > div.refresh-btn
!#if env_mobile
!! 时间线点赞按钮
m.weibo.cn##:root > body > #app > div.main-wrap > div:not(.main-top) > div.pannelwrap > div.wb-item-wrap > div.wb-item > div.card > footer.f-footer-ctrl > div.m-diy-btn:has(> i.lite-iconf-like)
!! 资料页点赞按钮
m.weibo.cn##:root > body > #app > div:not(.main-wrap) > div.wb-item-wrap > div.wb-item > div.card > footer.f-footer-ctrl > div.m-diy-btn:has(> i.lite-iconf-like)
!! 时间线分类标签按钮
m.weibo.cn##:root > body > #app > div.main-wrap > div.lite-topbar > div.nav-main > div.m-box > div.inner-box > div.scroll-box > div.slide-wrap > ul.nav_item:has(> li.item_li.cur) > li.item_li:not(.cur)
!! 列表页点赞按钮
m.weibo.cn##:root > body > #app > div:not(.main-wrap) > div div > div.card.weibo-member > .card-wrap > .card-main > footer.m-ctrl-box > div.m-diy-btn:has(> i.m-icon-like)
!#endif
!! 搜索框预置装饰字符串
m.weibo.cn##:root > body > #app > div.main-wrap > div.lite-topbar > div.nav-top > a.nav-search > aside > label > div.m-text-cut:style(opacity:0)
!! 搜索界面输入栏placeholder属性字符串
m.weibo.cn##:root > body > #app > div > div > div.ntop-nav > div > div > div.nt-sbox > form.nt-search > input[type=search]::placeholder
!! 搜索界面热搜话题按钮
m.weibo.cn##:root > body > #app > div > div > div.card.m-panel.card16 > div.card-wrap > div.card-main > div.m-item-box:not(:last-child)
!! ※消息箱入口按钮红点 -> 蓝点;隐藏消息数显示
m.weibo.cn###app > div.main-wrap > div.lite-topbar.main-top > div.nav-top > div.nav-right > div.lite-iconf-msg > em.m-bubble-red:style(background-color:#ADF !important; border-radius: 50% !important; font-size: 0pt !important; left: 1rem !important; transform: scale(0.6))
!! 米家官号评论区 铁道(呜呜帕姆)原(派蒙)绝崩3
m.weibo.cn##:root > body > #app > div.lite-page-wrap > div:has(> div.main > div.card9 > div.card-wrap > header.weibo-top > div.m-avatar-box > :is([href="/profile/7643376782"],[href="/profile/7709937124"],[href="/profile/7817290049"],[href="/profile/6593199887"],[href="/profile/7587837369"],[href="/profile/7632078520"],[href="/profile/5812573321"],[href="/profile/7828497372"],[href="/profile/7922920911"])) > div > div.comment-content
!! 米家官号专栏/视频评论区 铁原绝
card.weibo.com##:root > body > div.m-container-max > div:has(> .m-feed > .f-art-user-v2.m-box > .m-box-col > div.name.m-text-cut:has-text(/^\s*(崩坏星穹铁道|原神|绝区零)\s*$/)) > div.m-panel1
h5.video.weibo.com###app > div:has(> div:not(#comments) > div > div.woo-box--flex.is-align-center > div.woo-boxItem--flex > div.star-autocut:has-text(/^\s*(崩坏星穹铁道|原神|绝区零)\s*$/)) > #comments
!! 微博视频号推荐/App内打开
h5.video.weibo.com###app > div > div.woo-panel > button.woo-button[ontouchstart]
h5.video.weibo.com###app > div > div.woo-toolBar > div.woo-toolBar__main

!. --.

1 个赞