Etsi tuesta

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Lue lisää

How can I get Javascript moveTo and resizeTo bookmarklets working again?

  • 24 vastausta
  • 190 henkilöllä on sama ongelma
  • 2 näyttöä
  • Viimeisin kirjoittaja jdvb

more options

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.

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.

Muokattu , muokkaaja mgrad92

Kaikki vastaukset (4)

more options

cor-el referred me to the bugzilla thread. Following that thread, I realized that the 'advanced' settings had already addressed the issue, but the coders went ahead and disabled the javascript resizeto() and moveto() functions, while checking the opener and other properties to determine the "main" window.

I agree that the original 'bug' was bogus, and the advanced setting to disable resizing could have become the default, but still easily changed.

more options

So bad, Firefox 8 blocks popup from bookmarklets, Firefox isn't suck enough ? I'm a Firefox fan, but now I think I have to move to Opera.

Muokattu , muokkaaja Cattleya

more options

Quote: "Firefox 8 blocks popup from bookmarklets".

I also find that quit inconvenient.
I now need to enable the pop-up blocker to use bookmarklets from www.squarefree.com to display CSS and JS files and ones that I made myself.
Well at least that still works, a lot of other bookmarklet have stopped working and you now need to use the Scratchpad to run JS code.

Muokattu , muokkaaja cor-el

more options

Now I wonder if I get it right:

So a window is not allowed to be resized by itself, as then it is considered to be the "main window".

Another window that must have created this window must do it instead.


So therefore my popup that shows an image may not be resized simply by itself after getting the image width and height. So a solution would be to write a script that creates a <div> with absolute position that floats ontop of normal content that is removed on click. This <div> can then be changed in size as desired.


Basically mozilla found that the functionality as provided by window.resizeTo should be removed entirely. I wonder what will become of this, if FF remains alone on this point of view I sure hope they will reconsider. If not I will either have to recode my popups into emerging <div>'s that float, or simply wait untill users find other browsers more suited to browse the web.

Muokattu , muokkaaja jdvb

  1. 1
  2. 2