您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fixes HBO lag on old PC-s by disabling styles while video is playing.
当前为
// ==UserScript== // @name HBOGO but smooth // @namespace http://tampermonkey.net/ // @version 0.1 // @description Fixes HBO lag on old PC-s by disabling styles while video is playing. // @author Chris // @match https://hbogo.hr/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // ==/UserScript== (function () { "use strict"; setInterval(() => { const video = document.querySelector("video"); const isVideoPlaying = video && !video.paused; const injectedStyle = document.querySelector("#hbo-smooth"); if (isVideoPlaying) { if (injectedStyle) return; const fullscreenEl = document.querySelector("#hbo-sdk--player-fullscreen"); fullscreenEl && fullscreenEl.click(); const style = document.createElement("style"); style.textContent = /* css */ ` *:not(.video-js) { all: unset; transition: none !important; } head, style, script { display: none !important; } `; style.id = "hbo-smooth"; document.head.append(style); } else if (injectedStyle) { injectedStyle.remove(); } }, 1000); })();