Better HN
topnewbestaskshowjobs
Log inSign up

matthistuff

2 karma · joined Aug 18, 2016 (10y ago) · 2 submissions

Submissions

comment 10y ago · link · parent

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.