Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hide Discord blocked messages with one line Javascript CSS injection.
(function() { var css = `div[class^="blockedSystemMessage"]{display: none !important; padding: 0 !important;}`; var cssDiv = document.createElement('div'); cssDiv.innerHTML = '&shy;<style>' + css + '</style>'; document.body.appendChild(cssDiv.childNodes[1]); })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.