Stop Browser Resizing In Firefox

June 5th, 2004

There’s a simple little fix that prevent webpages from resizing your Firefox browser that I put in every time. There’s nothing I hate more than a website that resizes my whole browser to the size of a 40×40 ad, forcing me to expand it back to my regular 1024×768 size.

Easy Method: At top on the menu, choose Tools, then click Options. Go to the Content tab, and to the right of Enable Javascript is the Advanced button. Click that and uncheck the selection “Move or resize existing windows”.

Firefox 2.0 Preferences

Note: Personally, I like to disable all options in this window for best result as it prevent websites from controlling my browser’s behavior.

Hard Method: In the address bar type about:config and hit Enter. Do a search for resize. You will see dom.disable_window_move_resize. Right click that and choose Modify. In the box that pops up, type true and hit OK.

Find information on dedicated hosting, as well as shared hosting and Microsoft exchange server hosting. You will also find news and other great resources.

Related posts brought to you by Yet Another Related Posts Plugin.

36 Responses to “Stop Browser Resizing In Firefox”

  1. Anonymous Says:

    Thanks for the tip - I googled onto this post while searching for a way to stop Firefox from resizing when browsing some sites…thanks!!

  2. Matt Burris Says:

    Glad it helped. :)

  3. Stop Browser Resizing In Firefox » EverythingTech Says:

    [...] I hate not having control over something as simple as my web browser. Have you ever gone to a website where they resize your browser to conform to their interface. Many websites that have video content (such as Comedy Central) do this using javascript. It bothered me so much I looked around online for a solution (Firefox only, I don’t use IE). There’s a simple little fix that prevent webpages fro m resizing your Firefox browser that I put in every time. There’s nothing I hate more than a website that resizes my whole browser to the size of a 40×40 ad, forcing me to expand it back to my regular 1024×768 size. To stop this from happening, in the address bar type about:config and hit Enter. Do a search for resize. You will see DOM.disable_window_move_resize. Right click that and choose Modify/Toggle. In the box that pops up, type true and hit OK. Restart the browser and you won’t have the problem anymore. [Source] [...]

  4. the blog of michael tangen Says:

    [...] Source:  Stop Browser Resizing In Firefox < GoodBlimey.com June 29, 2006, 1:23 pm [...]

  5. Just Me Says:

    Found your page through Stumble
    Worked great. Thanks

  6. believer Says:

    great advice, thanx alot!

  7. Lexica Says:

    Nice — thank you.

    Ooh, look at all the other “helpful features” that can be turned off too! :-)

  8. WESTCOASTPOPS Says:

    WELL I STUMBLED UPON THIS SITE BY LUCK…MANY THANKS MY FRIEND!

  9. tom Says:

    I stumbled across this page, and this is some great info. Thank you

  10. tom Says:

    I stumbled across this page and found the answer to the question I had never bothered to ask. How can I stop my browser resizing? I thought it is just something I had to put up with. I am glad I do not any more

  11. Jezpas Says:

    Thanks… Really helpful! (got here through stumbleupon)

  12. Evan Says:

    I stumbled onto this site too, and I sure am glad I did. Thanks very much for this info. Sure there are things in life that are more annoying than having your browser resized, but I can’t think of any at present. :)

    I checked out some offending sites, and this tip really works 100%.

  13. nemof.org blog » Reining in Javascript in Firefox Says:

    [...] Tired of javascript resizing your browser windows without so much as a please? Well I was and I happen to run Firefox (the greatest browser on the planet). A quick google turned up this article which happens to mention a feature of firefox I didn’t know about, stopping any javascript that tries to resize your browser window. Combine this with Tabmix plus and you can force any javascript that opens pop-ups to open them in new tabs rather than new windows. I’ve always found Firefox extremely slow opening new windows in comparison to tabs. [...]

  14. links for 2007-01-27 : smikwily.com Says:

    [...] Stop Browser Resizing In Firefox After getting tired of ads and pages resizing Firefox, I decided to look for a way to fix it. Pretty easy, as usual, when you know where to look for it. (tags: firefox firefox-extensions plugins) [...]

  15. Alex from Brussels Says:

    Ooffff… What a friggin’ relief! Many thanks!!!!

  16. porcelain duck Says:

    that’s great, didn’t know it was that easy to stop such an annoying thing, thanks!

  17. J Man Says:

    You are the MAN! Or woman. Whatever. You are it.

  18. Joe Says:

    You should also look at this link: http://www.mozilla.org/support/firefox/edit

    which explains that opening a special URL, “about:config”, will open a hidden editor allowing you to adjust special browser properties that are not exposed in the usual “Preferences” panels. Once you open this URL, scroll and look for ‘dom.disable_window_open_feature’ and set all the options to ‘true’ by clicking on each line (they toggle true/false). From then on, every window will be resizable, have scroll bars, and all the other features you normally expect in a window.

  19. bebo Says:

    All such functions (and furthermore tabbed browsing etc.) copied Firefox from Opera.
    Your linked article “What About Opera?” isn’t up to date. Opera can do everything what Firefox can do - and most things were first included in Opera and then in Firefox ;-)

  20. Matt Says:

    bebo: I’m not going to update an article I wrote in 2005, because at the time that was what Opera had issues with.

    Most of the points I brought up then still applies today. Opera suffers from feature-creep and is bloated with features most people won’t even use. Opera does a lot of things decent, rather than being really good at one thing, and this is because they stretch their programmers too wide to cover all the little things the browser does, rather than focus on the fundamentals. With Firefox, you can add features as you like, rather than be forced to deal with it in the UI.

    On top of that, Opera still suffers from irregular rendering issues, even though it complies with W3C standards very well.

    And don’t get me started on the UI, which is busy, complicated, and user-unfriendly. If you don’t mind wading through a slew of crap to get what you want with the browser, than I guess your patience is greater than mine when it comes to browsing online.

  21. Geektronica Says:

    Awesome, just what I was looking for (via Google) to stop wanted popups from shrinking my whole browser in single-window mode. Much appreciated.

  22. cosmic Says:

    Thank you so much for posting this solution. Often pages that display pictures would resize your browser, in theory to allow a small window to view the picture but for me, it was always too small. Now I can keep fullscreen goodness! :)

  23. Francoise Says:

    Thanks a lot. I didn’t think it was possible to do something about it but I got on this page through Stumble Upon and I’m glad it brought me there.

  24. ryan Says:

    thanks for the tip!

  25. good hack Says:

    good hack thanks!

  26. Ama Says:

    Thanks soooo much for this tip. This has been the bane of my browsing existence for ages now!

  27. Four Web Annoyances to Avoid on Your Site  »Technology News | Venture Capital, Startups, Silicon Valley, Web 2.0 Tech Says:

    [...] Window Resize - This one happens to me the most when I’m using StumbleUpon. I stumble for a while everyday and when I do this, I like to have multiple tabs open at the same time, and as it always happens, I will stumble on some photographer’s website and it will force the browser window to resize to fit the photograph on that particular page. No matter how good your work is, I will give it a negative vote for resizing my window without my permission. (Here’s an easy way to get around this). [...]

  28. Thank You, Chuck Norris. » Blog Archive » Resize Browser Says:

    [...] link has a great tip on how to prevent Firefox from resizing pop-up windows from Real Estate or Auto [...]

  29. Share a random computer tip you know - Wise Bread Forums Says:

    [...] At top on the menu, choose Tools, then click Options. Go to the Content tab, and to the right of Enable Javascript is the Advanced button. Click that and uncheck the selection “Move or resize existing windows”. Link [...]

  30. Mich@ Says:

    Thanks a bunch for this trick - you saved my PC from being thrown outta the window!

  31. Stop browsers re-sizing you Firefox window | Ronan's Blog Says:

    [...] this happened a few times I went to look for a way to Stop browser re-sizing you Firefox window and I was really quite [...]

  32. jeremy Says:

    Both methods dont work for me, specifically this page: http://bikeforums.net/showthread.php?t=398292

    I tried restarting FF, but nothing.

  33. Ron Says:

    If you have not done it yet reduce memory hogging when you minimize firefox. type in about:config in address bar THEN right click in the white field, CHOSES NEW then BOOLEAN Type in config.trim_on_minimize and click OK then highlight TRUE and click ok.
    Restart the browser. When you have to the properties tab you can watch all excess memory be dumped when you minimize firefox. Ron

  34. Ron Says:

    PARDON ME — OPEN WINDOWS TASK MANAGER and then in properties tab you can see memory use drop when minimized. SORT by Mem Usage so firefox is at or near top and watch it. Ron

  35. Matt Says:

    Ron: Additionally, this page at Mozillazine lists more ways to conserve memory usage in Firefox.

  36. Paul A'Barge Says:

    The instructions for using about:config should be changed as the current release of Firefox (3.1) presents the options differently. Now, use the right-mouse-click context-sensitive pop up menu and choose “toggle”.

Leave a Reply