Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Results 1 to 3 of 3
  1. #1
    Succy
    Guest

    History Saver Script


    Register to remove this ad
    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

  2. #2
    Founder
    Apple's Avatar
    Join Date
    Jul 2008
    Location
    HeaveN
    Posts
    15,918
    Rep Power
    10
    Reputation
    295
    Nice , Thanks for sharing & keep contributing : P





  3. #3
    Contributor
    StickyIcky's Avatar
    Join Date
    Jul 2008
    Location
    127.0.0.1
    Posts
    747
    Rep Power
    20
    Reputation
    188

    Register to remove this ad
    man
    very nice

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 08:17 AM.
Powered by vBulletin® Copyright ©2000-2026, Jelsoft Enterprises Ltd.
vBulletin Licensed to: MMOPro.org
vBulletin Skin By: PurevB.com