Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Also, btw, you can use your Google account's email address in place of the number in the /u/1 part of Google urls (e.g., /calendar/u/[email protected]/r). Google will redirect to the correct /u/N for that email. (The numbers can change depending on the order you log into your Google accounts.)
I couldn't get Chrome Local Overrides to work—the shortcut always seemed to use my default Calendar account. But I was able to use a variation of the original solution to copy the whole manifest into a data uri: $el=document.head.querySelector("link[rel=manifest]"), mf=await fetch($el.href).then(r=>r.json()), mf.start_url=startUrl, $el.href=`data:application/manifest+json,${encodeURIComponent(JSON.stringify(mf))}` (ignore invalid manifest url/scope warnings), and then create shortcut. (And it seems no need for TrustedHTML if modifying existing element?)