Sleazy Fork is available in English.

Block Pornography

Automatically redirects you from sites where it is mentioned.

Від 11.07.2022. Дивіться остання версія.

// ==UserScript==
// @name Block Pornography
// @namespace -
// @version 2.0.1
// @description Automatically redirects you from sites where it is mentioned.
// @author NotYou
// @include *
// @exclude *stackoverflow.com/*
// @exclude *greasyfork.org/*
// @run-at document-body
// @license GPL-3.0-or-later
// @grant none
// ==/UserScript==

var list = [
    'porno', 'pornografi', 'pornografie', 'pornographie', 'pornografia', 'порно', // Global
    'porn', 'pornography', 'p@rn', 'p0rn', 'p*rn', // English
    'pornografía', // Spanish
    'pornogrāfija', // Latvian
    'pornoqrafiya', // Azerbaijani
    'pornografi', // Danish
    'pornografio', // Esperanto
    'pornograafia', // Estonian
    'pornografiaa', // Finnish
    'pornograpiya', // Filipino
    'pornografiya', // Uzbek
    'πορνογραφία', // Greek
    'ngono', 'ponografia', // Swahili
    'porr', // Swedish
    'pornô', // Portuguese
    'zolaula', // Chichewa
    'ポルノ', // Japanase
    'A片', '色情', // Chinese
    'الإباحية', 'المواد الإباحية', // Arabic
    'فحش', 'فحش نگاری', // Urdu
    'โป๊', 'ภาพอนาจาร', // Thai
    'पॉर्न', 'कामोद्दीपक चित्र', // Hindi
    'अश्लील', 'अश्लील साहित्य', // Nepali
    'порнография', // Russian
    'порнографія', // Ukrainian
    'порна', 'парнаграфія', // Belarusian
    'порнограф', // Mongolian
    'порнографија' // Serbian
]

for (var i = 0; i < list.length; i++) {
    var e = list[i]
    if(document.title.toLowerCase().indexOf(e) != -1 || document.body.textContent.toLowerCase().indexOf(` ${e} `) != -1) {
        if(window.stop) { window.stop() }
        redirect()
    }
}

if(location.href == 'https://httpstat.us/503') { document.title = '503 Service Unavailable' }

function redirect() {
    document.title = '503 Service Unavailable'
    if(document.querySelector('[rel="shortcut icon"]')) { document.querySelector('[rel="shortcut icon"]').remove() }
    window.location.href = 'https://httpstat.us/503'
}