Why Nostr? What is Njump?
2023-02-28 22:05:00

gourcetools on Nostr: function hideMessages() { // Define the patterns to hide const patternsToHide = ...

function hideMessages() {
// Define the patterns to hide
const patternsToHide = ['lnurl', 'lnbc', 'chatgpt', 'web3', 'lottery', 'created', 'btc.com', 'walletofsatoshi.com'];

// Select all message boxes
const messageBoxes = document.querySelectorAll('.mbox');

// Iterate through the message boxes
messageBoxes.forEach((messageBox) => {
// Get the message text
const messageText = messageBox.innerText.toLowerCase();

// Check if the message contains any of the patterns to hide
const shouldHide = patternsToHide.some((pattern) => messageText.includes(pattern));

// Hide the message if it contains any of the patterns to hide
if (shouldHide) {
messageBox.style.display = 'none';
}
});
}

setInterval(hideMessages, 1000);
Author Public Key
npub1qqqqqhxytpngrtvw0a9h2sm0k7gykr35lurjhv6qdhdeqgnd064swghgx4