Last active
October 31, 2022 14:59
-
-
Save gregilo/8084c2d590e7b501f862a5b4ae708d89 to your computer and use it in GitHub Desktop.
Bandcamp Enhanced Feed Player
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 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