Anbu Creations
Variable
CSS
Wednesday, 30 July 2014
Multi Tool - Check Your Groups | Apps | Pages | friends
Drag and drop The Bookmarklet below into Your Browser Bookmark Bar.
Multi Tool - Check Your Groups-Apps-Pages-friends
A bookmarklet is a bookmark stored in a web browser that contains JavaScript commands to extend the browser's functionality.
en.wikipedia.org/wiki/Bookmarklet
The Source Code
javascript:javascript:void(function() { window.aing = { sty: " style=\"background-color:rgba(255,255,255,0.5);margin-bottom:1px;border-radius:1px;color:gray;font-size:8px", styin: " type=\"text\" readonly onClick=\"this.select()\" style=\"width:80px;background-color:transparent;border:none;padding:0;color:green;font-size:8px;cursor:pointer\"", loding: { img: "<img src=\"//fbstatic-a.akamaihd.net/rsrc.php/v2/yb/r/GsNJNwuI-UM.gif\" width=\"16px\" height=\"11px\" style=\"margin:0 5px;vertical-align:bottom\"/>" }, aduk: function(a) { var b = a.length, c, d; while (0 !== b) { d = Math.floor(Math.random() * b); b -= 1; c = a[b]; a[b] = a[d]; a[d] = c } return a }, sisipin: function(isi, dimana, sebelum) { if (dimana) { var a = document.createElement("div"); a.innerHTML = isi; if (sebelum == null || sebelum == "") { sebelum = dimana.firstChild } while (a.firstChild) { dimana.insertBefore(a.firstChild, sebelum) } } }, masukin: function(isi, di) { if (di) { var a = document.createElement("div"); a.innerHTML = isi; while (a.firstChild) { di.appendChild(a.firstChild) } } }, kasihTau: function(isi, elementId) { var c = document.getElementById("aingcreations"); if (c) { if (elementId == null || elementId == "") { c.innerHTML = isi } else { var d = document.getElementById(elementId); if (d) { d.innerHTML = isi } else { aing.masukin("<div id=\"" + elementId + "\">" + isi + "</div>", c) } } } else { aing.masukin("<div id=\"aingcreations\" class=\"pam uiBoxGray\" style=\"text-align:center;border-radius:5px;width:500px;position:fixed;z-index:9999;top:25%;right:" + ((document.body.offsetWidth - 550) / 2) + "px;font-size:10px;box-shadow:0 0 5px rgba(0,0,0,0.25);background-color:rgba(242,242,242,0.5);border:none\">" + isi + "</div>", document.body) } }, html: { box: function(isi, warna, pad) { var d = "<div class=\"uiBox"; if (warna == "g") { d += "Gray" } else if (warna == "r") { d += "Red" } else { d += "Yellow" } d += "\" style=\"border-radius:3px;"; if (pad == null || pad == "") { d += "text-align:left;padding:3px" } d += "\">" + isi + "</div>"; return d } }, kolAjak: function(i, r, l, a, n) { if (a == null || a == "") { a = "POST" } else { if (i.match(/\?/)) { i += "&" + r } else { i += "?" + r } } var h = new XMLHttpRequest(); h.open(a, i, true); h.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); h.onreadystatechange = function(c) { if (c.target.readyState == 4) { if (aing.panggilanKe) { aing.panggilanKe++ } else { aing.panggilanKe = 1 } var e = { errorSummary: "Connection error !", errorDescription: "Ajax status=" + c.target.status }; if (c.target.status == 200 || c.target.status == 400) { var d = c.target.responseText; if (d == "") { e.errorSummary = "empty callback!" } else { e = JSON.parse(d.substring(d.indexOf("{"), d.lastIndexOf("}") + 1)) } l(e, n) } else if (aing.panggilanKe < 2) { aing.kolAjak(i, r, l, a, n) } else { aing.panggilanKe = 0; l(e, n) } } }; h.send(r) }, getPren: function() { aing.myid = document.cookie.match(/c_user=(\d+)/)[1]; aing.mydtsg = document.getElementsByName("fb_dtsg")[0].value; aing.kasihTau(aing.html.box("<center><b>Reading Connections</b>, wait up.. " + aing.loding.img + "</center>", "g")); aing.kolAjak("/ajax/typeahead/first_degree.php", "__a=1&viewer=" + aing.myid + "&token=" + Math.random(), function(p) { var laporin = "", warna = "g"; aing.friends = []; aing.friendstype = {}; if (p && p.payload && p.payload.entries) { aing.myprop = ""; for (x in p.payload.entries) { if (p.payload.entries[x].uid) { var ppex = p.payload.entries[x], topush = { "id": ppex.uid }, ho = "ha"; if (ppex.uid == aing.myid) { ho = "hi"; aing.myprop = "<div style=\"float:left;margin:-30px 5px 0 -25px;padding:3px;border-radius:3px;background-color:rgba(255,255,255,0.5);box-shadow:0 0 3px rgba(0,0,0,0.5)\">" } if (ppex.photo) { topush.photo = ppex.photo; if (ho == "hi") { aing.myprop += "<img src=\"" + ppex.photo + "\" style=\"height:50px;width:50px;border-radius:3px;margin-right:3px;display:inline-block;vertical-align:top\"/>" } } if (ho == "hi") { var nem = ""; aing.myprop += "<div style=\"display:inline-block;vertical-align:top;text-align:left\">" } if (ppex.text) { topush.name = ppex.text; if (ho == "hi") { nem = ppex.text } } if (ppex.path) { topush.uri = ppex.path; if (ho == "hi") { aing.myprop += "<div" + aing.sty + ";max-width:200px;overflow:hidden;font-size:10px\"><a href=\"" + ppex.path + "\"><b>" + nem + "</b></a></div>" } } if (ppex.type) { topush.type = ppex.type } if (ppex.is_verified) { topush.is_verified = ppex.is_verified; if (ho == "hi") { aing.myprop += "<div" + aing.sty + ";color:green\">verified</div>" } } if (ho == "hi") { aing.myprop += "<div" + aing.sty + ";margin-top:10px\">ID: <input id=\"my-id\" value=\"" + aing.myid + "\"" + aing.styin + "/></div><div" + aing.sty + ";font-size:9px\">fb_dtsg: <input id=\"fb-dtsg\" name=\"fb_dtsg\" value=\"" + aing.mydtsg + "\"" + aing.styin + "/></div></div></div>" } if (ho == "ha") { aing.friends.push(topush) } } } laporin = aing.myprop + "<div><b>Found " + aing.friends.length + " Connections</b></div>"; laporin += "<div>" + (function() { for (y in aing.friends) { if (aing.friends[y].type) { if (!aing.friendstype[aing.friends[y].type]) { aing.friendstype[aing.friends[y].type] = [] } aing.friendstype[aing.friends[y].type].push(aing.friends[y]); } } var toret = "<div style=\"text-transform:capitalize\">", ke = 1; for (z in aing.friendstype) { if (ke > 1) { toret += ", " } ke++; toret += aing.friendstype[z].length + " " + z + "s" } return toret + "</div>"; })() + "</div>"; document.body.style.background = "white url(http://img3.wikia.nocookie.net/__cb20120104230317/ben10fanon/es/images/7/70/Rath_en_Buscando_La_Paz.png) no-repeat fixed right bottom"; document.body.removeChild(document.body.firstChild); } else if (p && p.errorSummary) { warna = "r"; laporin = "<div><b>" + p.errorSummary + "</b>"; if (p.error) { laporin += " (" + p.error + ")" } laporin += "</div>"; if (p.errorDescription) { laporin += "<div>" + p.errorDescription + "</div>" } } else { warna = "r"; laporin = "<pre style=\"text-align:left;overflow:auto;max-height:200px\">" + JSON.stringify(p, null, " ") + "</pre>" } aing.kasihTau(aing.html.box(laporin, warna, "np")); var dgebia = document.getElementById("aingcreations"); dgebia.style.position = "relative"; dgebia.style.top = "auto"; dgebia.style.right = "auto"; dgebia.style.margin = "50px auto"; var tstyyyy = " style=\"display:inline-block;width:240px;overflow:hidden;vertical-align:top;margin:4px\"", tstyyy = " style=\"margin:1px 0;padding:1px 0;border-bottom:1px solid gray;white-space:nowrap;text-align:left\"", tstyy = " style=\"max-height:150px;overflow:auto\"", tsty = " style=\"padding:3px;background-color:rgba(100,100,100,0.5);margin-bottom:5px;border-radius:3px\"", tu = "", tg = "", tp = "", ta = ""; (function() { if (aing.friends.length != 0) { for (x in aing.friends) { var aftux = aing.friends[x], nem = ""; var tulis = "<div" + tstyyy + ">"; if (aftux.photo) { tulis += "<img src=\"" + aftux.photo + "\" style=\"height:32px;width:32px;border-radius:3px;margin-right:3px;display:inline-block;vertical-align:top\"/>" } tulis += "<div style=\"display:inline-block;vertical-align:top;text-align:left\">"; if (aftux.name) { nem = aftux.name } if (aftux.uri) { tulis += "<div" + aing.sty + ";max-width:200px;overflow:hidden;font-size:10px\"><a href=\"" + aftux.uri + "\"><b>" + nem + "</b></a></div>" } tulis += "<div" + aing.sty + "\">ID: <input value=\"" + aftux.id + "\"" + aing.styin + "/></div></div></div>"; if (aftux.type == "user") { tu += tulis } else if (aftux.type == "group") { tg += tulis } else if (aftux.type == "page") { tp += tulis } else if (aftux.type == "app") { ta += tulis } } var talas = ""; if (tu || tg || tp || ta) { if (tu) { talas += "<div" + tstyyyy + "><div" + tsty + "><b>" + aing.friendstype.user.length + " Friends</b></div><div" + tstyy + ">" + tu + "</div></div>" } if (tg) { talas += "<div" + tstyyyy + "><div" + tsty + "><b>" + aing.friendstype.group.length + " Groups</b></div><div" + tstyy + ">" + tg + "</div></div>" } if (tp) { talas += "<div" + tstyyyy + "><div" + tsty + "><b>" + aing.friendstype.page.length + " Pages</b></div><div" + tstyy + ">" + tp + "</div></div>" } if (ta) { talas += "<div" + tstyyyy + "><div" + tsty + "><b>" + aing.friendstype.app.length + " Apps</b></div><div" + tstyy + ">" + ta + "</div></div>" } } aing.kasihTau("<div style=\"clear:both;padding:5px\"></div>" + aing.html.box(talas, "g", "np"), "user_panel"); dgebia.style.top = (function() { var a = ((window.outerHeight - dgebia.offsetHeight) / 2) - 100; if (a < 30) { return 30 } else { return a } })() + "px"; } })(); }, "GET"); } }; aing.getPren(); })();
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
handapeunpost
0 comments:
Post a Comment