Various search filters and user experience enhancers
Well I will perhaps add a dropdown or checkbox to set the duration interpretation as seconds. I need the setting in seconds for my use as I sometimes mix match and edit videos with sources under 30 seconds.
You're the boss. Do what you want, the way you like it, and when you can.
I only suggest improvements which come from my use of the script, but each user has his own.
I understand what you say about filtering videos under 30 seconds.
In that case, maybe it's easier and less work for you, leave it as it is and write here (or add it as a comment in the code) what needs to be changed in the code so that the filter is expressed in minutes and that's it. The users who want to, do it by themselves.
You can change the following line 110:
return validator.validateRange('Duration', duration, [settings.duration.minimum * 60, settings.duration.maximum * 60])
Then you can use the inputs as minute input.
I already did, and it worked perfectly.
Thank you very much, my friend.
Added link manipulations, leaner button and auto hide settings panel.
The best script on Greasy Fork. Really a gem, almost a kind of miracle. You are an absolute genius, my friend brazenvoid, I can never thank you enough. No one should enter Pornhub without having this script installed.
You solved in an incredible way the few problems the script had and now it works great, in all the Pornhub pages you can enter. It works dynamically even with the videos that are added after hitting buttons like "Load more" or "More related videos", and even with long playlists, which don't have those buttons but also load more videos as you scroll down the page.
Actually, in the video pages, you don't need to click on "More related videos" anymore because the script automatically does it and shows all the related videos, already filtered according to the user settings.
From now on, there is only room for improvements, as far as possible and when you have the time.
Some of those possible improvements we have already talked about, like making the UI hide automatically and making the "Settings-Show button" much smaller and less noticeable.
I would prefer the UI to hide automatically when you remove the mouse from it, but not to show automatically on mouse hover. Because sometimes it happens that you pass the mouse somewhere by accident and the UI would open when you don't want to open it. To show it is preferable the need to click. To hide it, yes, auto hide is excellent.
It also would be nice if you could see what trojangroove proposed in the other message (which I also responded with some other suggestions).
Of what is talked about there, I believe it would be very useful if you could remove the addition "&pkey=*" from the URLs, when you open a video that comes from a playlist. By doing that, the top bar with the whole playlist doesn't appear and the next video in that playlist doesn't play automatically (which is something you never want). In the other message I explained it in detail, with the example link.
Finally, one more very small thing. I've been testing the filter by duration of the video. It works very well, but for me it would be better expressed in minutes and not in seconds. The two little arrows to increase or decrease the value are practically useless if they go forward or backward just a second. And while the filter allows you to be more precise if expressed in seconds, I don't really see the need to filter videos of less than 47 seconds, for example. It's faster and more logical to filter videos of less than 3 minutes, or less than 1 minute, or whatever value you want to put, but expressed in minutes.
I tried to change it in the code myself, but I couldn't.
Anyway, I congratulate and thank you again for such a wonderful script.