您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
实现用鼠标选取cc字幕的功能,英语学习者可配合沙拉查词插件使用.
// ==UserScript== // @name bilibili鼠标选取复制cc字幕 // @namespace https://github.com/MonoeRI // @version 1.2 // @description 实现用鼠标选取cc字幕的功能,英语学习者可配合沙拉查词插件使用. // @author Monoe // @match https://www.bilibili.com/video/* // ==/UserScript== (function() { 'use strict'; function init (){ let classArr =document.getElementById('bilibiliPlayer'); // 判断是否加载播放器 if(classArr){ //设置6秒延迟,避免网速过慢脚本先执行,网速快的可以自行设置时间. setTimeout(function(){ let arraim=classArr.getElementsByClassName('bilibili-player-dm-tip-wrap')[0]; arraim.classList.remove('bilibili-player-dm-tip-wrap'); //0.6秒自执行,不断获取节点 setInterval(function(){ let classLista=classArr.getElementsByClassName('subtitle-item-text'); if(classLista[0]){ classLista[0].addEventListener('mousedown',function(event){ event.stopPropagation(); return; },true) classLista[0].style.userSelect='text'; classLista[0].style.cursor='text'; } },600) },6000) } } window.onload = init; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址