Legacy Video Quality on Crunchyroll

Forces the legacy video quality settings for the video stream on crunchyroll(basically returns the option to choose 1080p,720p,480p etc..)

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Legacy Video Quality on Crunchyroll
// @namespace    http://tampermonkey.net/
// @version      2025-08-31
// @description  Forces the legacy video quality settings for the video stream on crunchyroll(basically returns the option to choose 1080p,720p,480p etc..)
// @author       Some random dude from reddit
// @match        *static.crunchyroll.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=crunchyroll.com
// @grant        GM_getValue
// @grant        GM_setValue
// @run-at       document-start
// @license MIT
// ==/UserScript==

function doStuff() {
    let configDelta;
    configDelta = localStorage.getItem('Vilos:ConfigDelta');

    console.log("Legacy Video Quality on Crunchyroll is RUNNING");
    if(!configDelta) setTimeout(function() { doStuff(); }, 200);
    else {
        if(configDelta.qualitySettings) configDelta.qualitySettings.enabled = false;
        else configDelta = JSON.parse('{"ads":{"adSystem":"GoogleAdManager","adTech":"CSAI","minimumDurationThreshold":420,"truex":true},"playbackSpeed":{"enabled":true},"qualitySettings":{"enabled":false}}');
        localStorage.setItem('Vilos:ConfigDelta', JSON.stringify(configDelta));
    }
}

doStuff();