
Resizing Firefox screen to specific size with bookmarklet couldn’t be easier. I’ve mentioned about how you can create your own bookmarklet earlier, and here’s something better. By adding little scripts to these bookmarklet; not only it resizes but now it can re-position. Whether you want a full screen browser, a 1024×768 positioned in the center of your screen or 800 (width) with screen fit height browser, it’s all within one click.
Behavior of each of the bookmarklets are illustrated in the table below. Test the script action by clicking on the hyperlink. To use, drag them over to your Firefox Bookmark Toolbar, or better still create a folder for it if you are going to use multiple of them.
Firefox resizing bookmarklet: With Re-positioning
![]() Max! |
![]() 1024xMax! |
![]() 800xMax! |
|
![]() 1280×800 C |
![]() 1200×800 C |
![]() 1024×768 C |
![]() 800×600 C |
![]() 1024×768 TL |
![]() 1024×768 TC |
![]() 1024×768 TR |
|
![]() 800×600 TL |
![]() 800×600 TC |
![]() 800×600 TR |
Related Contents |
Sponsors |
|
Posted by hongkiat in How-To , at 02.14.08 |
|






































Comments
danny February 17th, 2008
Man, you did it again. Wonderful tip man. Something that will help a lot of people.
ReplyChet October 6th, 2008
thanks! very helpful!
ReplyLuis December 10th, 2008
Hey – great work.
ReplyNote that on Firefox 3.0.4 – Mac OS X, the “0,0″ positioning doesn’t seem to work! – I fixed this by using “1,0″ instead.
Joshua March 21st, 2009
I’m looking for a way to resize a window, put it into the bottom right corner, and set it to a specific url (i.e. google.com). How do I do this? I’ve been looking all over and I can’t find it….
ReplyShaun_R July 25th, 2009
Hey,
Thanks for the scripts. However, it seems that under Firefox 3.5 for Mac, they don’t work… I don’t have a PC to test it on.
Any chance of fixing? Thanks!
Shaun_R
ReplyNavjot Singh October 3rd, 2009
Does not work in Firefox 3.5 on Windows Vista.
ReplyMark November 12th, 2009
This is the most amazing thing. I am so-o-o grateful you created this (and that I was able to find it…I searched a lot of sites before I hit this one).
Recently a pop-up changed my default window size to approximately 1″ x 1″. Tried manually resizing them all.
That fix seemed sufficient (visually), but caused problems: for example, after doing this, my XP toolbar refuses to auto-hide until I’ve Alt-Tabbed through nearly all windows. (For cxample if I have 10 windows stacked on the toolbar, auto-hide won’t come back until I’ve manually gone through and made 9 of those windows the current one, even if only for a moment on each.)
In hopes of prevent future mass auto-resizing without my consent, I’ve gone into “about:config” and changed this setting to have a value of “false”:
dom.disable_window_open_feature.resizable
Don’t know whether that’ll work, but figured it was worth a try.
Replylinks london January 21st, 2010
Thanks for the scripts. However, it seems that under Firefox 3.5 for Mac, they don’t work… I don’t have a PC t
Read more: http://www.hongkiat.com/blog/firefox-resize-bookmarklet-now-with-re-positioning/#ixzz0dECmHQcL
Replylowrykn February 4th, 2010
For anyone who says they don’t work…
Tools >> Options >> Content >> Enable Javascript >> Advanced…
Make sure that you allow scripts to ‘Move or resize existing windows’
Also – for anyone having problems with the positioning, check the bookmarklet. Some are using AvailWidth twice. The AvailHeight should be used for the last parameter.
For example, 1024×768 C should be:
Replyjavascript:self.resizeTo(1024,768);self.moveTo((screen.availWidth-1024)/2,(screen.availHeight-768)/2);
Trackbacks