Advertisement
Guest User

Regalo de cumpleaños!

a guest
Jan 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. document.querySelectorAll(".Estilo2")[0].innerHTML = "Email";
  2. document.querySelectorAll(".Estilo1 > a").forEach(function(e){var xhr = new XMLHttpRequest();xhr.open('GET', e.href, true);xhr.responseType = 'text';
  3. xhr.onload = function () {
  4. if (xhr.readyState === xhr.DONE) {
  5. if (xhr.status === 200) {
  6. e.innerHTML = xhr.responseText.match(/mailto:[^"]*/)[0].split(":")[1];
  7. }}};
  8. xhr.send(null);})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement