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

Track number in playlists #117

Open
indierodo opened this issue Nov 4, 2024 · 2 comments
Open

Track number in playlists #117

indierodo opened this issue Nov 4, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@indierodo
Copy link

Description of the feature:

I would like to have a track number in the playlists.

Other info / sketches:

Try this userscript:

#contents {
  counter-reset: section;
}

ytmusic-responsive-list-item-renderer::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  margin-right: 20px;
}
image
@indierodo indierodo added the enhancement New feature or request label Nov 4, 2024
@Sv443
Copy link
Owner

Sv443 commented Nov 5, 2024

Thanks for the feature request, I like it and it should be relatively easy to implement.

@indierodo
Copy link
Author

Here's an update on my userstyle, in case you find it useful. It makes it only displayable on the queue and the playlists (it was showing on the quick dial too)

#contents {
  counter-reset: section;
}

ytmusic-playlist-shelf-renderer ytmusic-responsive-list-item-renderer::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  margin-right: 20px;
}

ytmusic-player-queue {
  counter-reset: section;
}


ytmusic-player-queue-item::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  margin-right: 20px;
}

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

No branches or pull requests

2 participants