Skip to content

Instantly share code, notes, and snippets.

@gregilo
Last active October 31, 2022 14:59
Show Gist options
  • Select an option

  • Save gregilo/8084c2d590e7b501f862a5b4ae708d89 to your computer and use it in GitHub Desktop.

Select an option

Save gregilo/8084c2d590e7b501f862a5b4ae708d89 to your computer and use it in GitHub Desktop.
Bandcamp Enhanced Feed Player
// ==UserScript==
// @name Bandcamp Feed Player
// @namespace http://bandcamp.com/
// @version 0.1
// @description Adds scrubbing, play/pause, and volume control to the player on the Bandcamp feed page
// @author https://github.com/gregilo
// @match https://bandcamp.com/*/feed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bandcamp.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
const player = document.querySelector('audio');
player.style.visibility = 'visible';
player.style.position = 'fixed';
player.style.left = '0';
player.style.bottom = '0';
player.style.width = '350px';
player.style.height = '100px';
player.setAttribute('controls', 'play pause seeking volume');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment