Skip to content

YouTube Music volume slider by pabli

Screenshot of YouTube Music volume slider

Details

Authorpabli

LicenseMIT

Categoryyoutube

Created

Updated

Size1.1 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           YouTube Music volume slider
@namespace      https://github.com/pabli24
@version        1.1.0
@description    Bigger and always visible volume slider on music.youtube.com
@author         Pabli
@homepageURL    https://userstyles.world/style/4891/youtube-music-volume-slider
@supportURL     https://userstyles.world/style/4891/youtube-music-volume-slider
@license        MIT
@preprocessor   stylus
@var            checkbox opac "Always visible" 1
@var            checkbox perc "Show %"         1
@var            number   wdth "Width (px)"     ['px', 200, 1, null, 1]
==/UserStyle== */

@-moz-document domain("music.youtube.com") {

if opac {
	.volume-slider.ytmusic-player-bar {
		opacity: 1;
	}
}
.volume-slider.ytmusic-player-bar, .expand-volume-slider.ytmusic-player-bar {
	width: wdth;
	if opac {pointer-events: auto;}
}
#right-controls {
	width: auto !important;
}
if perc {
	.volume-slider.ytmusic-player-bar::before {
		content: attr(aria-valuenow) "%";
		font-size: 12px;
		position: absolute;
		left: -18px;
		color: #aaa;
	}
}

}

Reviews

No reviews yet.