sometimes it feels like I'm not sitting in a bitcoin forum, but on a gambling forum.
if someone needs to hide casino-related signatures, enjoy. now I'm adding a hide on personal text related to gambling.
if you want to hide something else, just add keywords
// ==UserScript==
// @namespace https://bitcointalk.org/
// @ver 1.0
// @description hiding gambling signatures
// @author rollin
// @match https://bitcointalk.org/*
// ==/UserScript==
(function() {
'use strict';
// keywords for hide signatures
const gamblingKeywords = [
'casino', 'bet', 'gambling', 'poker', 'slots', 'stake', '1xbit',
'wager', 'bonus', 'free spins', 'sportsbook', 'betting', 'jackpot',
'duelbits'
];
function hideGamblingSignatures() {
document.querySelectorAll('.signature').forEach(sig => {
const sigText = sig.innerText.toLowerCase();
if (gamblingKeywords.some(keyword => sigText.includes(keyword))) {
sig.style.display = 'none';
}
});
}
hideGamblingSignatures();
const observer = new MutationObserver(hideGamblingSignatures);
observer.observe(document.body, { childList: true, subtree: true });
})();