Skip to content

Pornhub - UI Cleaner, Customizer and Enhancer by gmiwoj

Screenshot of Pornhub - UI Cleaner, Customizer and Enhancer

Details

Authorgmiwoj

LicenseNo License

Categorypornhub.com

Created

Updated

Size13 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Pornhub UI cleaner, customizer and enhancer. Improved layout for full screen width. Cleaner, leaner, customizable UI. Set custom avatar without premium account.

Notes

This script was made and optimized for 1920 x 1080, i never tested it with other screens or resolutions, might need some more tweaking.

INSTRUCTION FOR SETTING CUSTOM AVATAR

-make your custom avatar, 40x40px, jpg or png (can have transparency)
-encode it to base64 code here: https://base64.guru/converter/encode/image/jpg
-set output format to Data URI
-add quotes
-your code64 should look like this, including quotes: "data:image/jpg;base64,LongStringOfRandomLetters="
-paste code64 into textfield in script control panel

note: in stylus textfield can never be empty or you'll get error for some reason.
no idea how to fix it, just remember to put any value if field is empty.
put default to set default placeholder avatar that comes with this script.

"Wide player offset fix" setting is a lazy fix that offsets player in wide mode to the right so you can manually center it on the screen. I wasn't able to make it automatically center itself. Resolution dependent, for 1920 offset should be 270.

Source code

Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link.
/* ==UserStyle==
@name           Pornhub.com - UI Cleaner, Customizer and Enhancer
@namespace      miwoj_pornhub_cleaner_customizer_enhancer
@version        1.1.3
@description    Customizable pornhub ui enhancer. Toggle and adjust ui elements with settings panel. Use full screen width with improved layout, toggle ui elements, enable cleaner, more ergonomic header with you very own custom avatar for free without pornhub premium. Hide comment section, recommended vids, related vids and playlists panel.
@author         miwoj

@preprocessor  	stylus


@var checkbox  setcleanheader     "ENABLE CLEAN HEADER" 1
@var checkbox  setcustomavatar    "Use Custom Avatar" 1
@var text      avatarbase64       "Custom avatar base64 code (instructions in script)" default

@var select label1 ". . . . . . . . . . . . . . . . . . . . . . " ["_"]

@var checkbox  setfullwidth       "ENABLE FULL SCREEN WIDTH" 1
@var number    adjustfullwidth    "Adjust width %" [95, 80, 110, 1, "%"]
@var range     wideplayeroffset   "Wide Player offset fix" [270, 0, 500, 1, "px"]

@var select label2 ". . . . . . . . . . . . . . . . . . . . . . " ["_"]

@var checkbox  hidecomments       "Hide Comment Section" 0
@var checkbox  hideplaylists      "Hide Playlists" 0
@var checkbox  hiderecommended    "Hide Recommended Videos" 0
@var checkbox  hiderelated        "Hide Related Videos" 0
@var checkbox  hideplaylists      "Hide Playlists" 0


==/UserStyle== */
@-moz-document regexp("(?=.*pornhub.com/.*).*")
{

    /* use full screen width */
    if (setfullwidth)
    {
        .container
        {
            max-width: adjustfullwidth !important;
            width: adjustfullwidth !important;
        }

        div.nf-videos
        {
            max-width: adjustfullwidth !important;
            width: adjustfullwidth !important;
        }


        /* lazy fix to offset wide player to center of the screen */
        /* adjust to your screen width. for 1920 default is 270 */
        #player.wide
        {
            position: relative !important;
            left: wideplayeroffset !important;
        }


        /* small adjustment to better fit wide player to screen, default set for 1920x1080 */
        /* might require tweaking on different monitors */
        #player.wide
        {
            margin-bottom: 84px;
            scale: 110%;
            top: 4.5vh;
            position: relative !important;
        }
    }




    /* Clean Header */
    if (setcleanheader)
    {

        /* hide useless menus and icons, clean layout */
        #header #headerMenuContainer,
        #countryRedirectMessage,
        #header .uploadBtnContent,
        #header #notificationIcons
        {
            display: none !important;
        }

        #header
        {
            height: 70px !important;
            border-bottom: none;
        }

        #header #headerContainer
        {
            max-width: 96% !important;
        }

        #header #headerWrapper
        {
            height: 60px !important;
        }

        #desktopNavigation
        {
            position: relative !important;
            top: 23px !important;
        }


        /* logo */
        #header #headerWrapper #headerContainer .logo .logoWrapper a img
        {
            width: 91px !important;
            height: 20px !important;
            opacity: 0.75 !important
        }

        #header #headerWrapper #headerContainer .logo .logoWrapper
        {
            left: -26px;
        }


        #desktopNavigation
        {
            top: 0px !important;
        }

        #desktopNavigation .hamburgerIcon
        {
            opacity: 0.2 !important;
            padding-left: 10px !important;
            color: #ffffff !important;
        }

        #welcome
        {
            display: none !important;
        }



        /* hide network bar on top, leave language selector visible */
        .networkBarWrapper
        {
            visibility: hidden;
            height: 0px;
            min-height: 0px;
        }

        .networkBarWrapper #js-networkBar
        {

            max-width: 96% !important;
        }


        .networkBarWrapper #js-networkBar .networkListContent
        {
            width: 100% !important;
        }

        .languageDropdown
        {
            visibility: visible;
            z-index: 999;
            float: right !important;
            margin-right: 70px;
            margin-top: 10px;
        }

        /* profile icon location */
        #header #topRightProfileMenu
        {
            width: 60px !important;
        }



        /* CUSTOM AVATAR */
        /* Instruction:
           -make custom avatar 40x40px, jpg or png (can have transparency)
           -encode it to base64 code here: https://base64.guru/converter/encode/image/jpg
           -set output format to Data URI 
           -add quotes
           -your code64 should look like this:  "data:image/jpg;base64,LongStringOfRandomLetters="
           -paste code into text field in script control panel 
             
            note: stylus textfield can't empty or you'll get error for some reason. 
            needs any value if empty.
            type "default" to set default batman avatar from this script

        */
        if (setcustomavatar)
        {

            .smallAvatar
            {
                visibility: hidden;
            }

            /* set custom avatar pasted into textfield in stylus script setting control panel */
            if (avatarbase64!=default && avatarbase64!="default")
            {
                #profileMenuWrapper .dropdownTrigger
                {
                    background-size: 32px;
                    background-repeat: no-repeat;
                    background-position: center center;

                    background-image: url(avatarbase64);
                }
            }

            /* set default batman avatar from this script if custom avatar is enabled but set to "default" */
            if (avatarbase64==default || avatarbase64=="default")
            {

                #profileMenuWrapper .dropdownTrigger
                {
                    background-size: 32px;
                    background-repeat: no-repeat;
                    background-position: center center;

                    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAydpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlID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