通过Javascript访问我的整个浏览历史记录 [英] Access my entire browsing history via Javascript

查看:169
本文介绍了通过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.

如何以编程方式访问此文件夹用Javascript?我还是Javascript的新手,但我想要这样的东西:

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?

谢谢!

推荐答案

一般来说,历史记录受浏览器保护,不受javascript访问,除非通过后退和前进功能。 一些黑客可以查看一些历史,但它们只是 - 黑客。

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.

如果你想以编程方式查看/修改历史记录,你可以通过浏览器插件来实现。例如,Chrome插件可以使用此API

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

编辑

Mozilla也有一些关于Javascript的历史修改的信息这里

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.

这篇关于通过Javascript访问我的整个浏览历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆