I'm developing a small extension for Chrome. Among others, I want to scrape some text from the page I visit and store it to a variable. I am using jQuery. I have tried some solutions from other posts, but nothing seems to work.
<div id = "top-card" data-li-template="top_card" >
<div class="profile-top-card top-card " >
<div class="profile-card vcard">
<div class="profile-card vcard">
<div class="profile-card vcard">
.....
<div class="profile-card vcard">
<div id="profile-card vcard">
<div data-li-template="profile-card vcard">
<h1>
<span class="fn">
<span class="full-name" dir="auto">I WANT THIS TEXT</span>
My code so far is:
$('#personal_notes').click(function() {
chrome.tabs.query( {active: true}, function(tabs) {
var url = tabs[0].url;
var notes = document.getElementById('notes').value;
var name = $("body").find("full-name").text();
Any ideas or sources of info that I could use, are much appreciated. Thank you