3 ms·
Here's a handy one liner to grab all links from the downloads page and save a curl command to the clipboard: copy('curl ' + Array.from(document.querySelector
by matthistuff 10y ago
Here's a handy one liner to grab all links from the downloads page and save a curl command to the clipboard:
copy('curl ' + Array.from(document.querySelectorAll('a')).filter(a => String(a.search).indexOf('gamekey') > 0).map(a => '-o ' + a.pathname.substr(1) + ' ' + a.getAttribute('href')).join(' '))
Should work reasonably in most recent browsers.
- dylanfw 10y agoAs someone suggested on Reddit, download Automate the Boring Things and learn to automate the rest of the downloads.