Skip to content

Instantly share code, notes, and snippets.

@jlewin
Last active December 12, 2015 08:49
Show Gist options
  • Select an option

  • Save jlewin/4746603 to your computer and use it in GitHub Desktop.

Select an option

Save jlewin/4746603 to your computer and use it in GitHub Desktop.
Filter Scholar Citation Results
var apa;
var results = document.querySelectorAll('.gs_citf');
for(var i = 0; i < results.length; i++) {
if(results[i].textContent == 'APA')
apa = results[i];
}
console.log(apa.nextSibling.querySelector('div').textContent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment