Bergen-Boosten

Enlever les couleurs des cucks boostés et les effets de gradient sur les topics

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Bergen-Boosten
// @description  Enlever les couleurs des cucks boostés et les effets de gradient sur les topics
// @author       @1598761-boristhemilk
// @version      1.1
// @match        *://onche.org/*
// @grant        GM_addStyle
// @run-at       document-start
// @namespace https://greasyfork.org/users/1598761
// ==/UserScript==

(function() {
    'use strict';

    GM_addStyle(`
        /* Suppresion des couleurs de boostix */
        .pseudo[class*="pseudo--color"],
        .pseudo[style] {
            -webkit-text-fill-color: initial !important;
            background: none !important;
            background-image: none !important;
            -webkit-background-clip: initial !important;
            color: inherit !important;
        }

        /* Suppression du dégradé immonde rajouté par claude */
        body.forum .topics .topic.hot:before,
        body.forum .topics .topic.hot:after {
            display: none !important;
            content: none !important;
        }

        body.forum .topics .topic.recently-pinned:before,
        body.forum .topics .topic.recently-pinned:after {
            display: none !important;
            content: none !important;
            animation: none !important;
        }
    `);

    // Backup
    document.addEventListener('DOMContentLoaded', () => {
        const clean = () => {
            document.querySelectorAll('.pseudo').forEach(el => {
                el.classList.forEach(c => {
                    if (/^pseudo--color[1-8]$/.test(c)) {
                        el.classList.remove(c);
                    }
                });
                el.style.removeProperty('color');
                el.style.removeProperty('-webkit-text-fill-color');
                el.style.removeProperty('background');
                el.style.removeProperty('background-image');
                el.style.removeProperty('-webkit-background-clip');
            });
        };

        clean();
        new MutationObserver(clean).observe(document.body, {
            childList: true,
            subtree: true
        });
    });
})();