﻿var SocialHistory = function(I) { var O = { Digg: ["http://digg.com", "http://digg.com/login"], Reddit: ["http://reddit.com", "http://reddit.com/new/", "http://reddit.com/controversial/", "http://reddit.com/top/", "http://reddit.com/r/reddit.com/", "http://reddit.com/r/programming/"], StumbleUpon: ["http://stumbleupon.com"], "Yahoo Buzz": ["http://buzz.yahoo.com"], Facebook: ["http://facebook.com/home.php", "http://facebook.com", "https://login.facebook.com/login.php"], "Del.icio.us": ["https://secure.del.icio.us/login", "http://del.icio.us/"], MySpace: ["http://www.myspace.com/"], Technorati: ["http://www.technorati.com"], Newsvine: ["https://www.newsvine.com", "https://www.newsvine.com/_tools/user/login"], Songza: ["http://songza.com"], Slashdot: ["http://slashdot.org/"], "Ma.gnolia": ["http://ma.gnolia.com/"], Blinklist: ["http://www.blinklist.com"], Furl: ["http://furl.net", "http://furl.net/members/login"], "Mister Wong": ["http://www.mister-wong.com"], Current: ["http://current.com", "http://current.com/login.html"], Menaeme: ["http://meneame.net", "http://meneame.net/login.php"], Oknotizie: ["http://oknotizie.alice.it", "http://oknotizie.alice.it/login.html.php"], Diigo: ["http://www.diigo.com/", "https://secure.diigo.com/sign-in"], Funp: ["http://funp.com", "http://funp.com/account/loginpage.php"], Blogmarks: ["http://blogmarks.net"], "Yahoo Bookmarks": ["http://bookmarks.yahoo.com"], Xanga: ["http://xanga.com"], Blogger: ["http://blogger.com"], "Last.fm": ["http://www.last.fm/", "https://www.last.fm/login/"], N4G: ["http://www.n4g.com"], Faves: ["http://faves.com", "http://faves.com/home", "https://secure.faves.com/signIn"], Simpy: ["http://www.simpy.com", "http://www.simpy.com/login"], Yigg: ["http://www.yigg.de"], Kirtsy: ["http://www.kirtsy.com", "http://www.kirtsy.com/login.php"], Fark: ["http://www.fark.com", "http://cgi.fark.com/cgi/fark/users.pl?self=1"], Mixx: ["https://www.mixx.com/login/dual", "http://www.mixx.com"], "Google Bookmarks": ["http://www.google.com/bookmarks", "http://www.google.com/ig/add?moduleurl=bookmarks.xml&hl=en"], Subbmitt: ["http://subbmitt.com/"] }; for (var A in I) { if (typeof (O[A]) == "undefined") { O[A] = [] } if (typeof (I[A]) == "string") { O[A].push(I[A]) } else { O[A] = O[A].concat(I[A]) } } var L = {}; function M(T, S, R) { if (T.currentStyle) { var U = T.currentStyle[R] } else { if (window.getComputedStyle) { var U = S.defaultView.getComputedStyle(T, null).getPropertyValue(R) } } return U } function J(R) { R.parentNode.removeChild(R) } function P() { var R = document.createElement("iframe"); R.style.position = "absolute"; R.style.visibility = "hidden"; document.body.appendChild(R); if (R.contentDocument) { R.doc = R.contentDocument } else { if (R.contentWindow) { R.doc = R.contentWindow.document } } R.doc.open(); R.doc.write("<style>"); R.doc.write("a{color: #000000; display:none;}"); R.doc.write("a:visited {color: #FF0000; display:inline;}"); R.doc.write("</style>"); R.doc.close(); return R } var G = P(); function C(S, T) { var R = G.doc.createElement("a"); R.href = S; R.innerHTML = A; G.doc.body.appendChild(R) } for (var A in O) { var N = O[A]; for (var H = 0; H < N.length; H++) { C(N[H], A); if (N[H].match(/www\./)) { var E = N[H].replace(/www\./, ""); C(E, A) } else { var D = N[H].indexOf("//") + 2; var F = N[H].substring(0, D) + "www." + N[H].substring(D); C(F, A) } } } var Q = G.doc.body.childNodes; for (var H = 0; H < Q.length; H++) { var K = M(Q[H], G.doc, "display"); var B = K != "none"; if (B) { L[Q[H].innerHTML] = true } } J(G); return new (function() { var R = []; for (var S in L) { R.push(S) } this.visitedSites = function() { return R }; this.doesVisit = function(U) { if (typeof (O[U]) == "undefined") { return -1 } return typeof (L[U]) != "undefined" }; var T = []; for (var S in O) { T.push(S) } this.checkedSites = function() { return T } })() };

