您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Disables the automatic downscaling of Twitch streams while tabbed away
当前为
// ==UserScript== // @name Twitch - Disable automatic video downscale // @namespace CommanderRoot // @copyright CommanderRoot // @license Unlicense // @version 1.0.6 // @description Disables the automatic downscaling of Twitch streams while tabbed away // @author https://twitter.com/CommanderRoot // @match https://www.twitch.tv/* // @match https://m.twitch.tv/* // @match https://player.twitch.tv/* // @grant none // @run-at document-start // ==/UserScript== "use strict"; // Try to trick the site into thinking it's never hidden Object.defineProperty(document, 'hidden', { value: false, writable: false }); Object.defineProperty(document, 'mozHidden', { value: false, writable: false }); Object.defineProperty(document, 'webkitHidden', { value: false, writable: false }); Object.defineProperty(document, 'visibilityState', { value: 'visible', writable: false }); Object.defineProperty(document, 'webkitVisibilityState', { value: 'visible', writable: false }); document.dispatchEvent(new Event('visibilitychange')); document.hasFocus = function () { return true; }; // visibilitychange events are captured and stopped document.addEventListener('visibilitychange', function (e) { e.stopImmediatePropagation(); }, true, true); // Set the player quality to "Source" try { window.localStorage.setItem('s-qs-ts', Math.floor(Date.now())); window.localStorage.setItem('video-quality', '{"default":"chunked"}'); } catch (e) { console.log(e); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址