Download All Torrent Magnet Links In A Page
If you’re lucky and have search engine which list the results with their magnet links, and you found the right query to list only the torrent you are looking for, one can use this bookmarklet to easily “click” on all the magnet links in the page, which if you associate the magnet URI handling to your torrent client, and allowed the auto-open action in the browser, will fill you torrent client with all the torrents in a single click.
Create bookmark and set the above line as the page destination.
Here we’re using the
querySelectorAll to filter all elements from the DOM which are type of
a (hyperlink) with the attribute href (the link destination) and it values start with
magnet: and then for each we simulate a click action.
One can easily adapt this line to click all the links with