Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access my entire browsing history via Javascript

Tags:

javascript

If i click on the history tab on my browser I can reach a folder with all of the links ive visited organized by date.

How can I access this programmatically with Javascript? I'm still new to Javascript but I want something like:

var aListOfDateLinkPairs = window.history.some_get_list_function;

I'm sure this is a big privacy issue for some arbitrary entity but what If I want to implement this (programmatically) for myself in my own browser?

Thanks!

like image 610
algorithmicCoder Avatar asked Nov 13 '12 22:11

algorithmicCoder


1 Answers

In general history is protected by the browser against javascript accessing it except through back and forward functionality. There are some hacks that can view some amount of history, but they are just that--hacks.

If you want to view/modify history programatically, you could do so via browser plugins. For example, Chrome plugins can use this API

EDIT

Mozilla also has some info about history modification available to Javascript here.

It also looks like this question talks about some of the same things you need.

like image 97
Indigenuity Avatar answered Oct 16 '22 23:10

Indigenuity