Hello,
i know, that in the past it was possible to read out the Browser history with a simple javascript like this:
But this Code doese not work anymore.
Have someone of you an idea / solution to read out the Browser History?
i know, that in the past it was possible to read out the Browser history with a simple javascript like this:
Code:
//when the page is ready
$(document).ready(function() {
//the list of domains to check and an array which will store hits
var domains = ['list','of','domains'];
var visited = [];
//for every domain...
$.each(domains,function() {
//inject a link into page
var a = $('<a></a>').attr({
href: 'h.t.t-.p://' + this,
'class': 'checkme'
}).appendTo(document.body);
//check the color of the link
alert($(a).css('color'));
if($(a).css('color') == '#ff0000' || $(a).css('color') == 'rgb(255, 0, 0)') { //either format of color
alert('lol');
$(a).addClass('highlight');
visited.push(this);
}
//remove from the page -- no longer need the links
a.remove();
});
if(visited.length) {
//save via ajax! shady!
//display items on the page based on "hits"
}
});
But this Code doese not work anymore.
Have someone of you an idea / solution to read out the Browser History?