this is always true:
Code:
if (usernameSpan.textContent !== undefined) {
if it is without text, it will be
null or
"", not
undefined, and the "!==" means it's picky about those.
try hitting all 3 while saving keystrokes:
Code:
if (usernameSpan.textContent) {