DC Sensitive Keyword Blocker

모바일 DC에서 민감 키워드 포함 게시글 차단

目前為 2025-11-17 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         DC Sensitive Keyword Blocker
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  모바일 DC에서 민감 키워드 포함 게시글 차단
// @match        *://m.dcinside.com/*
// @run-at       document-idle
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    // 차단할 민감 키워드
    const blockKeywords = [
        '데뷔 전 영상',
        '벗방',
        '꼭노',
        '기 룡이',
        '틱 톡녀'
    ];

    function blockPosts() {
        const posts = document.querySelectorAll('li'); // 모바일 게시글 목록 li 기준
        posts.forEach(post => {
            const text = post.innerText;
            if (blockKeywords.some(keyword => text.includes(keyword))) {
                post.style.display = 'none';
            }
        });
    }

    // DOM 변경 감지해서 동적 게시글도 차단
    const observer = new MutationObserver(blockPosts);
    observer.observe(document.body, { childList: true, subtree: true });

    // 초기 차단
    blockPosts();
})();