PornHub Downloader

By miserablegit Last update Jan 6, 2009 — Installed 25,016 times.

Patch to fix version 5

in
Subscribe to Patch to fix version 5 3 posts, 2 voices



Yonas Scriptwright

This works for me:

--- pornhub_downloader.user.orig.js 2009-02-14 17:57:44.000000000 -0500
+++ pornhub_downloader.user.fixed.js 2009-02-14 17:57:45.000000000 -0500
@@ -14,7 +14,7 @@

// find where the xml with data is
re = /(.*)mx_player_config.php(.*)\"\);/gm
-plDiv = document.getElementById("MxPlayerDiv");
+plDiv = document.getElementById("playerDiv_0");

script = new String(plDiv.nextSibling.nextSibling.textContent);
info = re.exec(script);
@@ -32,8 +32,8 @@
},
onload: function(responseDetails) {
// extract url
- re = /\<flv_url>(.*)\<\/flv_url\>/gmi
- flvurl = responseDetails.responseText.match(re)[0].replace(re,"$1");
+ flv_re = /\<flv_url>(.*)\<\/flv_url\>/gmi
+ flvurl = responseDetails.responseText.match(flv_re)[0].replace(flv_re,"$1");
// add link to page
newDiv = document.createElement('div');
newDiv.innerHTML = '

Download this video (right-click, Save As) without signup.
';

 
pornviet User

Hi Yonas !

Thanks for sharing this script !!

Can you guys show me how to install this script please !

I appreciate it !

 
Yonas Scriptwright

I made a new script based on this one:

http://userscripts.org/scripts/show/43952

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel