Skip to content

Instantly share code, notes, and snippets.

@luk1337
Last active January 10, 2016 17:21
Show Gist options
  • Save luk1337/f60bc6e6d830a5950b4b to your computer and use it in GitHub Desktop.
Save luk1337/f60bc6e6d830a5950b4b to your computer and use it in GitHub Desktop.
// ==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