Rated 4 out of 5 stars
That's exactly what I was looking for! Thanks!
I don't know if that's because I'm using other add-ons like Web Developer, which change the window size by adding a tool bar to it, but the current size is not the current size. It took me a minute to find the values I have to sum to width and height to compensate the error.