Greasy Fork 支持简体中文。

哔哩哔哩直播自动跳转到纯净版直播间

自动跳转到无各种活动的直播间

目前為 2025-03-01 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name 哔哩哔哩直播自动跳转到纯净版直播间
  3. // @description 自动跳转到无各种活动的直播间
  4. // @author qianxu
  5. // @version 1.1.2
  6. // @match https://live.bilibili.com/*
  7. // @run-at document-start
  8. // @icon https://www.bilibili.com/favicon.ico
  9. // @namespace bilibili-auto-redirect-to-blanc-live-room
  10. // @license MIT
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. const url = location.href
  15. const reg = /https:\/\/live\.bilibili\.com\/\d+.*/
  16.  
  17. if (reg.test(url)) {
  18. const roomId = url.match(/\d+/)[0]
  19. location.href = `https://live.bilibili.com/blanc/${roomId}`
  20. }