您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
默认关闭B站弹幕、 将/s/的搜索入口路径自动转向正常视频路径、 隐藏B站视频的浮动弹出通知
// ==UserScript== // @license GPLv3 // @name bilibili_quiet // @namespace http://tampermonkey.net/ // @version 0.11 // @description 默认关闭B站弹幕、 将/s/的搜索入口路径自动转向正常视频路径、 隐藏B站视频的浮动弹出通知 // @author You // @match *://www.bilibili.com/video/* // @match *://live.bilibili.com/* // @match *://www.bilibili.com/s/video/* // @require https://cdnjs.cloudflare.com/ajax/libs/arrive/2.4.1/arrive.min.js // @grant none // ==/UserScript== (function(window) { 'use strict'; // 自动转向 if(/^\/s\/video\/([^\/\?]+)/.test(location.pathname)){ top.location.href = 'https://www.bilibili.com/video/'+RegExp.$1; return } // 播放 const f = () => { document.arrive('input.bui-switch-input, .bui-danmaku-switch-input', {'onceOnly':1}, function(el){ if(el.checked) { el.click(); } }); }; let _src = null; document.arrive('div.bilibili-player-video > video', {'existing':1}, function(el){ document.unbindArrive('input.bui-switch-input'); const src = this.src; if(src === _src) return; _src = src; f(); }); var style_el = document.createElement('style'); style_el.textContent = ` .bilibili-player-video-popup { display: none!important; } `; document.head.appendChild(style_el); })(window);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址