您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically enable the subtitles.
// ==UserScript== // @name Youtube - Subtitle // @namespace https://gf.qytechs.cn/en/users/670188-hacker09?sort=daily_installs // @version 3 // @description Automatically enable the subtitles. // @author hacker09 // @match https://*.youtube.com/embed/* // @match https://www.youtube.com/watch?v=* // @icon https://www.youtube.com/s/desktop/03f86491/img/favicon.ico // @run-at document-end // @grant none // ==/UserScript== (function() { 'use strict'; document.querySelector('video').addEventListener('playing', () => { //When the video is played document.querySelector(".ytp-subtitles-button.ytp-button").innerHTML.match('unavailable') === null && document.querySelector(".ytp-subtitles-button.ytp-button").ariaPressed === 'false' ? document.querySelector(".ytp-subtitles-button.ytp-button").click() : ''; //Auto enable the subtitles if available and they are disabled }, { once: true }); //Finishes the timeupdate event listener })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址