Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
userscript for browsers to see full adresses in inbox on gmail.com, you can use greasemonkey or similiar software to run it.
// ==UserScript==
// @name Gmail: show full email addresses
// @namespace http://mail.google.com/
// @match *://*mail.google.com/*
// @exclude https://mail.google.com/*view=btop*
// @exclude https://accounts.google.com/*
// @version 0.3
// @description Gmail: showing full email addresses
// @copyright 2013+, Luckylooke
// ==/UserScript==
if (window.top != window.self) //don't run on frames or iframes
return;
var node,
nodewalk = function(node, str){
if (typeof str != 'array'){ str = []};
for (var i = 0; i < node.length; i++) {
if (node[i].hasChildNodes() && 'SCRIPT' !== node[i].nodeName){ // go deeper
str = nodewalk(node[i].childNodes,str);
};
if (node[i].tagName
&& node[i].tagName == 'SPAN'
&& node[i].parentNode.parentNode
&& node[i].parentNode.parentNode.tagName
&& node[i].parentNode.parentNode.tagName == 'TD'){
var tmp = node[i].getAttribute('email');
if(tmp){
node[i].parentNode.textContent = tmp;
}
};
}
return str;
};
setInterval(function(){nodewalk(document.getElementsByTagName('body'));
GM_addStyle(".yY { width:300px; }");},7000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.