-
-
Save luk1337/f60bc6e6d830a5950b4b to your computer and use it in GitHub Desktop.
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
// ==UserScript== | |
// @name fuck bandcamp | |
// @namespace http://bandcamp.com/ | |
// @version 1.0 | |
// @author Swype | |
// @match *://*.bandcamp.com/album/* | |
// @match *://*.bandcamp.com/track/* | |
// @require https://code.jquery.com/jquery-2.1.4.min.js | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
$(document).ready(function() { | |
// add steal button | |
$("span[itemprop=byArtist]").after(", <a id=\"steal\">hehe download<a/>"); | |
$("#steal").click(function() { | |
msg = ""; | |
TralbumData.trackinfo.forEach(function(song) { | |
msg += "wget \"" + "http:" + song.file["mp3-128"] + "\" -O \"" + song.track_num + ". " + song.title + ".mp3\" &\n" | |
}); | |
prompt("just paste that in terminal, fgt", msg); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment