Skip to content

Instantly share code, notes, and snippets.

@stinoga
Last active August 29, 2015 13:57
Show Gist options
  • Save stinoga/9773870 to your computer and use it in GitHub Desktop.
Save stinoga/9773870 to your computer and use it in GitHub Desktop.
Get Titles on the Page (jQuery)
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict();
var array = []
$(".title > a").each(function() {
array.push($(this).text());
});
console.log(array);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment