Skip to content

Instantly share code, notes, and snippets.

@andersonvom
Created November 19, 2015 13:13
Show Gist options
  • Save andersonvom/f99e5cc08b6f4e221471 to your computer and use it in GitHub Desktop.
Save andersonvom/f99e5cc08b6f4e221471 to your computer and use it in GitHub Desktop.
Ignore slack image attachments
// ==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