GuyXY / YouTube-Design-Preserver

YouTube Design Preserver is a browser extension that allows you to choose between the old, dark or normal YouTube design and preserve it permanently.
Other
6 stars 0 forks source link

Subscriptions page keeps reverting to grid view. #1

Open canthidium opened 4 years ago

canthidium commented 4 years ago

Hello, just switched back to Firefox again and this addon is wonderful. It works great, the only issue I'm having is I use list view on the subscriptions page but it keeps reverting back to grid view. Thank you!

GuyXY commented 4 years ago

Hello, glad to hear that you like my add-on!

The add-on does not currently attempt to preserve the view type on the subscription site. It only preserves the old, dark or normal YouTube theme. It does so by manipulating YouTube's PREF cookie.

The view type however does not seem to be saved anywhere. It seems like that's YouTube's intended behavior rather than a bug, which is a little odd, I'll admit.

The URL does change however. https://www.youtube.com/feed/subscriptions?flow=2 always sends you to the subscription site in a list view mode.

I think that it's out of scope for this add-on and it may not be what other users of this add-on expect or even want. You could fix your problem by either just adding that URL as a bookmark or using an add-on like Redirector. That seems like the cleanest solution to me.

To achieve what you want with Redirector, you could add the following redirect rule:

Example URL: https://www.youtube.com/feed/subscriptions Include pattern: https?://(www.)?youtube.com/feed/subscriptions.* Redirect to: https://www.youtube.com/feed/subscriptions?flow=2 Pattern type: Regular Expression

Show advanced options Check "Main window (address bar)" and "HistoryState"

I hope that helped. :)

canthidium commented 4 years ago

Thanks so much for the very detailed response. That is strange that the view type doesn't seem to be saved anywhere. It always saved somehow when I was on Chrome and Vivaldi. I had been just updating the PREF cookie and inputting "al=en&f5=30030&f6=8" which worked fine. When I moved to Firefox again, I came across your Addon and decided to use it as it works great. I may just manually edit the cookie myself and see if it works then. I tend to just keep a pinned youtube tab on another monitor so the bookmarking doesn't help. If manually editing, then the Redirector looks like it would be the best solution. Thanks so much for the extension and for taking the time to help!

EDIT: Ha, funny enough, since you're extension already modified the PREF cookie, it was already set so all I did was remove your extension and the old layout remained as well as the list view is staying as the default. We'll see if it keeps long term. Thanks again!