Disable YouTube Glow/Ambilight

Script that removes the shitty glow/ambilight effect on the new YouTube downgrade. It sucks ass because it's in 8-bit colorspace, has a smoothing effect, and is overall just weird on your eyes, seriously thoguht my eyes were fucked lmao

< 腳本Disable YouTube Glow/Ambilight的回應

評論:普通 - 腳本能使用,但有一些問題

StephenP管理員
§
發表於:2022-11-01
編輯:2022-11-01

Hi, nice script, I didn't realize that the shitty glow was a Youtube "feature", I tought it was Firefox glitching. In Firefox is not even smoothed, so you just see dim, huge pixels flashing over the background.
By the way, the script can't work on Greasemonkey as it doesn't have the GM_addStyle function anymore
Here's a possible solution:

(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;
}
`)

})();

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址