Douyin Live Clean Mode Toggle Switch Style

抖音直播页纯净模式开关,开关滑块样式,带提示和自动隐藏,支持动态加载多个XPath元素隐藏

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Tác giả
Tim Ray
Cài đặt hàng ngày
1
Số lần cài đặt
21
Đánh giá
0 0 0
Phiên bản
1.8
Đã tạo
27-06-2025
Đã cập nhật
27-06-2025
Kích thước
6 KB
Giấy phép
MIT
Áp dụng cho

抖音直播纯净模式开关(Douyin Live Clean Mode Toggle)

简介

在抖音直播页右下角悬浮一个开关,开启后隐藏聊天面板、右侧面板及多个动态XPath定位的控件,实现纯净观看体验,支持页面动态加载。

详细描述

本脚本为Tampermonkey/Greasemonkey用户脚本,适用于抖音直播页面(包括 https://live.douyin.com/*https://www.douyin.com/root/live/* )。

功能

  • 页面右下角显示一个现代风格的滑块开关,方便切换纯净模式。
  • 开启纯净模式时自动隐藏以下控件:
    1. id="chatroom" 聊天面板
    2. id="__living_frame_right_panel_id" 后紧邻的面板
    3. 三个通过XPath精确定位的动态元素(针对随机class等难定位控件)
  • 支持页面动态内容加载时自动隐藏新增控件,防止刷新恢复显示。
  • 鼠标无动作5秒后自动隐藏开关及提示,保持界面整洁。
  • 点击滑块切换状态,切换效果明显,交互友好。

安装方法

  1. 安装Tampermonkey或Greasemonkey等脚本管理器。
  2. 添加并启用本脚本。
  3. 打开抖音直播页面即可使用。

脚本作者

Jeff

版本说明

  • v1.8 - 2025-06-24
    • 重构XPath定位函数,提升代码可维护性。
    • 新增第三个XPath目标元素支持。
    • UI改为滑块开关样式,提升交互体验。
    • 增加自动隐藏开关及提示功能,界面更整洁。
    • 修复页面动态加载时控件隐藏的稳定性。

脚本标签

douyin, 抖音, live, 直播, clean mode, 纯净模式, toggle, tampermonkey, userscript