Fucktimebest

실베 보기 좆같아서 만든 스크립트

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Fucktimebest
// @namespace    http://dcinside.com
// @version      0.1
// @description  실베 보기 좆같아서 만든 스크립트
// @author       jwh0711
// @match        https://gall.dcinside.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function removeElements() {
        const selectors = [
            "div.content_box.r_timebest",
            "div.content_box.r_dcmedia",
            "div.content_box.r_recommend"
        ];

        selectors.forEach(selector => {
            const elements = document.querySelectorAll(selector);
            elements.forEach(element => element.remove());
        });
    }

    // 페이지 로드 후 실행
    window.addEventListener('load', removeElements);

    // 동적으로 생성되는 요소들을 위해 MutationObserver 사용 (선택적)
    const observer = new MutationObserver(removeElements);
    observer.observe(document.body, { childList: true, subtree: true });
})();