🏠 Home 

Get lost gif emojis!

Remove gif emojis from slack


Install this script?
  1. // ==UserScript==
  2. // @name Get lost gif emojis!
  3. // @namespace https://xd.cm/
  4. // @version 0.0.2
  5. // @description Remove gif emojis from slack
  6. // @author Alex Nordlund
  7. // @match https://*.slack.com/*
  8. // @grant none
  9. // ==/UserScript==
  10. /* jshint -W097 */
  11. 'use strict';
  12. $(function($) {
  13. // On page load
  14. $("#msgs_div").find(".emoji").filter(
  15. function() { return $(this).css('background-image').endsWith('.gif")')}
  16. ).css('display', 'none');
  17. // When new post is added
  18. $("#msgs_div").on('DOMSubtreeModified propertychange', function() {
  19. $("#msgs_div").find(".emoji").filter(
  20. function() { return $(this).css('background-image').endsWith('.gif")')}
  21. ).css('display', 'none');
  22. });
  23. });