您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Always show movie info and update page title to movie name on CircleFTP
当前为
// ==UserScript== // @name CircleFTP Fix Tab Name And Movie Titles // @namespace http://tampermonkey.net/ // @version 1.0 // @description Always show movie info and update page title to movie name on CircleFTP // @author BlazeFTL // @license MIT // @match *://new.circleftp.net/* // @grant GM_addStyle // ==/UserScript== (function () { 'use strict'; // --- Style Fix: Always show movie info below posters --- const styleFix = ` .SinglePost_singlePost_text__TQn9G { position: static !important; opacity: 1 !important; visibility: visible !important; background: transparent !important; display: block !important; pointer-events: auto !important; margin-top: 10px !important; } .SinglePost_singlePost_card__MLfCk .overflow-hidden { flex-direction: column !important; align-items: center !important; } `; if (typeof GM_addStyle !== "undefined") { GM_addStyle(styleFix); } else { const style = document.createElement('style'); style.textContent = styleFix; document.head.appendChild(style); } // --- Title Update: Set document title to movie name --- function updateTitle() { const h2 = document.querySelector('h2.text-white.text-bolder'); if (h2 && h2.textContent.trim()) { document.title = h2.textContent.trim(); } } window.addEventListener('load', updateTitle); const observer = new MutationObserver(() => { updateTitle(); }); observer.observe(document.body, { childList: true, subtree: true }); })();