I'm working on a Chrome Extension and I was essentially hoping to populate a <div>
tag in the popup with some Related Links, set up by taking some search results links from Google.com by using jQuery.load(search_url) to inject them into the <div>
.
I guess the first question would be to ask if Google has set up their page so you can't pull content from it (legality issues?). Otherwise, I'm pulling from the "r" class which contains one of the search results hyperlink. Here's the code:
$(document).ready(function(){$('#links').load("https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8#q=keyWords .r");});
(Keywords will eventually be replaced with the relevant keywords to search for).