xiaoxiaoflood / firefox-scripts

userChromeJS / autoconfig.js and extensions
Mozilla Public License 2.0
989 stars 85 forks source link

minMaxCloseButton #76

Closed Orriky closed 3 years ago

Orriky commented 3 years ago

Hi,

Is it possible to use your script to start Firefox in a fixed position and with determined dimensions?

xiaoxiaoflood commented 3 years ago

Hi,

Fx remembers position and size from when it was closed the last time. You can probably use resizeTo and moveTo to achieve what you want. I won't add this to minMaxCloseButton because it's out of scope.

Example: resizeTo(600, 300) to set window size to 600px width and 300px height. moveTo(200, 100) to position the window as x: 200 and y: 100 (x: 0 and y: 0 is top-left).