Post
Topic
Board Project Development
Merits 2 from 1 user
Topic OP
Hiding gambling signatures
by
rollinsweet
on 03/02/2025, 12:23:42 UTC
⭐ Merited by ABCbits (2)
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


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

})();