4 reviews
I don't see the Download link on the page.
Does not work before and after the changes suggested by fjcabcn.
EDIT:
Here's a patch that fixed it 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 = '
@fjcabcn
Thanks for the tip. I made those changes and it works now! Good Eye!
line 16: re = /(.*)mx_player_dev_config.php(.*)\"\);/gm
line 17: plDiv = document.getElementById("playerDiv_0");
line 21: url = "http://www.pornhub.com/mx_player_dev_config.php" + decodeURIComponent(info[2]);
Rhank's for this script but since the pornHib"s MAJ this script Don't work.
Another MAJ ?
