Checks url instead of document title

Because that was a stupid 8am commit (not that this is any better).