Skip to content

Instantly share code, notes, and snippets.

@techieshark
Created December 12, 2014 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techieshark/e03ea4c50d538a59d651 to your computer and use it in GitHub Desktop.
Save techieshark/e03ea4c50d538a59d651 to your computer and use it in GitHub Desktop.
get-all-twitter-links
// first make sure jQuery and Lo-Dash are in the browser by running https://gist.github.com/techieshark/45d6f183f80835757336
var links = _.map($('a'), function(a) { return $(a).attr('href')});
var twitters = _.filter(links, function(l) { return l && l.match(/twitter/) });
twitters.join('\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment