Bergen-Boosten

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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
        });
    });
})();