PornHub Premium download videos 2020

I’ve made a user script that adds download links to the page of every video

PornHub Premium download videos 2020

Download an extension that supports running user scripts (I prefer ViolentMonkey on Chrome-based browsers), add the script below as a new script and that’s it.

Go to a video (URL looks like this:, and you should see a new tab labelled “Download (GM)” together with the other tabs below the video (About, Share, and so on.)

Copy the title of the video (so you can easily paste it when beginning the download in the next step.)

Click the tab and you should see a list of download links (one for each resolution that’s available), right click one of them and select “Save as…” or whatever it’s called in your browser. Paste the title you copied into the file name box, then click Save/OK or whatever.

The video will be downloaded just like any other file download.

// ==UserScript==
// @name        PH Downloader -
// @namespace   Violentmonkey Scripts
// @match
// @match*
// @match       *://*
// @match       *://**
// @match       *://*
// @match*
// @match       *://*
// @match       *://**
// @match       *://*
// @grant       none
// @version     1.0
// @author      -
// @description 3/12/2020, 10:56:35 PM
// ==/UserScript==

// First find the name of the flashvar variable in one of the scripts on the page:
var start = document.documentElement.innerHTML.indexOf('var flashvars_') + 'var '.length;
var tempDoc = document.documentElement.innerHTML.substr(start);
var end = tempDoc.indexOf(' =');
var flashVarsName = tempDoc.substr(0, end);
var flashVars = unsafeWindow[flashVarsName];

// Create a new tab element on the page:
var tabs = document.getElementsByClassName('video-actions-tabs')[0];
var tab = document.createElement('div');
tab.className = 'video-action-tab my-custom-tab';

var title = document.createElement('div');
title.className = 'title';
title.innerText = 'Use right click and "Save as..." to download.';

for(var i = 0; i < flashVars.mediaDefinitions.length; i++) {
  var definition = flashVars.mediaDefinitions[i];
  if (definition.format === 'hls') {
  var container = document.createElement('div');
  var a = document.createElement('a');
  a.innerText = 'Download (' + definition.quality + 'p, .' + definition.format + ')';
  a.dataset.videoUrl = definition.videoUrl;
  a.href = definition.videoUrl; = 'test-' + definition.quality + '.' + definition.format; = '_blank'; = '140%'; = '6px';

// Create a new menu item, which opens the new tab:
var menu = document.getElementsByClassName('tab-menu-wrapper-row')[0];
var newItem = document.createElement('div');
var sub = document.createElement('div');
var icon = document.createElement('i');
var text = document.createElement('span');
text.innerText = 'Download (GM)';
icon.className = 'main-sprite-dark-2';
sub.className = 'tab-menu-item tooltipTrig';
sub.dataset.title = 'Download (GM)'; = 'my-custom-tab';
newItem.className = 'tab-menu-wrapper-cell';


PornHub Premium download videos 2020

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to Top