Created
July 25, 2023 19:49
-
-
Save albert-tomanek/da78ae2c1e7ee12327fb420e4d44066e to your computer and use it in GitHub Desktop.
Bandcamp hide progress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Bandcamp hide progress | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description hide progbar when listening to songs unless hovering over the player. | |
// @author You | |
// @match https://*.bandcamp.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var css = ` | |
.progbar .ui-draggable { | |
opacity: 0; | |
} | |
.track_info .time_elapsed { | |
display: none; | |
} | |
.progbar:hover .ui-draggable { | |
opacity: 1; | |
} | |
.track_info:hover .time_elapsed { | |
display: inline; | |
} | |
`; | |
var style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
document.getElementsByTagName('head')[0].appendChild(style); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment