您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
放大asmr.one的字幕大小,可固定高亮字幕在可见区域
// ==UserScript== // @name asmr.one字幕调整 // @version 0.2.3 // @description 放大asmr.one的字幕大小,可固定高亮字幕在可见区域 // @author SchneeHertz // @license MIT // @match https://www.asmr.one/* // @match https://asmr-100.com/* // @match https://asmr-200.com/* // @match https://asmr-300.com/* // @grant GM_addStyle // @namespace http://tampermonkey.net/ // ==/UserScript== GM_addStyle(` #lyric { font-size: 2rem; line-height: 3rem; } `) function insertCheckbox () { const checkboxLabel = document.createElement('label') checkboxLabel.textContent = '固定高亮字幕' checkboxLabel.style.display = 'inline-flex' checkboxLabel.style.alignItems = 'center' checkboxLabel.style.gap = '5px' checkboxLabel.style.margin = '0 18px 6px' const checkbox = document.createElement('input') checkbox.type = 'checkbox' checkbox.id = 'fix-subtitle' checkboxLabel.insertBefore(checkbox, checkboxLabel.firstChild) const targetElement = document.querySelector('#lyric-layout .scroll header') if (targetElement) targetElement.appendChild(checkboxLabel) } function scrollToHighlight() { const container = document.querySelector('#lyric-layout .scroll') const highlighted = document.querySelector('#currentLyricEl') if (highlighted) container.scrollTop = highlighted.offsetTop - container.clientHeight / 5 } setInterval(() => { const container = document.querySelector('#lyric-layout .scroll') if (container) { if (!document.getElementById('fix-subtitle')) insertCheckbox() const checkbox = document.getElementById('fix-subtitle') if (checkbox.checked) scrollToHighlight() } }, 100)
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址