I know this is older, but I ran into the same issue. I don’t want the “Do you want to stay logged in?” pop-up to appear as sometimes I am logging in on view-only device like a tv or somewhere it doesn’t make sense
in the same dir as your configuration.yaml file, create a “www” directory and save this file in it as
// hide the "Do you want to stay logged in?" pop-up
if(document.querySelector("body > home-assistant").shadowRoot.querySelector("ha-store-auth-card"))
document.querySelector("body > home-assistant").shadowRoot.querySelector("ha-store-auth-card").remove()
if this is the first time you are using the “www” folder, you may have to restart home assistant before it will work.
note, this is current as of v0.112.4, installed from a HassOS image 4.11
if in the future, if you change or add things to all.js, edit the ?v=1 to ?v=2, etc, to force a browser reload.