Internet Guardian

Block NSFW and other 18+ content.

目前為 2024-01-03 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Internet Guardian
// @namespace    http://tampermonkey.net/
// @version      6.2
// @description  Block NSFW and other 18+ content.
// @author       Zachary Kosove
// @match        *://*/*
// @grant        none
// @run-at       document-start
// @icon         https://icons.iconarchive.com/icons/graphicloads/folded/256/unlock-folded-icon.png
// ==/UserScript==

const keywords = [
    'sex',
    'cock',
    'dick',
    'fuck',
    'gore',
    'nude',
    'orgy',
    'porn',
    'tits',
    'xnxx',
    'boobs',
    'naked',
    'penis',
    'pussy',
    'hanime',
    'hentai',
    'rule34',
    'vagina',
    'blowjob',
    'breasts',
    'handjob',
    'xvideos'
];
const url = window.location.href.toLowerCase();

// Replace URL
if (keywords.some(keyword => url.includes(keyword))) {
    location.replace("https://www.google.com/?safe=on");
}

// Enable safe-search
else if (url.startswith("https://www.google.com/search?") && !url.includes("safe=on")) {
    window.location.href += "&safe=on";
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址