Alters and improves the PH experience with better performance and code structure
Desktop + Mobile
Adds a fancy menu for filters, sorting & playlist tools
The script can hide videos you've already watched, strip out paid, premium, and private content, and filter by keywords you define yourself. The keyword filter works by typing words or phrases into the text box in the menu, separated by commas, and any video whose title contains one of those words will be instantly hidden.
For example, typing compilation, full video, pov will hide every video with either of those words in the title. The filter updates live as you type, so there's no need to confirm or reload anything.
Videos can be sorted automatically on page load or on demand using the manual buttons in the menu. Duration sorting reorders everything longest-first, which is useful for finding full-length content without scrolling past short clips. Trophy sorting bubbles award-winning videos to the top of the list. Both modes work on the main video grid, and can optionally be applied inside playlists too, toggled separately so you stay in control of where sorting applies.
Playlists on Pornhub load in chunks, meaning you'd normally have to keep clicking to load more. The autoscroll feature automates this, it fetches the next page of results, appends them to the list, and scrolls down to the new content, repeating until there's nothing left to load. It handles duplicate entries gracefully and stops itself once it detects the playlist is exhausted. When you delete a video from a playlist, a red overlay appears on the thumbnail immediately so you can see what's been marked for removal at a glance.
Two small quality-of-life options are available for the video player. The mute toggle automatically silences the player when a page loads, so you're never caught off guard by audio. The cursor hide option fades the mouse pointer out after a few seconds of inactivity while hovering over the player, it reappears as soon as you move the mouse again, mimicking the behaviour of most native video players.
If search engines or whatever detects your region and redirects you to a localized version of the site, this script can automatically switch it back to English. It checks the active language on load and clicks through to the English version if needed, so you don't have to do it manually every visit. All settings, filters, toggles, sorting preferences, are saved to your browser and persist across sessions and page navigations.