searchParams isn't in Chrome and is a little broken in Firefox nightly, so go back to some hand-parsing.