Skip to content

Instantly share code, notes, and snippets.

@albert-tomanek
Created July 25, 2023 19:49
Show Gist options
  • Save albert-tomanek/da78ae2c1e7ee12327fb420e4d44066e to your computer and use it in GitHub Desktop.
Save albert-tomanek/da78ae2c1e7ee12327fb420e4d44066e to your computer and use it in GitHub Desktop.
Bandcamp hide progress
// ==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