您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Block all NSFW websites, including known ones without NSFW keywords in the URL
// ==UserScript== // @name Block NSFW Websites (Including Known Sites) // @namespace http://tampermonkey.net/ // @version 0.1 // @description Block all NSFW websites, including known ones without NSFW keywords in the URL // @author slidex // @match *://*/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const nsfwKeywords = [ 'porn', 'xxx', 'sex', 'adult', 'nsfw', 'fetish', 'hentai', 'erotic', 'cam', 'escort', 'babe', 'gay', 'lesbian', 'masturbation', 'sexchat', 'nude', 'video', 'naked', 'strip', 'bdsm', 'tits', 'ass', 'pussy', 'penis', 'cougar', 'sexting', 'dating', 'xxxvideos' ]; const knownNSFWSites = [ 'onlyfans.com', 'baddiehub.com', 'chaturbate.com', 'pornhub.com', 'xvideos.com', 'redtube.com', 'xhamster.com', 'tubegalore.com', 'femdom.com', 'livejasmin.com', 'sex.com', 'adultfriendfinder.com' ]; const currentUrl = window.location.href.toLowerCase(); const isNSFWKeyword = nsfwKeywords.some(keyword => currentUrl.includes(keyword)); const isKnownNSFWSite = knownNSFWSites.some(site => currentUrl.includes(site)); if (isNSFWKeyword || isKnownNSFWSite) { window.location.href = 'https://asdasdasdassdasdasdads.netlify.app/'; } })();