tabview-youtube / Tabview-Youtube

Make comments and lists into tabs
MIT License
36 stars 4 forks source link

[Feature] Set Default Tab in Script instead of in cookies. #18

Closed MintMain21 closed 1 year ago

MintMain21 commented 1 year ago

It appears that the default tab setting is set in browser cookies instead of the script itself. This means that when using YouTube in Private Browsing or a different Firefox Container the tab will be Recommended Videos (instead of my preferred Video Info).

I would prefer it if this option was saved in the script itself so that this would be the default in all browsing sessions regardless of how cookies are saved.

MintMain21 commented 1 year ago

Update: Found a part of the script where the default tab can be easily changed.

There's probably a way to make this more user-friendly (IE: A toggle towards the top where we choose a preferred tab followed by "if default-tab.includes [option] then default-tab=option).

image

Update: If I set the above to tab-playlist, then it defaults to playlists when on a playlist video, and info when on a normal video. This may be because I use Ublock Origin to block out the comment/video tabs, but it's the most optimal option for me at least.

Might want to set that as the default and add options to configure visibility of the other tabs for people that (for whatever reason) don't use Ublock Origin or Adguard or even Unhook.

cyfung1031 commented 1 year ago
  1. Update Tabview Youtube to >= v4.19.0

  2. Install Tabview Youtube Design Customization >= v0.2.0

  3. Screen Shot 2023-08-15 at 18 47 43
MintMain21 commented 1 year ago

Perhaps the additional script is helpful for the unrounding of buttons, but I'm not sure why it's a stylus script when, again, the request was to edit the options from within the same script.

The solution I found earlier is all I wanted and needed. If there's a way to streamline that for inexperienced users that would be nice, but making an additional script just seems so unnecessary.

If you want examples of scripts that present toggles like that, look up Privacy Redirector and Invidious Preferences