This file contains hidden or 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
const puppeteer = require('puppeteer'); | |
const Jimp = require("jimp"); | |
const DEBUG = false; | |
const URL = "https://plaidctf.com/files/css.74486b61b22e49b3d8c5afebee1269e37b50071afbf1608b8b4563bf8d09ef92.html" | |
const minimal_args = [ | |
'--autoplay-policy=user-gesture-required', | |
'--disable-background-networking', | |
'--disable-background-timer-throttling', |
This file contains hidden or 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
// bandcamp-dl -f -r -u -d --base-dir . `cat ~/Downloads/bandcamp-wishlist.json|jq -r '.[]'|tr '\n' ' '` | |
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
async function download(jsonContent) { | |
var element = document.createElement('a'); | |
element.setAttribute('href', 'data:application/json;charset=utf-8,' + encodeURIComponent(jsonContent)); | |
element.setAttribute('download', "bandcamp-wishlist.json"); | |
element.style.display = 'none'; | |
document.body.appendChild(element); |
OlderNewer