B站音频一键推送 TS3AudioBot

提取BV信息→支持分P/合集批量操作→直接播放 或 加入队列

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ả
ROAR
Cài đặt hàng ngày
1
Số lần cài đặt
3
Đánh giá
0 0 0
Phiên bản
1.2.2
Đã tạo
28-10-2025
Đã cập nhật
28-10-2025
Kích thước
10 KB
Giấy phép
MIT
Áp dụng cho

B站音频一键推送 TS3AudioBot

一个油猴 (Tampermonkey) 脚本,它在 Bilibili 视频页面添加控制按钮,让你能一键将视频(或合集/分P)推送到你的 TS3AudioBot 进行播放。

✨ 功能特性

  • 一键推送: 在视频播放器右侧添加“直接播放”和“加入队列”按钮。
  • 智能检测: 自动检测当前视频是否为多P合集视频。
  • 批量操作: 当检测到多P或合集时,额外显示“批量播放”和“批量添加”按钮。
  • 支持分P: 自动获取当前P数,实现精准播放 (bv-p)。
  • 批量指令: 自动根据规则发送正确的批量指令:
    • 合集: 优先使用 vall / addall 指令。
    • 仅分P: 使用 v / add 指令 + BV号-a
  • 图形化配置: 通过油猴菜单进行设置,无需修改代码。

🧩 先决条件

在使用此脚本前,你 必须 满足以下条件:

  1. 一个正常运行的 TS3AudioBot 实例。
  2. Bot 端已成功安装并加载 TS3AudioBot-bilibili 插件。
  3. 你的浏览器安装了 Tampermonkey (油猴) 或同类用户脚本管理器。

🚀 安装

  1. 确保你已满足上述所有“先决条件”。
  2. 点击安装

⚙️ 配置

安装脚本后,你需要配置它才能连接到你的机器人:

  1. 打开任意一个 Bilibili 视频页面 (例如 https://www.bilibili.com/video/BV1ZuGgzgENF)。
  2. 点击浏览器右上角的 Tampermonkey (油猴) 扩展图标
  3. 在弹出的菜单中,找到本脚本的名称,并点击 "⚙️ 设置"
  4. 在弹出的配置面板中:
    • 机器人地址: 填入你的 TS3AudioBot API 地址 (例如: http://192.168.50.12:58913)。
    • 机器人序号: 填入你要控制的机器人序号 (通常只有一个,是 0)。
  5. 点击 "保存"

▶️ 使用说明

配置完成后,刷新 B 站视频页面,你将在视频播放器右侧看到操作按钮。

第一行按钮 (单个视频)

  • 直接播放: 立即清空当前队列,并播放当前视频 (如果是分P视频,则播放你正在看的那一P)。
  • 加入队列: 将当前视频 (或当前P) 添加到播放队列的末尾。

第二行按钮 (批量操作)

  • 此行按钮 仅在检测到合集或多P视频时 才会出现。
  • 批量播放: 播放整个合集 (合集优先) 或所有分P
  • 批量添加: 将整个合集所有分P添加到播放队列的末尾。

🤝 相关项目