We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1d971fe + 2aef03d commit 2cde2b7Copy full SHA for 2cde2b7
src/script.js
@@ -37,7 +37,12 @@ Element.prototype.remove = function () {
37
this.parentElement.removeChild(this);
38
};
39
40
-const getMyEmailAddress = () => document.querySelector('.gb_lb') ? document.querySelector('.gb_lb').innerText : '';
+const getMyEmailAddress = () => {
41
+ if (document.querySelector('.gb_hb').innerText) return document.querySelector('.gb_hb').innerText;
42
+ if (document.querySelector('.gb_lb').innerText) return document.querySelector('.gb_lb').innerText;
43
+ if (document.querySelector('.gb_qb').innerText) return document.querySelector('.gb_qb').innerText;
44
+ return '';
45
+}
46
47
const getEmailParticipants = function (email) {
48
return email.querySelectorAll('.yW span[email]');
0 commit comments