I recently came across a page with lots of links to txt files. I got frustrated
when I wanted to look up something in these files but couldn’t because I’d have
to download each one by one.
- ENTER THE BROWSER CONSOLE -
plus js friends
This returns a jquery-like object. A bunch of key-value pairs. The values being
Ruby. We could
make our own using the following function
But what if there are too many?
You could try
Make sure that the anchor element has a
target of _blank or browsers will prevent so many tabs from opening.
If your browser is preventing too many tabs to open, or the site is throttling
you, simulate pagination
and repeat calls to this after incrementing start. Say start = 20 then
start = 40 and so on.