Bergen-Boosten

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

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