Created
November 19, 2015 13:13
-
-
Save andersonvom/f99e5cc08b6f4e221471 to your computer and use it in GitHub Desktop.
Ignore slack image attachments
This file contains 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
// ==UserScript== | |
// @name Hide Slack.com image attachments | |
// @namespace https://gist.github.com/andersonvom/f99e5cc08b6f4e221471 | |
// @version 0.0.1 | |
// @description Ignore slack.com image attachments, but still leaves the original link | |
// @author andersonvom | |
// @match https://*.slack.com/* | |
// @grant none | |
// ==/UserScript== | |
if(document.body) { | |
$("#msgs_div").on('DOMSubtreeModified propertychange', function() { | |
var attachments = $(".message_body .inline_attachment .msg_inline_img_holder"); | |
attachments.hide(); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment