您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remembers your caption selection between videos on Dropout.tv
// ==UserScript== // @name Remember Dropout Captions // @namespace https://theonlytails.com/ // @version 2024-04-26 // @description Remembers your caption selection between videos on Dropout.tv // @author theonlytails // @match *://www.dropout.tv/* // @grant none // @run-at document-idle // @license GPL-3.0 // ==/UserScript== (function() { 'use strict'; const iframe = document.getElementById("watch-embed"); if (iframe) { iframe.src += "&api=1"; const player = new VHX.Player("watch-embed"); player.on("loadeddata", (event) => { const languages = player.getSubtitles(); if (languages.length > 0) player.setSubtitle(languages[0].language); }) } })();