Skip to content

Instantly share code, notes, and snippets.

@matthewfranglen
Created May 13, 2015 18:37
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save matthewfranglen/a41b7b1248e3dabd41d8 to your computer and use it in GitHub Desktop.
Remove slack-redir.net from slack links
javascript:void($('a[href][onmouseover][onmousedown]').each(function(){$(this).removeAttr('onmouseover').removeAttr('onmousedown');href=$(this).attr('href');$(this).attr('href',decodeURIComponent(href.replace('https://slack-redir.net/link?url=','')));}))
@bw-matthew
Copy link

javascript:void($('a[href][onmouseover][onclick]').each(function(){$(this).removeAttr('onmouseover').removeAttr('onclick');href=$(this).attr('href');$(this).attr('href',decodeURIComponent(href.replace('https://slack-redir.net/link?url=','')));}))

@bw-matthew
Copy link

This should be made more generic by searching for event handling attributes on links and removing them.

@jdanyow
Copy link

jdanyow commented Dec 12, 2015

built a chrome extension to eliminate the trip to slack-redir: https://github.com/jdanyow/slack-direct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment