您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Use this script if you want subtitles float on entire screen!
当前为
// ==UserScript== // @name Put Youtube subtitles on top of everything // @namespace http://www.chaochaogege.com // @version 0.1 // @description Use this script if you want subtitles float on entire screen! // @author You // @match https://www.youtube.com/watch?* // @grant none // @require https://greasyfork.org/scripts/402597-monitor-dom-change/code/monitor%20dom%20change.js?version=801281 // ==/UserScript== !function() { const over = document.querySelector('#primary-inner') // const subtitlesdiv = document.querySelector('.caption-window') monitordom(over,(lists) => { if (lists.addedNodes.length > 0){ const n = lists.addedNodes[0] if (typeof n.className == 'string' && n.className.includes('caption-window')) { n.style.position = "fixed" } } },{attributes: true, childList: true, subtree: true}) over.style['z-index'] = 4000 over.style.position = 'relative' }()