Kumar Gaurav
Kumar Gaurav

Reputation: 1317

reading google search history using javascript

I don't know whether this is possible or not.

I want to make a web app which will produce content based on the Google searches done by the user. I am using Google+ login for my Web APp. I know google saves the search done by users. Is there any way to fetch them using javascript?

Upvotes: 1

Views: 1474

Answers (1)

Shobhit
Shobhit

Reputation: 1116

This could help you..http://www.dicabrio.com/javascript/steal-history.php

And if you want to access the URLs of recently visited tabs using chrome.history API: Pass an empty string as your query to the search() method of the chrome.history API. For example, this will log most recently visited URLs to the console:

chrome.history.search({text: '', maxResults: 10}, function(data) {
    data.forEach(function(page) {
        console.log(page.url);
    });
});

Upvotes: 1

Related Questions