We’ve fixed the <base href> of the page to include the query string, so here’s the shortest snippet I know of to parse the query string (using the convenient URLSearchParams):
params = new URLSearchParams(html`<a href>`.search)
The nice thing about this approach is that it’ll continue to work if you download and embed your notebook on another site, and it makes very few assumptions about the page.