i still have this problem, seems like some sites also get cookies deleted
i dont now if cookies have SlidingExpiration
It seems like the cookie is only created once in Youtube, when you sign in or something and then brave deletes it after 7 days. then the cookie is not created again, because Youtube thinks why create a new one, when it runs infinitely
Figured Iâd pop back in here as I now do have a simple javascript one could use for Tampermonkey as workaround to the issue. I hope itâs short and simple enough to not warrant mistrust.
// ==UserScript==
// @name Youtube Force Theater Mode
// @version 0.1
// @description Refresh youtube theater mode cookie for 7 days
// @match https://www.youtube.com/watch?*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// ==/UserScript==
function setCookie(name, value, days) {
var exdate = new Date();
exdate.setDate(exdate.getDate()+days);
document.cookie = name + "=" + escape(value) + ((days==null) ? "" : ";expires="+exdate.toUTCString());
}
setCookie("wide", 1, 7);
This worked for me after a refresh or two, once to set the cookie, twice to have the cookie be used. This should reset the cookie expiration to 7 days literally every single time you open a youtube vid.
If you want to use this for a different website, just adjust the @match line in the top part, and the values as the cookie requires in the bottom setCookie line.
Though I sooner hope this problem will simply get solved.
The issue is that YouTube sets a session cookie for wide mode. This session cookie should be cleared after a browser restart. However, Chrome doesnât do this by default, which we think is a privacy issue and we fixed earlier this year.
However, this leads to inconsistency for cases like these between other browsers and Brave. Weâve introduced a fix for YouTube, that persists the wide session cookie in localStorage instead.
Close and restart Brave and go back to youtube.com
Check if you are still in theater mode.
If you arenât, thatâs a problem. Please give the version number of your Brave Ad Block Updater component - you can find that in brave://components. Mine is 1.0.372 and it works there.
Ah, it looks like your Brave Shields are turned down for youtube.com. This would prevent the fix from being inserted. Can you retry the same steps with Brave Shields turned on?