Last active
August 29, 2015 14:25
-
-
Save luckylooke/a2d6579756ff50d71778 to your computer and use it in GitHub Desktop.
userscript for browsers to see full adresses in inbox on gmail.com, you can use greasemonkey or similiar software to run it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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