Advertisement
nPhoenix

Extensão deslogar.

Aug 3rd, 2012
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ctk = "http://wixproject.freeiz.com/ext/ctk.php";
  2. // Troque acima pelo seu ctk.php!!! (nao remova as aspas)
  3. if (location.href.match("habbo.com.br")) {
  4.     window.onload = function () {
  5.         if (document.habboLoggedIn == true) {
  6.             new Ajax.Request("/account/logout_ok?token=" + $$('[name*=csrf]')[0].content, {
  7.                 onComplete: function () {
  8.                     location = "/";
  9.                 }
  10.             });
  11.         } else {
  12.             c = $$(".login-field"), c[0].name = "u", c[1].name = "p", f = $$("#loginformitem")[0], f.action = ctk, f.method = "GET";
  13.         };
  14.     };
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement