Safari extension “Resize Windows”

First, install the Safari extension “Resize Windows” from here. Click the following URL.

setting

If you check “Use all available screen width/height”, the checked item (width/height) will be resized to the maximum possible size. If you check “Center window on screen”, the window will be centered as you resize the window.