您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
To force YouTube use Animated-Rolling-Number for YouTube Live
当前为
// ==UserScript== // @name YouTube: Force Animated-Rolling-Number // @namespace UserScripts // @match https://www.youtube.com/* // @grant none // @version 0.1.10 // @author CY Fung // @license MIT // @description To force YouTube use Animated-Rolling-Number for YouTube Live // @run-at document-start // @inject-into page // @unwrap // @require https://update.gf.qytechs.cn/scripts/475632/1359675/ytConfigHacks.js // ==/UserScript== (() => { window._ytConfigHacks.add((config_) => { const EXPERIMENT_FLAGS = config_.EXPERIMENT_FLAGS; if (EXPERIMENT_FLAGS) { EXPERIMENT_FLAGS.web_enable_dynamic_metadata = true; EXPERIMENT_FLAGS.dynamic_metadata_update_interaction_delay_period_sec = 8; EXPERIMENT_FLAGS.web_animated_like = true; EXPERIMENT_FLAGS.web_animated_like_lazy_load = true; } }); const insp = o => o ? (o.polymerController || o.inst || o || 0) : (o || 0); setInterval(() => { // prevent animation number flicking due to change of video content (browse -> mini -> browse of another) for (const an of document.querySelectorAll('[hidden] yt-animated-rolling-number:not([f9wm6="0"]), [hidden] yt-smartimation:not([f9wm6="0"])')) { an.setAttribute('f9wm6', '0'); const cnt = insp(an); const pnt = typeof cnt.disconnectedCallback === 'function' ? cnt : an; if (typeof pnt.disconnectedCallback === 'function') pnt.disconnectedCallback(); } for (const an of document.querySelectorAll('yt-animated-rolling-number[f9wm6="0"], yt-smartimation[f9wm6="0"]')) { if (an.closest('[hidden]')) continue; an.setAttribute('f9wm6', '1'); const cnt = insp(an); const pnt = typeof cnt.connectedCallback === 'function' ? cnt : an; if (typeof pnt.connectedCallback === 'function') pnt.connectedCallback(); } }, 100); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址