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

Is this a bug or it's on purpose? [Chrome] #48

Closed
Flinticarft opened this issue Aug 16, 2023 · 2 comments
Closed

Is this a bug or it's on purpose? [Chrome] #48

Flinticarft opened this issue Aug 16, 2023 · 2 comments

Comments

@Flinticarft
Copy link

cc53561f-ef65-44c2-848d-dc68595a68e4

@lightbeam24
Copy link
Owner

It's a bug caused by a change YouTube made today. Put this code into a userstyle (the beta version will not be getting a patch for this):

html[layout] {
  --bt-chips-display: block;
}
html[layout^="hitchhiker-2013"] {
  --bt-chips-display: none;
}
ytd-browse[page-subtype="home"] ytd-feed-filter-chip-bar-renderer {
  display: var(--bt-chips-display) !important;
  position: fixed !important;
  z-index: 1919;
  width: calc(100vw - var(--bt-sidebar-width)) !important;
  max-width: calc(100vw - var(--bt-sidebar-width)) !important;
  min-width: calc(100vw - var(--bt-sidebar-width)) !important;
  left: var(--bt-sidebar-width);
}
ytd-feed-filter-chip-bar-renderer #chips-wrapper.ytd-feed-filter-chip-bar-renderer {
  width: calc(100vw - var(--bt-sidebar-width)) !important;
}
ytd-feed-filter-chip-bar-renderer #scroll-container.ytd-feed-filter-chip-bar-renderer {
  width: calc(98vw - var(--bt-sidebar-width)) !important;
  margin: 0 auto;
}
html[homepage="small-grid"] ytd-browse[page-subtype="home"] #contents.ytd-rich-grid-renderer,
html[homepage="smaller-grid"] ytd-browse[page-subtype="home"] #contents.ytd-rich-grid-renderer {
  max-width: 1262px !important;
  margin-top: 60px !important;
  padding: 16px 12px;
}
html[homepage="rich-grid"] ytd-browse[page-subtype="home"] #contents.ytd-rich-grid-renderer, 
html:not([homepage]) ytd-browse[page-subtype="home"] #contents.ytd-rich-grid-renderer {
  margin-top: 60px;
}

The code wasn't actually tested on Chrome, but I don't know why it wouldn't work.

@Flinticarft
Copy link
Author

Thank you 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants