Skip to content

Instantly share code, notes, and snippets.

@txj-xyz
Created March 27, 2018 22:03
Show Gist options
  • Save txj-xyz/62d34edeb3ea60781e76600ab632792e to your computer and use it in GitHub Desktop.
Save txj-xyz/62d34edeb3ea60781e76600ab632792e to your computer and use it in GitHub Desktop.
added user blocking support
'use strict';
(function() {
var styleOverrides = [
// remove blocked users messages automagically.
".message-group-blocked { display:none; }"
];
var style = document.getElementsByClassName("guildlistOverrideStyle")[0];
if (!style) {
style = document.createElement("style");
style.className = "guildlistOverrideStyle";
document.head.appendChild(style);
}
[].slice.apply(style.sheet.rules || []).forEach(r => style.sheet.removeRule(r));
styleOverrides.forEach(s => style.sheet.insertRule(s, 0));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment