Thank you for your prompt response as well as your advice for solving the problem for Microsoft Edge. Thanks to your advice the menu problem is solved, but clicking on Red Window Button in Microsoft edge still closes tabs instead of the window. Also, Red Window Button does not work at all after quitting BetterTouchTool (e.g. if BTT crashes). Could you advise in solving it?
Also, it would be great if you could advise on improving the Apple Script for quitting the app after the last open window is closed. It would be so practical for those who suffer from the physical system memory extreme limitations in modern MacBooks as well as immigrants from other operating systems.
P.S.: Would it be possible for you to add the useful feature of "Quit the app after the last open window is closed" to BTT?
Thank you again