Files
patreon-downloader/get_urls.js

18 lines
588 B
JavaScript

// Execute this in your browser console on a patreon page.
let urls = [];
const target = temp1;
for (const child of target.children) {
try {
const url = child.children[0].children[0].children[0].children[0].children[0].children[0].children[1].children[0].children[0].children[0].children[0].children[0].children[0].children[0].href
urls.push(url);
} catch (error) {
console.error('Error occurred while extracting URL (expected');
}
}
console.log(urls);
// Now you can press "Copy Object" when you rightclick on the output of the console log above.