Disable YouTube Glow/Ambilight --GreaseMonkey Fix (hopefully)--

Script that removes the shitty glow/ambilight effect on the new YouTube downgrade. A mod suggested a fix for Greasemonkey which doesn't use GM_AddStyle anymore, so i pasted it in. Did a quick test with GreasyMonkey and it does seem to work.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Disable YouTube Glow/Ambilight --GreaseMonkey Fix (hopefully)--
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Script that removes the shitty glow/ambilight effect on the new YouTube downgrade. A mod suggested a fix for Greasemonkey which doesn't use GM_AddStyle anymore, so i pasted it in. Did a quick test with GreasyMonkey and it does seem to work.
// @author       TB-303
// @match        *://*.youtube.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...

(function() {
'use strict';
if(typeof GM_addStyle !== 'function'){
var GM_addStyle = function addStyle(css) {// GM_addStyle redefined as explained here: https://9to5answer.com/gm_addstyle-equivalent-in-tampermonkey
const style = document.getElementById("GM_addStyleBy8626") || (function() {
const style = document.createElement('style');
style.type = 'text/css';
style.id = "GM_addStyleBy8626";
document.head.appendChild(style);
return style;
})();
const sheet = style.sheet;
sheet.insertRule(css, (sheet.rules || sheet.cssRules || []).length);
}
}
GM_addStyle
(`#cinematics.ytd-watch-flexy {
display: none;
}
`)

})();
})();