theHandy support for PornHub and others

It also works for me in opera :confused:

hello how can i ad xvideos.com

xvideos should work, if there is a specific url not working, or any other issue, please write

Yo all of a sudden it stopped working to day. I keep getting the message * Machine reply to syncPrepare: {“connected”:true,“success”:false,“downloaded”:false} whenever I try to load a script. I’ve tried replugging my Handy, refreshing the page, reopening chrome, restarting my PC, and reinstalling the tampermonkey script, but I keep getting this error. What does it mean and how can i fix this??

2 Likes

In the brief 13h this hasn’t been working for me, I realize that you have created a great piece of utility here, Nodude, and this is one of if not the most helpful and convenient softwares ever created for the Handy. After using it for so long, I realize that I have never directly thanked you for this work. It saves so much time and storage space because you don’t have to download the video for every script. You are the goat.

It means that its successfully connected to the handy, but theHandy has failed to load the script.
Please check that the script is a valid funscript and if it isnt, send a link to the post of the video/funscript.
Also thanks for the kind words :smiling_face:

quality of life +100. thank you!

Installed tempermonkey and the script. I see it running when opening in pornhub, but no window appears where i can upload a script. Anybody an idea on how to solve this?

And it’s enabled (green checkmark is there)

Are there any console errors from my script, a different url thats not simply *.pornhub.com or something?
Did you click the handy icon in the bottom right corner?

ok didn’t saw that handy icon, thanks

Did know this was possible. Many thanks.

Hey I’m kinda new to this and I did what you said and added your script to tamper monkey what do I do from here?

Im on safari and on MacBook air

I don’t know much about tampermonkey but I do know Chrome Extension development – is it possible for the developer to package this into a chrome extension even if those of us using it have to do a ‘developer’ installation (i.e., install it directly without it being published to the chrome store).

If this were a chrome extension – even one that we had to side-load – it would be way awesome.

I don’t know if that is possible but I do have his permission to share the script if you want to take a crack at it.

Actually, let me just put it here for others to decide if they want to try it or not.


Tampermonkey® by Jan Biniok
v4.18.1
	
Pornhub Downloader
by theekaffe
1
// ==UserScript==
2
// @name         Pornhub Downloader
3
// @namespace    lancaster
4
// @version      0.5
5
// @description  try to take over the world!
6
// @author       theekaffe
7
// @match        https://www.pornhub.com/view_video.php?*
8
// @match       *://www.pornhub.com/view_video.php*
9
// @match       *://*.pornhub.com/view_video.php*
10
// @match       *://pornhub.com/view_video.php*
11
// @match       https://www.pornhubpremium.com/view_video.php
12
// @match       https://www.pornhubpremium.com/view_video.php*
13
// @match       *://www.pornhubpremium.com/view_video.php*
14
// @match       *://*.pornhubpremium.com/view_video.php*
15
// @match       *://pornhubpremium.com/view_video.php*
16
// @grant        test
17
// @grant        GM.xmlHttpRequest
18
// ==/UserScript==
19
​
20
let [id, flashvars] = Object.entries(unsafeWindow).find(([key, value]) => /^flashvars_\d+$/.test(key)) || [null, null];
21
​
22
var medias = flashvars.mediaDefinitions
23
var videoName = flashvars.video_title
24
​
25
for (var key in medias) {
26
    console.log(medias[key].videoUrl)
27
//    var reg = new RegExp("https:\/\/www\.pornhub(premium)?.com\/video\/get_media\?.+")
28
//    modified to wildcard the subdomain
29
      var reg = new RegExp("https:\/\/([a-zA-Z0-9]+)\.pornhub(premium)?.com\/video\/get_media\?.+")
30
    if (reg.test(medias[key].videoUrl)) {
31
        GM.xmlHttpRequest({
32
            method: "GET",
33
            url: medias[key].videoUrl,
34
            responseType:   "json",
35
            onload: function(xhr) {
36
                var mp4files = JSON.parse(xhr.responseText)
37
​
38
​
39
​
40
//Make button
41
var element = document.getElementsByClassName("ratingInfo")[0];
42
​
43
for (var key in mp4files) {
44
    if (mp4files[key].format == "mp4") {
45
    var link = document.createElement("a");
46
    link.setAttribute('target', '_blank');
47
    link.setAttribute('rel', 'noopener noreferrer');
48
    link.setAttribute('href', mp4files[key].videoUrl);
49
    link.setAttribute('style','padding-left:2x');
50
    link.setAttribute('download', videoName);
51
    link.textContent = mp4files[key].quality;
52
    element.appendChild(link);
53
    var space = document.createElement("a");
54
    space.textContent = " "
55
    element.appendChild(space);
56
    }
57
}
58
​
59
}})}}

This will provide a list of resolutions that you can open in a new tab then right click save as.

image

can this script work if I start from any second? I found that it lost sync…

Hello, recently it looks like rule34video is no longer working with this, it shows the normal notification on scriptmonkey as if it were open but there is no icon on the bottom right, or any popout. It works on pornhub, rule34 and spankbank as normal however. I tried on opera and chrome on rule34video but neither have anything appear.

Hey,
yeah, the structure of the URL on the site changed, I fixed the data.json, but since the original repo is archived I can not make a pull request to fix it.

Here is how you can fix it.
Option 1:
Do the original install steps with this script.js
https://raw.githubusercontent.com/jabiim/theHandy_Web/master/script.js

Option 2:
Open the existing script in the tamper monkey for edit:
image
Around the 424 lines, you will see a URL, change it to this:
https://raw.githubusercontent.com/jabiim/theHandy_Web/master/data.json

After this, if you click on Video Details or load a rule34video URL directly, it should work as expected.

Works perfectly, thank you very much!

1 Like