Hello - thanks for putting this together - where do I put this code to make it work? Thanks in advance.
Though you might be able to use the suggested option, this is actually an Opera issue to address.
I managed to solve the Safari dialogue annoyance by using Keyboard Maestro. If someone is interested let me know.