Skip to content

Instantly share code, notes, and snippets.

@thunklife
Last active December 24, 2015 00:39
Show Gist options
  • Select an option

  • Save thunklife/6717929 to your computer and use it in GitHub Desktop.

Select an option

Save thunklife/6717929 to your computer and use it in GitHub Desktop.
Replaces the t.co URL in twitter links (twinks, get it?) with the expanded one because my work proxy blocks t.co
//Because I read twitter at work
//Because we have a proxy that blocks t.co but not twitter.com
//Because I have rewritten this from scratch more than once and not saved it
//I'm keeping this here.
//Paste into bookmarklet, run when I open twitter, be happy.
javascript:(function(){$(document).on("hover","a.twitter-timeline-link",null,function(){var $this = $(this), xUrl = $this.attr("data-expanded-url"); $this.attr("href", xUrl);});})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment