Skip to content

Instantly share code, notes, and snippets.

@ollieglass
Created December 10, 2013 11:14
Show Gist options
  • Save ollieglass/7889082 to your computer and use it in GitHub Desktop.
Save ollieglass/7889082 to your computer and use it in GitHub Desktop.
Twitter search summary. 1. search Twitter for something 2. dismiss the promoted Tweet 3. scroll down, and keep scrolling until you've loaded all the tweets 4. open your JavaScript console (alt + cmd + I in Chrome) 5. paste the code below into the console, press enter to run 6. voila. A summary appears at the top of the search results
$(".header-inner").append(
"<h2>Who's shared your links?</h2>"
+ $.map($(".details"), function (x) { return('<a href="' + $(x).attr('href') + '>@' + $(x).attr('href').split("/")[1] + '</a>') } ).join("<br>")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment