Bergen-Boosten

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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
        });
    });
})();