Download videos, filter/sort playlists and categories, cross-tab queue, autoscroll through playlists, hide shorts/vr/paid content, and much more! Auto mute volume, hide your cursor over videos, auto age verification, and when visiting pornhub in other languages change it to English automatically. Actively maintained and used by me so updated regularly. Feel free to request features!
Desktop + Mobile
Adds a menu to apply filters, add sorting, player tweaks like hiding the cursor and auto-mute, and site-wide quality-of-life improvements like automatic age verification and always defaulting to the English version of the site. Actively maintained and used by me so updated regularly. Feel free to request features!
Heads up: version 9 is a complete rewrite of the code. Everything should work the same as before and your settings are kept. If something doesn't work right, let me know!
The script can hide videos you've already watched, strip out paid, premium, and private content, and filter by keywords you define yourself. Type a word or phrase in the "Hide videos matching" box and press Enter or a comma to add it. Videos with that word in the title are hidden right away. The words you add show up as tags under the box, and you can remove them with the ×. For example, adding compilation, full video, pov will hide every video with any of those words in the title.
The "Show only matching" box does the opposite: if it has words in it, only videos with one of those words in the title are shown.
There's also a duration filter, using the same 0 / 10 / 20 / 30 / 40+ minute stops as Pornhub's own slider instead of arbitrary numbers. It has two independent uses: applying your chosen range to search and category page URLs so results come back pre-filtered, and/or hiding any video outside that range wherever a duration badge shows up, including inside playlists.
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. View sorting puts the most viewed videos first, and trophy sorting moves award-winning videos to the top. All of them 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.
When you edit a playlist you can sort it by views, duration or when it was uploaded, or put it back in the original order. The new order is saved when you press save. There is also a list view if you find the cards too big. The queue buttons and the hidden videos are left out while you edit, so you always see the whole playlist.
The queue plays videos one after the other. Add a video with the button that shows on a thumbnail, with "Add to queue" in the three-dot menu, or with the button in the player. "Play next in queue" puts a video right behind the one that is playing. When one video ends the next one starts on its own, and a video you left halfway continues where you stopped, unless you turn on "Always restart from beginning".
Press the "Play queue" button to start it. While it plays you get previous, stop and next buttons in the player, and a queue button that opens the list. In the list you can drag videos to change the order, shuffle, clear, remove videos and right click a video to play it next. The keyboard shortcuts for adding and skipping can be turned on in the settings.
On mobile the queue opens as a sheet from the bottom, also in fullscreen. Swipe from the edge of the screen to open it, hold the = handle to drag a video to another place and use the three-dot menu on a video to add it. The queue is shared between tabs, and only one tab plays it at a time.
If the full settings panel feels like a lot to open just to flip one or two things, the Quick Menu is a small floating panel that only shows the toggles, buttons, and dropdowns you pick yourself. Turn it on under General, then use the gear icon next to it to check off whichever items you want, including one-shot actions like manual sorting or scroll-to-top, and the auto-sort dropdown itself.
The panel can be dragged anywhere on screen and remembers where you left it. It fades to nearly transparent when you're not hovering it so it stays out of the way, and comes back to full visibility the moment you move your mouse over it. Dismissing it with the close button turns the whole feature off rather than just hiding it for a bit, and an "Open Settings" link at the bottom gets you back into the full menu whenever you need it.
A few 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. Prevent autoplay stops videos from starting on their own, so they only play when you press play. 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.
The download button is placed next to the fullscreen button, and also under the video between Share and Report. It downloads the video in the highest quality available as an MP4 and falls back to a lower quality if that one is not available. The progress is shown in the bottom left corner.
There's also an optional volume sync: when enabled, changing the volume or muting/unmuting in one tab carries over to your other tabs, instead of every tab keeping its own separate volume. Tabs on other subdomains get updated when you switch back to them.
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.