您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
TVerの番組名やエピソードタイトルが省略されて表示されるとき、マウスオーバーで全文を表示します。
// ==UserScript== // @name TVer - 長いタイトルをホバーでフル表示 // @name:en TVer - Show full title on hover // @namespace https://tver.jp/ // @version 1.0 // @description TVerの番組名やエピソードタイトルが省略されて表示されるとき、マウスオーバーで全文を表示します。 // @description:en Show the full text of truncated TVer titles when hovering the mouse. // @author あなたの名前 // @match https://tver.jp/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // 動的に追加される要素にも対応 const observer = new MutationObserver(() => { document.querySelectorAll('div, span, a').forEach(el => { const style = window.getComputedStyle(el); if (style.textOverflow === 'ellipsis' && style.overflow === 'hidden') { if (!el.title && el.textContent.trim()) { el.title = el.textContent.trim(); } } }); }); observer.observe(document.body, { childList: true, subtree: true }); })();