Maximize Window

How do I maximize Firefox window?
If there is no such function, is there a way to detect the display size/resolution so we can set the window according to this dimension?

A past was available this command but it seems that it is no longer present in the new versions of ui vision

There are a large amount of addons to do this, use an addons and you solve your problem or use a shortcut to maximize browser