Code:
history.find = function(url) {
    url = url.trim();
    if (!url.substr(8, url.length - 8).contains('/')) {
        url += '/';
    }
    var sandbox = document.createElement('div');
    randomtoken = 'a' + $time() + $random(100, 999);
    sandbox.setAttribute('id', randomtoken);
    sandbox.style.display = 'none';
    $$('body')[0].appendChild(sandbox);
    if (document.styleSheets[0].insertRule) {
        var ruleIndex = document.styleSheets[0].cssRules.length;
        document.styleSheets[0].insertRule("#" + randomtoken + " a:visited { color:rgb(255, 220, 255) }", ruleIndex);
    } else if (document.styleSheets[0].addRule) {
        var ruleIndex = document.styleSheets[0].rules.length;
        document.styleSheets[0].addRule("#" + randomtoken + " a:visited", "color:rgb(255, 220, 255)", ruleIndex);
    }
    ret = 0;
    var searchLink = document.createElement('a');
    searchLink.setAttribute('href', url);
    searchLink.innerHTML = randomtoken;
    $(randomtoken).appendChild(searchLink);
    if (searchLink.currentStyle) {
        var searchLinkColor = searchLink.currentStyle['color'];
    } else if (window.getComputedStyle) {
        var searchLinkColor = document.defaultView.getComputedStyle(searchLink, null).getPropertyValue('color');
    }
    var linkColor = searchLinkColor.toString();
    if (linkColor == 'rgb(255, 220, 255)' || linkColor == 'rgb(255,220,255)' || linkColor == '#ffdcff') {
        ret = 1;
    }
    $(randomtoken).remove();
    return ret;
}
Just a little code that tell you what history you have in your browser etc.
To get it to save stuff and etc you'll probably need ajax.
Nothing big, Thanks to Puh