gauda / Gmail always show full email address

// ==UserScript==
// @name        Gmail always show full email address
// @namespace   https://mail.google.com/mail/*
// @include     https://mail.google.com/mail/*
// @version     3
// @grant       none
// @run-at      document-end
// @licence     MIT
// ==/UserScript==

window.setInterval(function () {
  Array.from(document.getElementsByClassName("g2")).forEach(function (element, index, array) {
    var email = element.attributes['email'].value;
    if (email) {
      element.innerHTML = email;
    }
  });
}, 1000);