Porn Site Blocker

Blocks specific adult websites

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Porn Site Blocker
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Blocks specific adult websites
// @author       You
// @match        *://*/*
// @grant        none
// @run-at       document-start
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    
    const redirectUrl = 'https://www.bible.com';
    
    const blockedDomains = [
        'pornhub.com',
        'xvideos.com',
        'xnxx.com',
        'youporn.com',
        'redtube.com',
        'xhamster.com',
        'spankbang.com',
        'tube8.com',
        'brazzers.com',
        'onlyfans.com',
        'chaturbate.com',
        'livejasmin.com',
        'stripchat.com',
        'bongacams.com',
        'cam4.com',
        'myfreecams.com',
        'adultfriendfinder.com',
        'flirt4free.com',
        'pornhd.com',
        'pornmd.com',
        'youjizz.com',
        'thumbzilla.com',
        'eporner.com',
        'beeg.com',
        'porntrex.com',
        'pornone.com',
        'hclips.com',
        'porn.com',
        'tnaflix.com',
        'drtuber.com'
    ];

    const currentDomain = window.location.hostname.toLowerCase();
    
    for (let domain of blockedDomains) {
        if (currentDomain === domain || currentDomain.endsWith('.' + domain)) {
            window.location.replace(redirectUrl);
            break;
        }
    }
})();