Created
December 12, 2014 23:57
-
-
Save techieshark/e03ea4c50d538a59d651 to your computer and use it in GitHub Desktop.
get-all-twitter-links
This file contains 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 characters
// 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