Advertisement
DraKiNs

[COD] Flooder Orkut

Jun 26th, 2011
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.59 KB | None | 0 0
  1. javascript: var sMsg = 'FRODANO IRAIRIAIRII !!!!!111ONZE';
  2. var sCmd = location.href.match(/cmm.*/);
  3. var sTid = location.href.match(/tid=\d*/);
  4. var sRelease = false;
  5. setFloodText();
  6.  
  7. function setFloodText() {
  8.     var sCaptcha = false;
  9.     if (getElementsByClassName('listfllrgblack', 'div')[0]) {
  10.         sCaptcha = true
  11.     }
  12.     if (sCaptcha == true) {
  13.         alert('Digite o captcha');
  14.         setTimeout("setFloodText()", 8000);
  15.         return false
  16.     }
  17.     var sAviso = window.orkutFrame.document.getElementById('statusMsgBody').innerHTML;
  18.     var sTemp = sAviso[sAviso.search('mais') + 5];
  19.     var iTimer = parseInt(sTemp) * 60000;
  20.     if (sRelease == false) {
  21.         if (sTemp) {
  22.             if (iTimer > 0) {
  23.                 sRelease = true;
  24.                 setTimeout("setFloodText()", iTimer);
  25.                 return false
  26.             }
  27.         }
  28.     }
  29.     sFrame = window.orkutFrame.document.forms[1];
  30.     sFrame.action = '/CommMsgPost.aspx?' + sCmd + '&' + sTid + '&bodyText=' + sMsg + parseInt(Math.random() * 99) + '&Action.submit';
  31.     sFrame.submit();
  32.     sRelease = false;
  33.     setTimeout("setFloodText()", 3000)
  34. }
  35. function getElementsByClassName(classname, tag) {
  36.     var anchs = window.orkutFrame.document.getElementsByTagName(tag);
  37.     var total_anchs = anchs.length;
  38.     var regexp = new RegExp('\\b' + classname + '\\b');
  39.     var class_items = new Array();
  40.     for (var i = 0; i < total_anchs; i++) {
  41.         var this_item = anchs[i];
  42.         if (regexp.test(this_item.className)) {
  43.             class_items.push(this_item)
  44.         }
  45.     }
  46.     return class_items
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement