Bergen-Boosten

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

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey, Greasemonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Userscripts.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een gebruikersscriptbeheerder nodig.

(Ik heb al een user script manager, laat me het downloaden!)

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

(Ik heb al een beheerder - laat me doorgaan met de installatie!)

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