Created
September 6, 2012 16:33
-
-
Save starzonmyarmz/3658227 to your computer and use it in GitHub Desktop.
Play/Pause bandcamp.com with space key
This file contains 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
// Press space to toggle play/pause state in bandcamp | |
if (window.location.host.indexOf('bandcamp.com') !== -1) { | |
$(document).keyup(function(e){ | |
if (e.keyCode === 32) { | |
$('.playbutton').click(); | |
} | |
return false; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment