BetterYTM icon indicating copy to clipboard operation
BetterYTM copied to clipboard

Track number in playlists

Open indierodo opened this issue 1 year ago • 5 comments

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 avatar Nov 04 '24 23:11 indierodo

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

Sv443 avatar Nov 05 '24 21:11 Sv443

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;
}

indierodo avatar Nov 05 '24 23:11 indierodo

Hi again, just wanted to let you know I added the feature to version 3.1.0 which is currently in development.
If you wanna test it out on the latest stable dev build, feel free to install it here.
I will leave this issue open until the version is fully released.

Sv443 avatar Jun 30 '25 02:06 Sv443

Hi Sv443! I've just tried the latest development version of BetterYTM, the menu with categories in the left looks great and the track numbers work in my machine. Honestly, YouTube should get you hired as a frontend dev, I am now so used to this userscript that I forget I have it until I log into a new computer. I know it's not much, but I've given it a shoutout in my userstyle. Thanks a lot for creating this.

indierodo avatar Jul 09 '25 21:07 indierodo

Thank you very much for the kind words and the shoutout 😄

Sv443 avatar Jul 10 '25 01:07 Sv443