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