artillect, 10 months ago I think this should work for inserting the button: const siblingElement = document.querySelector('.dropdown .login').parentElement; I'm not sure how to get rid of the :has() selector at the end of the CSS though. If you aren't able to swap them both out for an alternate method, I think leaving the banner in is fine for now
I think this should work for inserting the button:
const siblingElement = document.querySelector('.dropdown .login').parentElement;
I'm not sure how to get rid of the :has() selector at the end of the CSS though. If you aren't able to swap them both out for an alternate method, I think leaving the banner in is fine for now