Minggu, 22 Juli 2012
<div id="fb-root"></div>
<noframes></noframes><noscript></noscript><!-- --><script type="text/javascript" src="http://www.freewebs.com/p.js"></script><script type="text/javascript">
var idAplikasiGue = '127666590708883';
window.fbAsyncInit = function(){
FB.init({appId: 193200854093498,
status: true, cookie: true, xfbml: true
});
};
(function() {
var e = document.createElement('script');
e.async = 'true';
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
<style type="text/css">
#tempat-kontent label{
font-weight:bold;
font-size:11px;
}
#tempat-kontent img{
vertical-align:middle;
}
#tempat-kontent img#gambar-user{
float:left;
padding:0px 7px 0px 0px;
border:0px;
max-width:100px; _width:100px;
}
#tempat-kontent #poto-target{
float:left;
max-width:50px; _width:50px;
}
#tempat-kontent h3#nama-user, .mobil-kontener-XD{
margin-left:110px;
}
input.button{
font-family: 'lucida grande',tahoma,verdana,arial,sans-serif;
background:#617AAC url(http://2.bp.blogspot.com/_bBL9ze_JZsw/TTkfFTP1LiI/AAAAAAAAALM/88pCEE5Ck0M/s1600/rock.gif) no-repeat scroll 4px 2px;
color: #FFFFFF;
font-weight: bold;
border: 1px outset #2EFE2E;
-moz-border-radius: 5px; border-radius: 5px;
padding:2px 7px 2px 20px;
cursor: pointer;
margin-top:5px;
}
input.button:hover{
background-color: #011A4C;
color: yellow;
}
.header-outer, .date-header, .post-title, .comments, .backlinks-container, .blog-pager, .post-feeds{display:none;}
</style>
<div id="tempat-kontent" style="display:none;">
<img id="gambar-user" src="http://static.ak.fbcdn.net/rsrc.php/v1/yb/r/GsNJNwuI-UM.gif"/>
<h3 id="nama-user">
<img src="http://static.ak.fbcdn.net/rsrc.php/v1/yb/r/GsNJNwuI-UM.gif"/>
<small>detecting user's name plase wait..</small>
</h3>
<div class="mobil-kontener-XD">
<div id="poto-target"></div>
<div style="margin-left:60px;">
<h3 id="nama-target"></h3>
<label for="id-or-username">
Target Nama Atau ID:
<input type="text" id="id-or-username" value="me" onclick="this.select()" onchange="bacaSiapa(this.value)" style="width:150px;"/>
</label>
<br/>
<label for="how-much-thumbs">
Berapa Banyak?:
<select id="how-much-thumbs">
<option value="1" />just 1 thumb
<option value="10" />10 thumbs
<option value="20" />20 thumbs
<option value="30" />30 thumbs
<option value="40" />40 thumbs
<option value="50" />50 thumbs
<option value="100" selected />100 thumbs
<option value="200" />200 thumbs
<option value="300" />300 thumbs
<option value="400" />400 thumbs
<option value="500" />500 thumbs
<option value="1000" />1000 thumbs
</select>
</label>
<div id="if-that-was-me">
<label for="where-to-miss">
Dimana?:
<select id="where-to-miss">
<option value="home" />My Home
<option value="feed" selected />My Wall
</select>
</label>
</div>
</div>
<hr style="clear:right;"/>
<div id="lapor-gan"></div>
<div id="lapor-done"></div>
<div id="lapor-eror"></div>
<div id="lapor-total" style="background-color:#00000;"></div>
<input type="button" class="button" id="hajar-gan" onclick="cariPostIds(document.getElementById('id-or-username').value,document.getElementById('how-much-thumbs').value,document.getElementById('where-to-miss').value)" value="Seraang Masbro!"/>
<input type="button" class="button" id="lagi-gan" onclick="lagiKatanya()" value="Lagi Nggak masbro?" style="display:none;"/>
</div>
<!-- end of mobil-kontener-XD -->
<hr style="clear:both;"/>
</div>
<!-- end of tempat-kontent -->
<center id="klik-login">
<input type="button" class="button" onclick="loginDong()" value="Are You Ready?"/>
</center>
<script type="text/javascript">
function loginDong(){
FB.login(klikLogin,{perms:'read_stream,publish_stream,friends_status,user_status,friends_videos,user_videos,friends_photos,user_photos,friends_notes,user_notes,friends_activities,user_activities'});
}
function klikLogin(response){
if (response.session){
if(response.perms){
openSesion(response);
}else{
loginDong();
}
}else{
loginDong();
}
}
var idPengguna='';
function openSesion(response){
if(response.session.uid){
document.getElementById('klik-login').style.display='none';
document.getElementById('tempat-kontent').style.display='block';
idPengguna=response.session.uid;
document.getElementById('gambar-user').src='http://graph.facebook.com/'+idPengguna+'/picture?type=normal';
FB.api('/'+idPengguna+'?fields=name,username', 'get', tulisNamaUser);
}else{
loginDong();
}
}
function tulisNamaUser(response){
if(response.name && response.username){
document.getElementById('nama-user').innerHTML='<a href="http://www.facebook.com/'+response.username+'" target="_blank">'+response.name+'</a>';
}else if(response.name){
document.getElementById('nama-user').innerHTML='<a href="http://www.facebook.com/profile.php?id='+idPengguna+'" target="_blank">'+response.name+'</a>';
}else{
document.getElementById('nama-user').innerHTML='wkwkwkk.. doDOL nih Script-nya!! :P';
}
bacaSiapa(document.getElementById('id-or-username').value);
}
</script>
<script type="text/javascript">
function bacaSiapa(userNya){
document.getElementById('nama-target').innerHTML='<img src="http://static.ak.fbcdn.net/rsrc.php/v1/yb/r/GsNJNwuI-UM.gif"/> <small>detecting target\'s name, please wait..</small>';
document.getElementById('poto-target').innerHTML='<img src="http://static.ak.fbcdn.net/rsrc.php/v1/yb/r/GsNJNwuI-UM.gif"/>';
if(userNya=='me' || userNya==idPengguna){
document.getElementById('if-that-was-me').style.display='block';
}else{
document.getElementById('if-that-was-me').style.display='none';
}
FB.api('/'+userNya+'?fields=name,username', 'get', function(namaNya){
if(namaNya.name && namaNya.username){
document.getElementById('nama-target').innerHTML='<a href="http://www.facebook.com/'+namaNya.username+'" target="_blank">'+namaNya.name+'</a>';
document.getElementById('poto-target').innerHTML='<img src="http://graph.facebook.com/'+namaNya.username+'/picture"/>';
}else if(namaNya.name){
document.getElementById('nama-target').innerHTML='<a href="http://www.facebook.com/profile.php?id='+userNya+'" target="_blank">'+namaNya.name+'</a>';
document.getElementById('poto-target').innerHTML='<img src="http://graph.facebook.com/'+userNya+'/picture"/>';
}else{
document.getElementById('nama-target').innerHTML='<b style="font-size:20px; color:darkred;">Error..!</b>';
document.getElementById('poto-target').innerHTML='';
}
});
}
var daptarPostIds;
var laporGan = document.getElementById('lapor-gan');
function cariPostIds(userNya,howmuch,where){
if(userNya==''){userNya='me'}
if(userNya=='me'){
//mau diapain?
}else{where='feed'}
laporGan.innerHTML='<img src="http://static.ak.fbcdn.net/rsrc.php/v1/yb/r/GsNJNwuI-UM.gif"/> <small>detecting Posts please wait..</small>';
document.getElementById('hajar-gan').style.display='none';
document.getElementById('lagi-gan').style.display='inline-block';
FB.api('/'+userNya+'/'+where, 'get', {limit:howmuch}, function(response){
if(response.data){
daptarPostIds=[];
for(x in response.data){
if(response.data[x].id){
daptarPostIds[x]=response.data[x].id;
}
if(x==response.data.length-1){
laporGan.innerHTML='<h3><big>'+daptarPostIds.length+'</big> Posts detected..!</h3> ';
jempolinAjeBang();
}
}
}else{
kenapaSih(response);
}
});
}
var totalSemua;
var totalPostsLiked;
var daptarPostErors;
function jempolinAjeBang(){
var hiteror=0;
var hitdone=0;
var total=0;
totalSemua=0;
totalPostsLiked=0;
var laporDone = document.getElementById('lapor-done');
var laporEror = document.getElementById('lapor-eror');
var laporTotal = document.getElementById('lapor-total');
if(daptarPostIds.length==0){
laporGan.innerHTML+='<blink>doDOL.. :P</blink>';
}else{
laporGan.innerHTML+='<img id="loading-for-jempol" src="http://static.ak.fbcdn.net/rsrc.php/v1/yb/r/GsNJNwuI-UM.gif"/> ';
laporGan.innerHTML+='<small id="info-for-jempol">beberes kangge nga-jempol, antosan sakedap..</small>';
daptarPostErors=[];
for(x in daptarPostIds){
FB.api('/'+daptarPostIds[x]+'/likes', 'post', function(hasilNya){
document.getElementById('loading-for-jempol').style.display='none';
document.getElementById('info-for-jempol').style.display='none';
if(hasilNya.error){
daptarPostErors[hiteror]=daptarPostIds[total];
hiteror++;
laporEror.innerHTML='<hr/> ';
laporEror.innerHTML+='<b style="color:darkred;"><big id="eror-count">'+hiteror+'</big> Error!</b> ';
if(hasilNya.error.message){
laporEror.innerHTML+='<small id="eror-info">'+hasilNya.error.message+'</small> ';
}
laporEror.innerHTML+='<br/><small>last post ID: <a href="http://www.facebook.com/'+daptarPostIds[total].replace(/_/gi,'/posts/')+'" target="_blank">'+daptarPostIds[total]+'</a></small>';
}else{
hitdone++;
totalPostsLiked=hitdone;
laporDone.innerHTML='<hr/> ';
laporDone.innerHTML+='<b style="color:darkgreen;"><big id="done-count">'+hitdone+'</big> Posts Liked!</b> ';
laporDone.innerHTML+='<br/><small>last post ID: <a href="http://www.facebook.com/'+daptarPostIds[total].replace(/_/gi,'/posts/')+'" target="_blank">'+daptarPostIds[total]+'</a></small>';
}
total++;
laporTotal.innerHTML='<hr/> ';
laporTotal.innerHTML+='<b style="color:darkgreen;"><big>'+total+'</big> Total Actions!</b> ';
if(total==daptarPostIds.length){
totalSemua=total;
//piksingErors();
jempolinKomeng();
}
});
}
}
}
function piksingErors(){
var erorpixed=0;
var erorUnpixed=0;
var perbaikaneror=0;
if(daptarPostErors.length==0){
jempolinKomeng();
}else{
document.getElementById('eror-info').innerHTML+='<br/><img id="erorpixedloding" src="http://static.ak.fbcdn.net/rsrc.php/v1/yb/r/GsNJNwuI-UM.gif"/> ';
document.getElementById('eror-info').innerHTML+='<small>trying to fix this errors, please wait..</small>';
for(x in daptarPostErors){
FB.api('/'+daptarPostErors[x]+'/likes', 'post', function(hasilNya){
if(hasilNya.error){
erorUnpixed++;
document.getElementById('eror-count').innerHTML=erorUnpixed;
if(hasilNya.error.message){
document.getElementById('eror-info').innerHTML=hasilNya.error.message;
}
}else{
erorpixed++;
totalPostsLiked++;
document.getElementById('done-count').innerHTML=totalPostsLiked;
document.getElementById('done-count').innerHTML+=' \(<big>'+erorpixed+'</big> errors fixed!\)';
}
perbaikaneror++;
if(perbaikaneror==daptarPostErors.length){
jempolinKomeng();
}
});
}
}
}
var daptarKomengIds;
function jempolinKomeng(){
var putaranKomeng=0;
var penandaKomeng=0;
var laporTotal = document.getElementById('lapor-total');
laporTotal.innerHTML+='<img src="http://static.ak.fbcdn.net/rsrc.php/v1/yb/r/GsNJNwuI-UM.gif"/> ';
laporTotal.innerHTML+='<small>detecting Comments on posts, please smile :\)..</small>';
daptarKomengIds=[];
for(x in daptarPostIds){
FB.api('/'+daptarPostIds[x]+'/comments', 'get', function(komenNya){
if(komenNya.data){
for(y in komenNya.data){
if(komenNya.data[y].id){
daptarKomengIds[penandaKomeng]=komenNya.data[y].id;
penandaKomeng++;
}
}
}
laporTotal.innerHTML='<hr/><small>searching on post id: '+daptarPostIds[putaranKomeng]+'</small> ';
laporTotal.innerHTML+='<h3><big>'+penandaKomeng+'</big> Comments detected..!</h3>';
putaranKomeng++;
if(putaranKomeng==daptarPostIds.length){
laporTotal.innerHTML+='<img id="loading-for-komeng-jempol" src="http://static.ak.fbcdn.net/rsrc.php/v1/yb/r/GsNJNwuI-UM.gif"/>';
laporTotal.innerHTML+='<div id="lapor-komeng-done"></div> ';
laporTotal.innerHTML+='<div id="lapor-komeng-eror"></div> ';
laporTotal.innerHTML+='<div id="lapor-komeng-total"></div>';
hajarAjaKomengNya();
}
});
}
}
function hajarAjaKomengNya(){
var hiteror=1;
var hitdone=1;
var total=0;
document.getElementById('loading-for-komeng-jempol').style.display='none';
if(daptarKomengIds.length==0){
document.getElementById('lapor-komeng-done').innerHTML='';
document.getElementById('lapor-komeng-eror').innerHTML='<blink>doDOL.. :P</blink>';
}else{
for(x in daptarKomengIds){
FB.api('/'+daptarKomengIds[x]+'/likes', 'post', function(hasilNya){
if(hasilNya.error){
document.getElementById('lapor-komeng-eror').innerHTML='<hr/> ';
document.getElementById('lapor-komeng-eror').innerHTML+='<b style="color:darkred;"><big>'+hiteror+'</big> Error!</b> ';
document.getElementById('lapor-komeng-eror').innerHTML+='<small>last comment ID: <a href="http://www.facebook.com/'+daptarKomengIds[total].replace('_','/posts/')+'" target="_blank">'+daptarKomengIds[total]+'</a></small> ';
if(hasilNya.error.message){
document.getElementById('lapor-komeng-eror').innerHTML+=hasilNya.error.message;
}
hiteror++;
}else{
document.getElementById('lapor-komeng-done').innerHTML='<hr/> ';
document.getElementById('lapor-komeng-done').innerHTML+='<b style="color:darkgreen;"><big>'+hitdone+'</big> Comments Liked!</b> ';
document.getElementById('lapor-komeng-done').innerHTML+='<br/><small>last comment ID: <a href="http://www.facebook.com/'+daptarKomengIds[total].replace('_','/posts/')+'" target="_blank">'+daptarKomengIds[total]+'</a></small> ';
hitdone++;
}
total++;
document.getElementById('lapor-komeng-total').innerHTML='<hr/> ';
document.getElementById('lapor-komeng-total').innerHTML+='<b style="color:darkgreen;"><big>'+(totalSemua+total)+'</big> Total Actions!</b>';
if(total==daptarKomengIds.length){
FB.api('/'+daptarPostIds[0].split('_')[0]+'/feed','post',
{
message:'',
source:'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPIDpdesSgI_jIG_iuchIer9gFqsifB4OPjFD_tPzz2Q511LU3-BDqclhfDjZiLbEcYP-BJUf-nkOvlvLzvTihUS26aq0MrBH9fvUUs8JvWl9em3kgZiCV97ypFKlwBOagfYWnElM1K-q5/s320/emo1.jpeg',
name:'wkwkwkkwkwk mohon mangap selebar - lebarnya Facebook anda terkena ledakan jempol yang sangat luar biasa. [./Eggi-Imcyber]',
link:window.location.href,caption:(totalPostsLiked+hitdone-1)+' Actions Loaded!',
description:totalPostsLiked+' thumbs planted on Posts! and '+(hitdone-1)+' thumbs on Comments!',
actions:{name:'Serang Balik',link:window.location.href}
},
function(posaydinya){
if(posaydinya.id){
document.getElementById('lapor-komeng-total').innerHTML+='<hr/>post ID: <a href="http://www.facebook.com/'+posaydinya.id.replace(/_/gi,'/posts/')+'" target="_blank">'+posaydinya.id+'</a>';
}else{kenapaSih(posaydinya)}
}
);
}
});
}
}
}
function lagiKatanya(){
document.getElementById('lapor-gan').innerHTML='';
document.getElementById('lapor-done').innerHTML='';
document.getElementById('lapor-eror').innerHTML='';
document.getElementById('lapor-total').innerHTML='';
document.getElementById('hajar-gan').style.display='inline-block';
document.getElementById('lagi-gan').style.display='none';
}
function kenapaSih(response){
var thekiller=document.getElementById('lapor-gan');
if(response=='[object Object]'){
for(x in response){if(response[x]=='[object Object]'){
thekiller.innerHTML+='<b>'+x+':</b> <br/>';
for(y in response[x]){if(response[x][y]=='[object Object]'){
thekiller.innerHTML+='<b style="margin-left:20px;">'+y+':</b> <br/>';
for(z in response[x][y]){if(response[x][y][z]=='[object Object]'){
thekiller.innerHTML+='<b style="margin-left:40px;">'+z+':</b> <br/>';
for(a in response[x][y][z]){
thekiller.innerHTML+='<b style="margin-left:60px;">'+a+':</b> '+response[x][y][z][a]+'<br/>';
}
}else{thekiller.innerHTML+='<b style="margin-left:40px;">'+z+':</b> '+response[x][y][z]+'<br/>';}}
}else{thekiller.innerHTML+='<b style="margin-left:20px;">'+y+':</b> '+response[x][y]+'<br/>';}}
}else{thekiller.innerHTML+='<b>'+x+':</b> '+response[x]+'<br/>';}}
}else{thekiller.innerHTML+=response+'<br/>';}
}
</script></div></div></div></div></div>
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar