Enlever les couleurs des cucks boostés et les effets de gradient sur les topics
// ==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
});
});
})();