Riposte

Saturday, April 14, 2007

 hot tip: resize firefox to preset sizes
Just today I got myself a brand new computer monitor. I'm rolling on dubs with 22 inches of wide screen goodness. Since this is my first foray into aspect ratios wider than 4:3 (namely 16:10), I have to get used to efficiently using the extra width. Since the only use for computers is the interwebs, my web browser is the #1 item that needs to be size managed. If you're old enough, you remember when websites were made to fit onto 640x480 screens. Nowadays the standard seems to be 800x600 for sites that are frequented by noobs, or 1024x768 for sites that may have a more sophisticated clientèle. I needed a way to get my browser to snap to that size. Height and width can be your preference, for my monitor, I chose 1024x1000 which snaps to the width and fills most of my screen vertically.

Now onto how I did it and how you can too...

  1. Get to the "New Bookmark" window. You can do this by right clicking your Bookmarks Toolbar or right click the bookmarks area in your Bookmarks menu bar.
  2. You should now see the window picture on the right. In the name section, add something to describe what the button does. Mine is just named resize, but since you can set multiple bookmarks to multiple sizes, you may want to mention what size this button accomplishes in that field.
  3. In Location you need to type in javascript:resizeTo(1024,1000); You can replace 1024 with and width that you'd like and do the same for 1000 which would be the height.
  4. Keyword is the neat field! You can basically create a keyboard shortcut for these. The simple way is to just use something like "r" like I did. All you have to do is type r into the address bar and hit Go and you'll have a resized window.
  5. Add an optional description and you're set! You can follow step 6 for an advanced function that uses the keyword field.
  6. Optional: Instead of placing one or both sizes in the Location field you can use strings. If you're going to keep your browser the same height all the time, you can replace the width with %s (javascript:resizeTo(%s,1000);). This will make the toolbar button non-functional, so you should best bury it in a folder in the bookmarks menu. When you want to resize a window, simply go to the address bar and type in your keyword (in my case, r) then type in your width. If I wanted a 1280 pixel wide page, I'd type in r 1280 and poof! You can do the same thing by replacing the width, the comma, and the height with %s (javascript:resizeTo(%s);) and then simply type in the entire size into your keyword. r 800,600 will get you a tiny 800 by 600 window.
A single tool bar button is good for anyone who is looking to occasionally adjust the size of your windows but go back to a set size. The string functions, or making multiple buttons with different sizes, would be good for your average web developer looking to size test new page layouts. Enjoy!
Comments
Web developers will no doubt find that really handy. A bookmarklet to make your window 1024x768 to appease those old people who snuck onto the internet.
Don't forget to make sure that Firefox is set to allow javascript to resize windows. Tools > Options > Content > Advanced

Spiffy trick. :)
Post a Comment
return to the front page

ABOUT ME
jay reed iii (wikipedia)
25 • male
criminal justice • camden county college
winsow townshipnew jerseyusa

WHERE AM I


MUSIC

weekly top ten bands from last.fm

FRIENDS' BLOGS
duncaniainbryn

ARCHIVES
01.2006 02.2006 03.2006 04.2006 05.2006 06.2006 07.2006 08.2006 09.2006 10.2006 11.2006 12.2006 01.2007 02.2007 03.2007 04.2007 05.2007 06.2007 07.2007 08.2007 09.2007 10.2007 11.2007 12.2007 01.2008 02.2008 03.2008 04.2008 05.2008 06.2008 07.2008 08.2008 09.2008 10.2008 11.2008 12.2008 01.2009 02.2009 03.2009 04.2009 05.2009

PHOTOS

picasaflickr

XBOX360
A1337haxor's Gamercard
my xbox can blog (rss)

READER

Powered by Blogger i power blogger
syndicate
     - add to google


Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.