搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 24 个回答
  • 190 人有此问题
  • 7 次查看
  • 最后回复者为 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.

由mgrad92于修改

所有回复 (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.

由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.

由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.

由jdvb于修改

  1. 1
  2. 2