Skip to content

Instantly share code, notes, and snippets.

@mrpatg
Created October 22, 2019 11:21
Show Gist options
  • Save mrpatg/6655dff346e10d30963cc0fa54b75248 to your computer and use it in GitHub Desktop.
Save mrpatg/6655dff346e10d30963cc0fa54b75248 to your computer and use it in GitHub Desktop.
Discord - Hide Blocked Message Bar
/*
Open Discord desktop app and press CTRL+SHIFT+I.
Paste this whole thing into the console and press enter.
This will need to be repeated each time Discord is started/restarted.
*/
(function hideBlocked() {
// This script already existed, but the class names in Discord have changed. I modified it to work again.
document.querySelectorAll('[class^=messageGroupBlocked]').forEach(div => div.setAttribute("style", "display: none;"));
// Adjust timeout accordingly. 500ms is plenty for me.
setTimeout(hideBlocked, 500);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment