Google Blogoscoped


Remove address from Gmail interface

Nick [PersonRank 0]

Tuesday, April 13, 2010
10 years ago3,223 views

In the right top corner of my Gmail interface, Gmail shows the address of the current user logged in to the system. How can I remove this text? Just blank it off or write something else.

Any tips?

Look at my screenshot to get the idea of what I mean: ...

ianf [PersonRank 10]

10 years ago #

?Why? would you like to remove it?

Technically not impossible; just write a short JavaScript program that scrapes off the screen and blanks its first segment. The address token is contained within this unique regexp sequence in the source code [sed demo syntax]

s/Options</h2><b>[A-Za-z0-9-*][put at-character here][.*]</b> /Options</h2><b>********[put at-character here]2</b>/g

(If wrapped in a bookmarklet you'd have to invoke it manually, however. I don't know how one could automate it to execute after each Gmail page refresh, fetch etc.)

ianf [PersonRank 10]

10 years ago #

ADMINISTRIVIA: Blogoscoped Forum's posting robot eats up backslashes "\" therefore the above regexp code came out incorrect. Close your eyes, lie back and think of England.

Ionut Alex. Chitu [PersonRank 10]

10 years ago #

Try this script (install Greasemonkey first): ...

Nick [PersonRank 0]

10 years ago #

Chitu: Thanks for the Greasemonkey tip. It was just a solution like that I was searching for. Google search didn't help me out.

ianf: Because I don't want my employer to see my private e-mail, when he looks over my shoulder sometimes.

Philipp Lenssen [PersonRank 10]

10 years ago #

You could also try a user stylesheet, and add something like (untested):

#guser b { display: none; }

Different browsers allow different ways to edit the user stylesheet, for Firefox there are also Greasemonkey scripts to handle them.

I'm just mentioning above approach in case you often want to change minor layout details on a site... for the above request, Ionut's solution is perfect already.

Nick [PersonRank 0]

9 years ago #

Thanks for that tip as well. I think I'll just stick with the Greasemonkey solution. Thanks again everybody.

This thread is locked as it's old... but you can create a new thread in the forum. 

Forum home


Blog  |  Forum     more >> Archive | Feed | Google's blogs | About


This site unofficially covers Google™ and more with some rights reserved. Join our forum!