Fix feature detection for greasemonkey

Greasemonkey was incorrectly treating new chat users as old chat users,
causing it to get stuck in the "loading" forever. This is because we were
trying to use DOM operations for feature detection before the DOM was ready.