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
// go to Bandcamp album page, open dev console (f12), paste and run | |
function get() { | |
const rows = document.querySelectorAll("tr.track_row_view"); | |
let tracks = 0; | |
let hours = 0; | |
let minutes = 0; | |
let seconds = 0; |
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
// go to Bandcamp edit album page, open dev console (f12), paste and run | |
function download() { | |
const sel = (selector, base = document) => base.querySelectorAll(selector); | |
const get = (selector, base) => { | |
elements = sel(selector, base); | |
element = elements[0] || {}; | |
return element.value || element.innerText || ""; | |
}; |