“Safari app extension called StopTheMadness that stops web sites from messing with the standard Mac user interface”

Link. I’ll try.