Created
March 27, 2018 22:03
-
-
Save txj-xyz/62d34edeb3ea60781e76600ab632792e to your computer and use it in GitHub Desktop.
added user blocking support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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