Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription page forgets list view #2105

Closed
Shad0wRyu opened this issue Mar 18, 2024 · 11 comments · Fixed by #2107
Closed

Subscription page forgets list view #2105

Shad0wRyu opened this issue Mar 18, 2024 · 11 comments · Fixed by #2107
Labels
Bug Bug or required update after YouTube changes good first issue A GitHub standard for inviting (new) contributors *Congratulations in advance!* help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥

Comments

@Shad0wRyu
Copy link

Shad0wRyu commented Mar 18, 2024

Bug Report:

BUG: Videos on subscription page change arrangement settings after refresh
HOW: On Opera GX, ImprovedTube version 4.780, going to the subscription page and arranging videos by list. Refresh the page twice and they default back to grid pattern
⚬ If a YouTube change started the bug, please copy the DOM you get (especially if the bug doesn't happen when you log out or on another computer)
⚬ Or did our last update start the bug? Only started after latest ImprovedTube update
⚬ ImprovedTube Version: 4.780

1. Thanks for coming & caring! Before submitting, please check if the issue has already been reported ever. With GitHub's issue search (use this link) (else removing "is:issue is:open" from the standard search) ( - If it was posted before, you can answer/react there to give it your voice and move it up in the lists) ( - If the status is "closed" (=fixed) recently, then Web Stores can be updated soon - if it was closed month or years ago, then it might reappeared & must be fixed again.)

2. To give us a chance to solve the bug: Can you ...?:
- ..deactivate other extensions running on YouTube? (or use an incognito window after activating this extension to run there / chrome://extensions details chrome://extensions/?id=bnomihfieiccainjcjblhegjgglakjdd )
- ..open the Browser-console, with the F12-Key, before/when the error occures? (then hopefully you'll see an error message in the console).
- ...copy the YouTube-DOM shown above the console (F12) in case YouTube is giving you a new verson. You can copying the root element <html> in the top after the bug happened:
(FireFox:)
- There are 2-3 different versions depending if you open a new window or clicked a link on youtube


More / optionally:

Screenshots:
/ ⚬ Context:
/ ⚬ Expected /preferred behavior:
⚬ Browser: Chromium version:121.0.6167.186
⚬ Settings:

⚬ OS: Windows 11
⚬ Device:

@Shad0wRyu Shad0wRyu added Bug Bug or required update after YouTube changes good first issue A GitHub standard for inviting (new) contributors *Congratulations in advance!* help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥ labels Mar 18, 2024
@ImprovedTube
Copy link
Member

hi @Shad0wRyu, thanks! rolling back to the previous version for today.
hi @raszpl! Want to revise your recent commits about cookies?

@ImprovedTube ImprovedTube changed the title Subscription page rest Subscription page forgets list view Mar 18, 2024
@raszpl
Copy link
Contributor

raszpl commented Mar 18, 2024

hi @Shad0wRyu, thanks! rolling back to the previous version for today.

You rolled back to completely broken version, why?
it crashes at #2058 and doesnt do anything handled by ytElementsHandler beyond that point. Themes are broken, autoplay is broken, "default channel tab" is broken.

hi @raszpl! Want to revise your recent commits about cookies?

edit: I looked at wrong thing, rechecking.
I was wrong, YT does indeed save "subscription page arrangement settings". In PREF f6 of all places.
PREF = "...&hl=en-US&f6=1" for List
PREF = "...&hl=en-US&f6=401" for List with YT Dark theme
&f6=80000 YT light
&f6=80001 List YT light

Old broken version works because its so broken it cant even override f6 properly when saving themes, it either doesnt touch cookies leaving broken theme (most people never used extension theme support so didnt trigger it), or if you change themes couple of times in a row it corrupts the cookie - user sees list setting changed, sets it again in YT and that overrides PREF fixing cookie but leaves broken theme.

New build fixed themes and properly overrides f6. Sadly f6 wasnt fully documented anywhere, I even asked what it does before committing the patch :(

@Shad0wRyu
Copy link
Author

Shad0wRyu commented Mar 18, 2024 via email

@raszpl
Copy link
Contributor

raszpl commented Mar 18, 2024

It absolutely does work that way. I did turn off the extension and test it. The subscription page settings remained every time. Are you just looking at the subscription feed on the home page?

I edited my reply an hour ago after rechecking. Initially I thought you meant channel video feed.

@Shad0wRyu
Copy link
Author

Shad0wRyu commented Mar 18, 2024 via email

@raszpl
Copy link
Contributor

raszpl commented Mar 18, 2024

Sorry, I wrote my initial reply too quickly without verifying thoroughly.

@Shad0wRyu
Copy link
Author

Shad0wRyu commented Mar 18, 2024 via email

@ImprovedTube
Copy link
Member

Sadly f6 wasnt fully documented anywhere, I even asked what it does before committing the patch :(

👍👍 @raszpl

You rolled back to completely broken version, why?

it can be done in a minute (simple trade-off since old bugs don't cause new confusion like new bugs,
so usually it is right to test for short at a time Uninstalls )

it crashes at #2058 and doesnt do anything handled by ytElementsHandler

👍 so hideDetailButton() doesn't run i shouldn't have missed this in 2023. The fix is in included in the store version (v4.805)

beyond that point. Themes are broken, autoplay is broken, "default channel tab" is broken.

really? It should only break those ytElementsHandler() function calls leading to call hideDetailButton()

@raszpl
Copy link
Contributor

raszpl commented Mar 18, 2024

it can be done in a minute (simple trade-off since old bugs don't cause new confusion like new bugs, so usually it is right to test for short at a time

I understant reverting on main extension. I think I asked about it already long time ago - isnt that what https://chromewebstore.google.com/detail/improve-youtube-%F0%9F%8E%A7-for-yo/lodjfjlkodalimdjgncejhkadjhacgki is for? I even asked why didnt you rename it to [Testing] or [Staging].

beyond that point. Themes are broken, autoplay is broken, "default channel tab" is broken.

really? It should only break those ytElementsHandler() function calls leading to call hideDetailButton()

you are probably right, but "Themes are broken, autoplay is broken, "default channel tab" is broken." are still true for version currently in store

@ImprovedTube
Copy link
Member

autoplay

did you fix autoplay?

testing

yes can, run slow tests with the testing version.
(So it might takes 2 weeks to get the same amount of bug reports, as a day in the main version)
(so it can be worth the trade-off to get a faster bug report for 300 extra uninstalls. More so while you are active 🎉 )

*Or any percentage of users, but in the past this webstore feature didnt work for us)

(Also updating both at once, the main version usually takes some more hours/days to be reviewed, while the test might passes immediately, so if a bug was noticed in testing already, we might canceled the review for the main version (while rolling back will take another review cycle at ChromeWebStore, unlike Firefox)

@raszpl
Copy link
Contributor

raszpl commented Mar 19, 2024

autoplay

did you fix autoplay?

its not "broken" broken, you added code breaking it deliberately with dc00a7e "fixes & tidy" #2042 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug or required update after YouTube changes good first issue A GitHub standard for inviting (new) contributors *Congratulations in advance!* help wanted Just an old github standard we add automatically. (The team can remove it when working on it.) up-for-grabs (a github standard for inviting new contributors) - Welcome! ♥
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants