Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript: var sMsg = 'FRODANO IRAIRIAIRII !!!!!111ONZE';
- var sCmd = location.href.match(/cmm.*/);
- var sTid = location.href.match(/tid=\d*/);
- var sRelease = false;
- setFloodText();
- function setFloodText() {
- var sCaptcha = false;
- if (getElementsByClassName('listfllrgblack', 'div')[0]) {
- sCaptcha = true
- }
- if (sCaptcha == true) {
- alert('Digite o captcha');
- setTimeout("setFloodText()", 8000);
- return false
- }
- var sAviso = window.orkutFrame.document.getElementById('statusMsgBody').innerHTML;
- var sTemp = sAviso[sAviso.search('mais') + 5];
- var iTimer = parseInt(sTemp) * 60000;
- if (sRelease == false) {
- if (sTemp) {
- if (iTimer > 0) {
- sRelease = true;
- setTimeout("setFloodText()", iTimer);
- return false
- }
- }
- }
- sFrame = window.orkutFrame.document.forms[1];
- sFrame.action = '/CommMsgPost.aspx?' + sCmd + '&' + sTid + '&bodyText=' + sMsg + parseInt(Math.random() * 99) + '&Action.submit';
- sFrame.submit();
- sRelease = false;
- setTimeout("setFloodText()", 3000)
- }
- function getElementsByClassName(classname, tag) {
- var anchs = window.orkutFrame.document.getElementsByTagName(tag);
- var total_anchs = anchs.length;
- var regexp = new RegExp('\\b' + classname + '\\b');
- var class_items = new Array();
- for (var i = 0; i < total_anchs; i++) {
- var this_item = anchs[i];
- if (regexp.test(this_item.className)) {
- class_items.push(this_item)
- }
- }
- return class_items
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement