Skip Pornhub Interstitial

Instantly skip the interstitial and open the video directly

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Skip Pornhub Interstitial
// @namespace    local
// @version      1.0
// @description  Instantly skip the interstitial and open the video directly
// @match        https://www.pornhub.com/interstitial*
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    const url = new URL(window.location.href);

    // Get the viewkey from the interstitial URL
    const viewkey = url.searchParams.get('viewkey');

    if (!viewkey) return;

    // Build the direct video URL
    const directUrl =
        'https://www.pornhub.com/view_video.php?viewkey=' +
        encodeURIComponent(viewkey);

    // Redirect immediately
    window.location.replace(directUrl);
})();