Created
November 19, 2015 13:13
-
-
Save andersonvom/f99e5cc08b6f4e221471 to your computer and use it in GitHub Desktop.
Revisions
-
andersonvom revised this gist
Nov 19, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ // ==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 -
andersonvom created this gist
Nov 19, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ // ==UserScript== // @name Hide Slack.com image attachments // @namespace https://gist.github.com/andersonvom/ // @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(); }); };