Default YouTube to Dark Theme

Makes YouTube default to its Dark Theme by initialising the relevant cookie

< 脚本Default YouTube to Dark Theme的反馈

评价:好评 - 脚本运行良好

§
发表于:2023-04-15

Thanks for the handy script that uses Youtube's built-in dark theme.
I want to suggest a small improvement by adding a page refresh so that the dark theme is applied immediately:

if(!c || !c.match("^PREF=|; ?PREF=")) {
document.cookie = "PREF=f6=400;domain=youtube.com";
// Reload the page so that the changes take effect immediately
location.reload();
}

§
发表于:2023-08-08

location.reload();
In my case, on the embedded pages, the player restarts endlessly.

发表回复

登录(不可用)以发表回复。

QingJ © 2025

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