Porn Sites Blocker Beta

block porn sites!

Versione datata 22/12/2023. Vedi la nuova versione l'ultima versione.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo 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         Porn Sites Blocker Beta
// @namespace    http://tampermonkey.net/
// @version      0.2.1
// @description  block porn sites!
// @license      GNU GPLv3
// @author       Yusuf Sameh
// @match        https://greasyfork.org/en/scripts?q=porn+blocker
// @icon         https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant        none
// @include https://*.pornhub.com/*
// @include https://*.xhamster.com/*
// @include https://*.xvideos.com/*
// @include https://*.thegay.com/*
// @include https://*.gay.bingo/*
// @include https://*.thisvid.com/*
// @include https://*.youporn.com/*
// @include https://*.stripchat.com/*
// @include      *pornhub*
// @include      *dick*
// @include      *pussy*
// @include      *cum*
// @include      *nude*
// @include      *nudity*
// @include      *ome*
// @include      *porn*
// @include      *houseparty*
// @include      *sex*
// @include      *gay*
// @include      *feet*
// @include      *male slave*
// @include      *telonym*
// @include      *kik*
// @include      *rule34*
// @include      *xhamster*
// @include      *yolo*
// @include      *fuck*
// @include      *suck*
// @include      *tinder*
// @include      *periscope*
// @include      *ask.fm*
// @include      *4chan*
// @include      *8chan*
// @include      *chatroulette*
// @include      *youporn*
// @include      *hentai*
// @include      *daddy*
// @include      *xx*
// @run-at document-start
// @namespace https://greasyfork.org/users/12417
// ==/UserScript==

function block() // Function will block the website.
{
    var current = window.location.href;
    window.history.back(); // Attempt to go back (if it's opened in a tab with no tab history)
    if (window.location.href == current) // If it's still there
    {
        window.close(); // Attempt to close page
        if (window.location.href == current) // If it's still there (if it's the only tab)
        {
            window.location.href = "about://newtab"; // Go to a new tab; always works!
        }
    }
}
// ==/UserScript==

(function() {
    'use strict';
    block();
    // Your code here...
})();