pornhub.com pornstar videos link grabber

This adds a button to pornhub pornstar pages to get links to all videos

Author
J3pOjaVxWB
Daily installs
0
Total installs
195
Ratings
4 0 0
Version
1.0.2
Created
Updated
License
MIT
Applies to

Author's Description

Get ALL the pornstar videos!!!

This script adds a button to pornhub pornstar pages which says 'Get all video links' and does exactly that.
This is useful if you want to download all those videos but your downloadmanager doesn't have a scraper/plugin for pornhub pornstar pages.

What it does technically

The pornstar pages use a simple pagination by appending ?page=1 to the url.
This script calls all the pages with a simple GET request and then parses the links and names using a simple querySelector to get to the a tags.
If a GET request returns a 404 it assumes that the last page in the pagination was reached and stops.
The parsed links are then collected, printed to the console and a kind of modal panel with all the links is added to the document body.
If a GET request returns a 429 the script waits a second and then tries that request again. In a loop. Forever. Or at least till the server decides, that there are not too many requests any more.

Known bugs

  • There should be a loading graphic showing up if you click the button, but for some reason it doesn't