JavaScript has always haunted me as a language. I know HTML and CSS but JS always ruins me!
I'm trying to write a very simple, very basic script just to see if I can get the hang of it. I'm trying to tweak the appearance of my Gmail address inside my inbox.
Instead having my address being displayed as [email protected], I would rather have it as [email protected]. Here's is my code:
I just can't seem to get it to work. What am I doing wrong?
I'm trying to write a very simple, very basic script just to see if I can get the hang of it. I'm trying to tweak the appearance of my Gmail address inside my inbox.
Instead having my address being displayed as [email protected], I would rather have it as [email protected]. Here's is my code:
Code:
(function () { var newEmail = "[email protected]"; var nameTag = document.getElementsByTagName('span').getElementById('gbi4t')[0]; nameTag.setAttribute(innerHTML, newEmail); }) ();
Comment