求自动打开B站字幕的脚本(只需要有带字幕功能的视频模拟点击一下就行),简单点就行
如题,求求求!```
// ==UserScript==
// @name New Userscript
// @namespace https://bbs.tampermonkey.net.cn/
// @version 0.1.0
// @descriptiontry to take over the world!
// @author You
// @match https://www.bilibili.com/video/*
// ==/UserScript==
const timer=setInterval(()=>{
if(document.querySelector(".bpx-player-control-bottom-right:has(*)")){
clearInterval(timer)
document.querySelector(" span")?.click()
}
},500)
```
随便写了个简易的 steven026 发表于 2023-9-10 17:09
```
// ==UserScript==
// @name New Userscript
霸道猫咪爱上我{:4_94:} steven026 发表于 2023-9-10 15:10
```
// ==UserScript==
// @name New Userscript
谢谢猫猫{:4_94:} bilibili列表播放界面也生效
// ==UserScript==
// @name New Userscript
// @namespace https://bbs.tampermonkey.net.cn/
// @version 0.1.0
// @descriptiontry to take over the world!
// @author You
// @match https://www.bilibili.com/*/*
// ==/UserScript==
const video = document.querySelector("video");
video.addEventListener("loadeddata", (event) => {
const timer = setInterval(() => {
if (document.querySelector(".bpx-player-control-bottom-right:has(*)")) {
document.querySelector(" span")?.click();
clearInterval(timer)
}
}, 500)
}); ffffffflu 发表于 2023-9-19 01:07
bilibili列表播放界面也生效
感谢感谢!
页:
[1]