Skip to content

Instantly share code, notes, and snippets.

@KoenRijpstra
Last active August 29, 2015 14:05
Show Gist options
  • Save KoenRijpstra/55b6db2c4922216d7e64 to your computer and use it in GitHub Desktop.
Save KoenRijpstra/55b6db2c4922216d7e64 to your computer and use it in GitHub Desktop.
Copy Google results to clipboard
var results = document.querySelectorAll('#res li h3 a');
var results_body = '';
for(i=0;i < results.length;i++) {
results_body += '"' + results[i].innerHTML + '","' + results[i].href + '"\n';
}
copy(results_body);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment