Pornhub BlackList

pornhub blacklist

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

You will need to install an extension such as Tampermonkey 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         Pornhub BlackList
// @namespace    http://tampermonkey.net/
// @version      2025-8-3
// @description pornhub blacklist
// @author       You
// @match        https://www.pornhub.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=pornhub.com
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    const titleBlackList = [
    "example"
];

    const creatorBlackList = [
    "example"
    ];

    const hideWatched = false;

    const arr = document.querySelectorAll(".thumbnailTitle");

    arr.forEach((div) => {
        let title = div.title.toLowerCase();
        if(title) {
            if (titleBlackList.some(word => title.includes(word.toLowerCase() ))) {
                div.parentNode.parentNode.parentNode.parentNode.parentNode.remove();
                return;
            }
        }

        let title2 = div.textContent.toLowerCase();
        if(title2) {
            if (titleBlackList.some(word => title2.includes(word.toLowerCase() ))) {
                div.parentNode.parentNode.parentNode.parentNode.parentNode.remove();
                }
        }
    })

    const arr2 = document.querySelectorAll(".usernameWrapper .usernameWrap a");

    arr2.forEach((div2) => {
        let creator = div2.text.toLowerCase();

        if (creator) {
            if(creatorBlackList.some(word => creator.includes(word.toLowerCase()))){
                div2.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.remove()
            }
        }
    })

    const arr3 = document.querySelectorAll(".uploaderLink");

    arr3.forEach((div3) => {
        let creator = div3.text.toLowerCase();

        if (creator) {
            if(creatorBlackList.some(word => creator.includes(word.toLowerCase()))){
                div3.parentNode.parentNode.parentNode.parentNode.parentNode.remove()
            }
        }
    })

    if (hideWatched) {
        const arr4 = document.querySelectorAll(".js-watchedVideoOverlay");
        arr4.forEach((div4) => {
            div4.parentNode.parentNode.parentNode.parentNode.remove();
        })

        const arr5 = document.querySelectorAll(".watchedVideo");
        arr5.forEach((div4) => {
            div4.parentNode.parentNode.parentNode.parentNode.parentNode.remove();
        })
    }

})();