您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动打开b站的字幕,每条视频都会
// ==UserScript== // @name 自动打开b站的字幕 // @namespace http://tampermonkey.net/ // @version 1.1 // @description 自动打开b站的字幕,每条视频都会 // @author 小伍 // @license MIT // @match https://www.bilibili.com/video/* // @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com // @grant none // ==/UserScript== (function() { let s = null; let hrefId = window.location.href; window.onload = function() { testTime(); }; setInterval(function (){ let thisId = window.location.href; if(thisId !== hrefId){ if (s) { clearInterval(s); } testTime(); hrefId = thisId; } },100); function testTime(){ s = setInterval(function (){ let classS = document.getElementsByClassName('bpx-common-svg-icon'); if(classS.length >= 23){ for(let i = 0;i < classS.length;i++){ if(classS[i].parentElement.parentElement.getAttribute('aria-label') == '字幕'){ classS[i].click(); clearInterval(s); return; } } } },100); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址