Years ago, a Lifehacker article gave me exactly what I needed: a quick and simple way to resize the various Firefox windows I need open at my office to make them precisely the size and position I need them. — http://lifehacker.com/292901/resize-firefox-with-a-bookmarklet
Unfortunately, upgrading to Firefox 7 seems to prevent these bookmarklets from working. What do I need to do to get them up and running again? It might sound unusual, but this is a critical issue for me. I've downgraded to 6.0.2 until I find a solution that works.
Okulungisiwe ngu mgrad92
Eminye Imininingwane Yohlelo
NoScript (I think this is the only plugin I've got that's relevant to this issue)
- I-ejenti Engumsebenzisi:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Show in Finder
Empty Cache Button
Evernote Web Clipper
Flash Video Downloader Youtube Downloader Facebook
Form History Control
User Agent Switcher
Read It Later
Text Area Resizer and Mover
Intel Inc. -- Intel GMA 950 OpenGL Engine -- 1.4 APPLE-1.6.36
GPU Accelerated Windows
0/1. Blocked for your graphics card because of unresolved driver issues.
I tried that resize bookmarklet. It does not work. I used bookmarklets that change the colours on web pages, and those do work. Perhaps there is something about that code that Firefox does not recognize as valid?
The resize bookmarklets are broken because of this change: Bug 565541 - Web sites shouldn't be allowed to resize main window
I don't know of a way to make the bookmarklets work again, but here's an add-ons that might help instead: https://addons.mozilla.org/en-US/firefox/addon/firesizer/
Glancing at the Firesizer page on addons.mozilla.org, it's not even compatible with Firefox 7. From what I can tell at first glance, it doesn't seem to reposition windows, anyway.
Surely someone knows a way to get this function back — I can't believe anyone would think it a good idea to just sweep away bookmarklets. Upgrading to Firefox 7 isn't even a question for me until I can figure this out.
The bookmarklets I've been using essentially follow this format:
They work fine in Firefox 6.0.2, but not in 7 — apparently because someone thought it was a "bug" that someone should want to use bookmarklets to set up their work environment: Bug 565541 - Web sites shouldn't be allowed to resize main window
-> click OK on Options window -> Restart Firefox
Check and tell if its working.
You can run this code in the Firefox > Web Developer > Error Console and click the Evaluate button.
var Cc=Components.classes, Ci=Components.interfaces; var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator); var nb = wm.getMostRecentWindow("navigator:browser"); nb.window.moveTo(1,1);nb.window.resizeTo(1260,screen.availHeight);
Your code did work when "evaluated", but how do you get that code in to menu bar?
You can't, you can only run that code via the Error Console or via an extension (Keyconfig, custom buttons, mouse gesture) that has elevated privileges to run code at chrome level.
in the url bar, enter "about:config" and filter for the key "services.sync.prefs.sync.dom.disable_window_move_resize" and change that value to false to get the old behavior back.
That is the pref that sync uses to synchronize prefs: services.sync.prefs.sync.dom.disable_window_move_resize
You need the main pref dom.disable_window_move_resize to have effect in your current Firefox profile.
This makes you vulnerable to websites that change the current browser window.
For what it's worth, I don't think vulnerability is an issue, in my case. My moveTo and resizeTo bookmarklets were working right up through FF 6.0.2, and I never experienced any problems with websites changing my browser windows. (I'll bet 85-90 percent of my time in Firefox is spent using my newspaper company's in-house Web publishing CMS thin client, tho', so I don't imagine I'd hit many abusive sites, anyway.)
Okulungisiwe ngu mgrad92
This is not a bug but a feature.
I use this FEATURE in all my in-house apps, from accounting, billing, client records, reports, testing of websites, personal websites, hundreds of thousands lines of code.
Why would you remove a feature and not make a way for the end user to override the setting and let the USER choose to have a feature.
If all manufactures of products tried to "protect" their clients from harm you would not be able to do much.
Anything can be used for purposes that they are not designed or intended for. But that is up to the end user not necessarily the manufacturer.
I use the web browser more for in-house apps for cross-computer-operation system-versions compatibility. It is faster and easier that writing code in C# or VBS to create a useful application.
As for malicious websites, I know they are out there, have visited a couple, but with all the new features of anti-virus software screening websites before you visit has greatly reduced those attacks.
And for every lock there will be a expert locksmith.
So, again why are YOU choosing for ME to stop or not allow a function that is more useful than harmful? Did I promote you to a person that has control of my life?
I will be downgrading to version 6 and staying there until a sane resolution to this problems is made, if at all...
I've seen a web site that alters the window size ... annoying.
Bank of America has a "help us now by completing a survey" button, which I click accidentally once in a while. It opens a survey in a pop-up window. But I have FF set to open pop-ups (at least those that are not blocked) in another tab ... not a pop-up window. The web site doesn't know that, so when it resizes the pop-up-that's-really-just-a-tab, it resizes the whole window.
That's annoying. So it's nice to NOT have this behavior in FF v7. But, like others, I have a resize bookmark ... and it stopped working. So I reverted to FF 6.0.2. I'll tolerate the occasional Bank of America flub in order to regain my resize button.
Having a workround that relies on users changing their settings is rubbish. A web site is supposed to be universal.
Surely, it is not beyond the wit of man to offer a browser option like allowing popups! The default can be either way.
Couldn't agree more! This IS - or was! - a FEATURE ... a USEFUL feature. Firefox designers should NOT destroy this perfectly good - and VERY useful! - feature. Or if they insist on doing so, at least provide a way - e.g. in Preferences - for us to restore this feature that we didn't want to loose in the first place!
The problem seems to be related to Firebug, no more problems after disabling. Firebug 1.8.3 / FF7.0.1 / Windows XP
http://code.google.com/p/fbug/source/detail?r=11993 fixe is fine
Okulungisiwe ngu thierry.l
This change is a design defect. So-called bug 565541 "Web sites shouldn't be allowed to resize main window" is a false assertion for two reasons:
My copy, Firefox 7.0.1 which is still the latest according to its "check for updates" has the option to disable resizing or repositioning under Tools | Options | Content | Advanced.
Instead of just "Allow scripts to  move or resize existing windows  raise or lower windows etc."
you might wish to have "Allow scripts to  move or resize the existing window they are running in  move or resize existing windows other than the one they are running in  open, move and resize new (popup) windows  raise or lower windows etc."
services.sync.prefs.sync.dom.disable_window_move_resize set to false
suggested by zuzzabuzz works if you click on a bookmark, but is useless for invoking keyword shortcuts at the location bar. Putting 27 resize bookmarklets into a folder as a drop-down menu on bookmarks bar where they can have full titles is not much of a solution. One of my reasons for switching to Firefox was to remove limitations on bookmarklets (IE limited size), I did not switch to Firefox because I wanted to compromise.
Okulungisiwe ngu David McRitchie