Bookmarklet that extracts all hyperlinks on a page (e.g. to copy them into a downloader)
``` javascript:(function() {var x = document.querySelectorAll("a");var myarray = [];function dox(){for (var i=0; i<x.length; i++){ var nametext = x[i].textContent; var cleantext = nametext.replace(/\s+/g, ' ').trim(); var cleanlink = x[i].href; myarray.push([cleantext,cleanlink]);};}function make_table() { var table = '<table><thead><th>Name</th><th>Links</th></thead><tbody>'; for (var i=0; i<myarray.length; i++) { table += '<td>'+myarray[i][1]+'</td></tr>'; }; var w = window.open("");w.document.write(table); }dox();make_table();})()
```
DownThemAll is a nearly 20 year old browser addon that can bulk-download links on a webpage.
Some of us were in Kindergarten about then so we would have missed the original Show HN for that. Glad to have found it eventually though.
Re:Request your personal information
by DrAwdeOccarim on Tuesday January 25, 2022 @06:49AM
(#30070776)
I know I'm not supposed to comment when it doesn't add to the conversation, buuuut, your reply made me literally laugh out loud. Thank you for this! I often forget being ~40 means I'm no longer ~20 and that there are people who are actually ~20 out on the internet...
Hey while we're here in this closet shhhh posting non-additive replies... I have a website that's still up from 1996. Older than so many Kids These Days. :P
Man, talk about a flashback. I remember DownThemAll. That was the way to scrape images off porn sites, back when porn sites only had images.
Re:Request your personal information
by ivanmontillam on Tuesday January 25, 2022 @05:11AM
(#30070195)
I remember creating a custom crawler in Delphi when images were behind LinkBucks ads.
I must have made someone rich back then.
You get a long list of links that each triggers a download. It's a bit annoying to bulk download by clicking each link one by one, so I made a Browserflow flow that clicks all the links and downloads everything automatically: https://browserflow.app/shared/61e979ed-47f4-4c94-b5a5-3ade0...