您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
エンドクレジットの画面縮小を抑制します。
// ==UserScript== // @name Netflix Watch Credits // @namespace netflix-watch-credits.user.js // @match https://www.netflix.com/* // @grant none // @version 1.4 // @author nafumofu // @description エンドクレジットの画面縮小を抑制します。 // @description:en Suppress screen shrinkage of end credits. // @license MIT // ==/UserScript== const watchCredits = (node) => { for (const [key, value] of Object.entries(node)) { if (key.startsWith('__reactProps$')) { const state = value.children._owner.memoizedState const {duration, timecodes} = state.playbackState; timecodes.find(timecode => timecode.type === 'ending').startOffsetMs = duration; break; } } } const observer = new MutationObserver((mutations) => { for (const mutation of mutations) { const nodes = [...mutation.addedNodes].filter((node) => node.nodeType === Node.ELEMENT_NODE); for (const node of nodes) { if (node.matches('.watch-video--player-view')) { watchCredits(node); } } } }); observer.observe(document.body, { subtree: true, childList: true, });