最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

google chrome - How can I get the browser URL history using javascript? - Stack Overflow

programmeradmin0浏览0评论

I would like to get all the URL's of YouTube videos watched on a browser.This is used to populate an auto plete option.I researched on this topic, and none of them satisfactorily answered the question.I don't even know if it's possible.To be clear:When we type www.youtube, our browser shows a drop-down list of YouTube pages we have seen before.I want access to these URLs.How can I do this?

I would like to get all the URL's of YouTube videos watched on a browser.This is used to populate an auto plete option.I researched on this topic, and none of them satisfactorily answered the question.I don't even know if it's possible.To be clear:When we type www.youtube., our browser shows a drop-down list of YouTube pages we have seen before.I want access to these URLs.How can I do this?

Share Improve this question edited Apr 27, 2013 at 21:58 Aravind asked Apr 27, 2013 at 21:50 AravindAravind 3,1994 gold badges24 silver badges37 bronze badges 1
  • It's not possible - stackoverflow./questions/15205651/… – ljubiccica Commented Apr 27, 2013 at 22:04
Add a ment  | 

2 Answers 2

Reset to default 4

The YouTube API has a videos watched feed: http://apiblog.youtube./2012/01/watch-history-es-to-api.html

Edit: Theres a pretty good SO question on retrieving the users history:How do you access browser history?

You cannot read the browser's history using JavaScript code that runs in the context of a web page as it would be a security breach. You would not want to allow a site to know wich other sites you visited.

However, it might be possible if you are developing a browser extension that the user will install. Have a look at this for chrome http://developer.chrome./extensions/history.html

发布评论

评论列表(0)

  1. 暂无评论