您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Recent Twitch UI change where title is above video player. This reverts that.
当前为
// ==UserScript== // @name Twitch Title Fix // @namespace http://tampermonkey.net/ // @version 0.0.1 // @description Recent Twitch UI change where title is above video player. This reverts that. // @author Nanakusa // @match https://www.twitch.tv/* // @icon https://static-cdn.jtvnw.net/jtv_user_pictures/6a277ac2-ed5f-4daf-bb27-5a605b69a1f2-profile_image-300x300.png // @grant none // @license MIT // ==/UserScript== function fixPosition() { const item = document.querySelector('.channel-root__upper-watch'); const container = document.querySelector('.channel-info-content'); const beforeDiv = container.querySelector("section"); if (!item || item.getAttribute("fixed") || !container || !beforeDiv) return; item.style.width = "100%"; container.insertBefore(item, beforeDiv); item.setAttribute("fixed", true); }; window.addEventListener('load', () => { fixPosition(); }); fixPosition(); new MutationObserver(mutations => { mutations.forEach(mutation => { if (mutation.type === 'childList' || mutation.type === 'attributes') { fixPosition(); } }); }).observe(document.body, { childList: true, subtree: true, attributes: true });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址