X
Tap here to go to the mobile version of the site.

Support Forum

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

Posted

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.

Modified by mgrad92

Additional System Details

Installed Plug-ins

NoScript (I think this is the only plugin I've got that's relevant to this issue)

Application

  • User Agent:

More Information

Application Basics
Name
Firefox
Version
6.0.2
User Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Profile Directory
Show in Finder
Enabled Plugins
about:plugins
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
1Password
3.8.6.b3
true
onepassword@agilebits.com
Adblock Plus
1.3.9
true
{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
Bloody Vikings!
0.5.3
true
bloodyvikings@ffs.bplaced.net
Empty Cache Button
1.9
true
{4cc4a13b-94a6-7568-370d-5f9de54a9c7f}
Evernote Web Clipper
5.0.0.177572
true
{E0B8C461-F8FB-49b4-8373-FE32E9252800}
Flash Video Downloader Youtube Downloader Facebook
2.0.33
true
artur.dubovoy@gmail.com
Flashblock
1.5.15.1
true
{3d7eb24f-2740-49df-8937-200b1cc08f8a}
Force-TLS
3.0.0
true
forcetls@sid.stamm
Form History Control
1.2.9.3
true
formhistory@yahoo.com
MeasureIt
0.4.10
true
{75CEEE46-9B64-46f8-94BF-54012DE155F0}
NoScript
2.1.3
true
{73a6fe31-595d-460b-a920-fcc0f8843232}
User Agent Switcher
0.7.3
true
{e968fc70-8f95-4ab9-9e79-304de2a71ee1}
Better Facebook!
5.931
false
betterfacebook@mattkruse.com
bit.ly preview
1.272
false
bitlypreview@jay.ridgeway
FireText
1.0
false
FireText@hiqulabs.com
Read It Later
2.1.3
false
isreaditlater@ideashower.com
Text Area Resizer and Mover
1.82
false
{bc7030f4-a50b-464f-9bff-45a3a9e97125}
Modified Preferences
Name
Value
accessibility.typeaheadfind
true
accessibility.typeaheadfind.flashBar
0
browser.history_expire_days.mirror
180
browser.history_expire_days_min
90
browser.places.importBookmarksHTML
false
browser.places.importDefaults
false
browser.places.leftPaneFolderId
-1
browser.places.migratePostDataAnnotations
false
browser.places.smartBookmarksVersion
2
browser.places.updateRecentTagsUri
false
browser.startup.homepage
http://www.tampabay.com
browser.startup.homepage_override.buildID
20110902133214
browser.startup.homepage_override.mstone
rv:6.0.2
browser.tabs.tabMaxWidth
250
browser.tabs.tabMinWidth
100
browser.tabs.warnOnClose
false
browser.zoom.full
false
dom.disable_window_flip
false
extensions.lastAppVersion
6.0.2
font.default.x-western
sans-serif
font.name.sans-serif.x-western
Verdana
font.name.serif.x-western
Georgia
font.size.variable.x-western
14
general.useragent.extra.betterprivacy
network.cookie.lifetimePolicy
2
network.cookie.prefsMigrated
true
network.protocol-handler.warn-external.itms
true
places.database.lastMaintenance
1316027324
places.history.expiration.transient_current_max_pages
96636
places.last_vacuum
1292534043
print.macosx.pagesetup-2
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHBsaXN0IFBVQkxJQyAiLS8vQXBwbGUvL0RURCBQTElTVCAxLjAvL0VO…
print.print_bgcolor
true
print.print_bgimages
true
print.print_command
print.print_downloadfonts
false
print.print_evenpages
true
print.print_footerleft
print.print_footerright
print.print_headerleft
print.print_headerright
print.print_in_color
true
print.print_margin_bottom
0.5
print.print_margin_left
0.5
print.print_margin_right
0.5
print.print_margin_top
0.5
print.print_oddpages
true
print.print_orientation
0
print.print_page_delay
50
print.print_pagedelay
500
print.print_paper_data
0
print.print_paper_height
11.00
print.print_paper_size
738776616
print.print_paper_size_type
1
print.print_paper_size_unit
0
print.print_paper_width
8.50
print.print_printer
print.print_reversed
false
print.print_scaling
1.00
print.print_shrink_to_fit
true
print.print_to_file
false
print.print_unwriteable_margin_bottom
56
print.print_unwriteable_margin_left
25
print.print_unwriteable_margin_right
25
print.print_unwriteable_margin_top
25
privacy.clearOnShutdown.cookies
false
privacy.clearOnShutdown.extensions-sessionmanager
false
privacy.clearOnShutdown.formdata
false
privacy.clearOnShutdown.history
false
privacy.clearOnShutdown.offlineApps
true
privacy.cpd.cookies
false
privacy.cpd.formdata
false
privacy.cpd.sessions
false
privacy.donottrackheader.enabled
true
privacy.item.history
false
privacy.sanitize.migrateFx3Prefs
true
privacy.sanitize.promptOnSanitize
false
privacy.sanitize.sanitizeOnShutdown
true
privacy.sanitize.timeSpan
0
security.disable_button.openDeviceManager
false
security.warn_viewing_mixed
false
Graphics
Adapter Description
0x24000,0x20400
WebGL Renderer
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.

ScottH 0 solutions 2 answers

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.

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.
Cattleya 0 solutions 5 answers

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.

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.

Modified by Cattleya

cor-el
  • Top 10 Contributor
  • Moderator
17352 solutions 156837 answers

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.

Quote: "Firefox 8 blocks popup from bookmarklets". I also find that quit inconvenient.<br /> 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.<br /> 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.

Modified by cor-el

jdvb 0 solutions 2 answers

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.

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 &lt;div> with absolute position that floats ontop of normal content that is removed on click. This &lt;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 &lt;div>'s that float, or simply wait untill users find other browsers more suited to browse the web.

Modified by jdvb