☰

PornHub Auto Age Verification

Automatically accepts PornHub age verification.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         PornHub Auto Age Verification
// @namespace    https://pornhub.com/
// @version      1.1
// @description  Automatically accepts PornHub age verification.
// @author       nereids
// @license      MIT
// @icon         https://icons.duckduckgo.com/ip3/pornhub.com.ico
// @match        *://*.pornhub.com/*
// @run-at       document-start
// ==/UserScript==

(function () {
    'use strict';

    const COOKIE_NAME = 'accessAgeDisclaimerPH=2';

    if (!document.cookie.includes(COOKIE_NAME)) {

        document.cookie =
            'accessAgeDisclaimerPH=2; path=/; domain=.pornhub.com; expires=Fri, 31 Dec 2038 23:59:59 GMT';

        document.cookie =
            'accessAgeDisclaimerPH=2; path=/; expires=Fri, 31 Dec 2038 23:59:59 GMT';

        if (!sessionStorage.getItem('ph_age_reload')) {
            sessionStorage.setItem('ph_age_reload', '1');
            location.reload();
        }
    }
})();