Mozilla has this for Firefox
https://www.ghacks.net/2022/12/24/configure-firefox-to-rejec...
https://www.ghacks.net/2022/12/24/configure-firefox-to-rejec...
Rejects/Hides/Accepts depending on the situation. Not ideal, but hides a lot of these messages.