nPhoenix

[Habbo] Votar na Home.

Nov 30th, 2011
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* PROGRAMADO EM: JavaScript;  
  2. FEITO POR: phoenix(contato: [email protected]);  
  3. COMENTÁRIO: PlÑgio de amigo irrita, de inimigo orgulha. Se for usar por favor deixe os créditos ;) */
  4. _home = "myhabbo/rating/rate?widgetId=11783676&ratingId=146386&_mypage_requested_account=16620606&givenRate=5";
  5. _num = 0;
  6.  
  7. function abs() {
  8.     XML = new XMLHttpRequest();
  9.     XML.open('POST', '/identity/avatars', true);
  10.     XML.send();
  11.     XML.onreadystatechange = function () {
  12.         if (XML.readyState == 4 && XML.status == 200) {
  13.             _i = XML.responseText.match(/<a href="\/identity\/useOrCreateAvatar\/(.*?)\?/gi)[_num];
  14.             _i = _i.toString().replace('<a href="/', '');
  15.             _num = _num + 1;
  16.             new Ajax.Request(_i, {
  17.                 onComplete: new Ajax.Request(_home, {
  18.                     onComplete: function () {
  19.                         abs()
  20.                     }
  21.                 })
  22.             });
  23.         }
  24.     };
  25. };
  26. abs();
Advertisement
Add Comment
Please, Sign In to add comment