Skip to content

Youtube Playlist Resizer by wrapfield

Screenshot of Youtube Playlist Resizer

Details

Authorwrapfield

License0BSD

Categoryyoutube

Created

Updated

Size1.6 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Variable resizing YouTube playlist menu

Notes

There are some unintended consequences because this injects changes to tp-yt-paper-dialog, so lots of dialog boxes get really tall for no reason. can someone help fix this?

Source code

/* ==UserStyle==
@name           Colorful YouTube Ratings
@namespace      youtube.com
@author         wrapfield
@description    `Variable resizing YouTube playlist menu`
@version        1.0.0
@preprocessor less
@advanced range playheight "height" [84, 57, 84, 1, "%"]
@advanced range tbmargin "adjustment" [0, -5, 5, 1, "%"]
==/UserStyle== */

/*attention: this is still in superbeta and lots of other stuff gets resized weirdly because of the style changing tp-yt-paper-dialog. if you find a solution lmk*/
@-moz-document domain("youtube.com") {
/*resizing the playlist box*/
/*there is some weird hacky crap going on in this. i hate this website*/
#title.ytd-add-to-playlist-renderer{
    padding: 12px 24px;
}
ytd-add-to-playlist-renderer[increased-tap-target] #playlists.ytd-add-to-playlist-renderer>*.ytd-add-to-playlist-renderer:not(:last-child){
    margin-bottom:0px;
    /*border-bottom-width:10px!important;
    border-color:#F00;*
/*someone please help me figure out how to make a line between the playlists*/
}
ytd-add-to-playlist-renderer[dialog] #playlists.ytd-add-to-playlist-renderer{
    
    max-height:@playheight;
    min-height:@playheight;
}

/*another cry for help: can somebody figure a way around the adjustment setting? thanks*/
tp-yt-paper-dialog{
    top:89%-@playheight+@tbmargin!important;
    bottom:89%-@playheight+@tbmargin!important;
}
#actions.ytd-add-to-playlist-renderer,ytd-compact-link-renderer:not([has-secondary]) tp-yt-paper-item.ytd-compact-link-renderer{
    bottom:0!important;
}
}

Reviews

No reviews yet.