Hey guys,
Horn and I had a little chat about stuff and things. Basically, it's a drag to click all the links on a torrent page. Here's two pieces of code that will make it more convenient:
Tokyo Toshokan (www.tokyotosho.info) link. Magnets ALL torrents on the result page.
javascript:(function(){var nodes = document.querySelectorAll(".sprite_magnet"); var i = 0; var timer = window.setInterval(function(){window.location.assign(nodes[i].parentNode.getAttribute("href")); i++; if(!(i < nodes.length)){window.clearInterval(timer)}}, 1000)})()
Nyaa link (www.nyaa.se) link. Downloads all torrents on the result page.
javascript:(function(){var nodes = document.querySelectorAll(".tlistdownload a"); var i = 0; var timer = window.setInterval(function(){window.location.assign(nodes[i].getAttribute("href")); i++; if(!(i < nodes.length)){window.clearInterval(timer)}}, 1000)})()
How to use these links:
- Make a new bookmark, and add this code in the "location" field of the bookmark. Save it.
- Then click it when you have the right website's result page opened.
- It will "click" all present magnet links for you.
The links are activated at about 1 per second, so that in most cases server lag will not be an issue.
I'll be adding one more bookmark tool later, but that one will take more work.
NOTE: These are tested in Firefox, I cannot guarantee that they work in other browsers.
Greetings,
Nevy
I really do hope I'm allowed to post code like this. Been a while since I read the forum rules...?
Edited by nevernown, 27 June 2015 - 09:26 PM.