Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Auto-zoom new Safari windows to near full-screen Web Browsers
Aren't you tired of needing to resize Safari (or other browsers) to the maximum size everytime you open a new wondow? Well, I found this script. Have it as your Home Page and it'll zoom the window for you.
javascript:window.resizeTo((screen.width-150),(screen.height-50));window.moveTo(0,0)
[robg adds: I'm not sure I understand the need to zoom every browser window to full size, but this scriptlet will definitely do the trick. Personally, I prefer tabs, so that I set my window size once and then don't pay any attention to it, but I know tabs vs. windows is a matter of personal choice!]
    •    
  • Currently 2.75 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[41,578 views]  

Auto-zoom new Safari windows to near full-screen | 11 comments | Create New Account
Click here to return to the 'Auto-zoom new Safari windows to near full-screen' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Auto-zoom new Safari windows to near full-screen
Authored by: bluehz on May 19, '03 10:54:39AM
Safari can be a bit finicky about JavaScript - I suspect its a security issue. Anyway - tried this hint, selecting:

Preferences > General
New Windows Open With Home Page
and put this as Home Page:
javascript:window.resizeTo((screen.width),(screen.height));window.moveTo(0,0)

Generates an error dialog:

Can't Use Javascript Here
Cannot run the script ?window.resizeTo((screen.width),(screen.height));window.moveTo(0,0)? because Safari does not allow JavaScript to be used in this way.


[ Reply to This | # ]
Auto-zoom new Safari windows to near full-screen
Authored by: samsprograms on May 19, '03 03:39:42PM

Same problem here......



[ Reply to This | # ]
Auto-zoom new Safari windows to near full-screen
Authored by: iPodder on May 19, '03 10:01:40PM

Yeah, Safari doesn't like being told what to do as a home page.



[ Reply to This | # ]
Auto-zoom new Safari windows to near full-screen
Authored by: felium on May 19, '03 11:01:17AM

i created a new bookmark named "FullScreen" and added this javascript as the URL:

javascript:window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight);

dragging the bookmark to the bookmark bar now gives me a selective one click > full screen browser window... unfortunately, clicking this as safari is loading a document stops the page from loading in the new beta (v74), the previous beta worked fine.



[ Reply to This | # ]
page loading works for me
Authored by: echo on May 19, '03 03:13:29PM

"clicking this as safari is loading a document stops the page from loading"

I have used these javascript bookmarklets for years for resizing windows. What you describe, the page not finishing loading, I had noticed in IE, and was happy to see it continues to load in Safari. This is still true with the latest beta.



[ Reply to This | # ]
Auto-zoom new Safari windows to near full-screen
Authored by: bluehz on May 19, '03 04:43:23PM
Yes - I have used a bookmark bar version of this tip for years in various browsers. Was thinking it would be nice if whenever you opened a new window it would actually zoom full screen (or desired width). I suppose since Safari won't take JS directly like that you could do something like create a simple blank page with nothing but an ONLOAD statement issuing the JS, save that locally, then point your "home" to that. Create this file, save it locally (ex. ~/Documents)

<html>
<head>
	<title>Home</title>
</head>
<body inload="window.resizeTo((screen.width),(screen.height));window.moveTo(0,0) ">
</body>
</html>
The inload above is supposed to be "onload", but the forum keeps changing it. After saving the above file (ex. home.html), drag it onto Safari, then open Safari Pref > General > and select "Set To Current Page", Now whenever you open a new window it will go full screen. You can of course alter the dimensions above as desired.

[ Reply to This | # ]
Auto-zoom new Safari windows to near full-screen
Authored by: mahakali on May 19, '03 05:29:45PM
You can also use keyboard shortcut command-# if you put it in the bookmark bar. To look up the shortcuts, check "Include bookmarks bar" from "Bookmarks menu" in the preferences. You'll see something like this on your bookmark menu.

[ Reply to This | # ]
Awesome!
Authored by: Cantus on May 19, '03 10:35:25PM

Great as a complement to the original hint! I myself dislike SEEING the Bookmarks bar, so I can just hide it but enable it in the Bookmarks menu and using its keyboard shortcuts for easy access! Great!



[ Reply to This | # ]
Auto-zoom new Safari windows to near full-screen
Authored by: Fofer on May 19, '03 12:29:41PM

This is also included as a script here:
http://www.apple.com/applescript/safari/



[ Reply to This | # ]
Auto-zoom new Safari windows to near full-screen
Authored by: a1291762 on May 19, '03 10:09:22PM
I'm not sure I understand the need to zoom every browser window to full size

I think it's a Windows habit that people get used to. I prefer to have overlapping windows (that's why Window Managers exist after all) so I can see all my concurrent tasks. All the Windows people I know use fullscreen for everything.

Project Builder is probably the only app that I run fullscreen and that's only because it was designed to run fullscreen.

[ Reply to This | # ]

Auto-zoom new Safari windows to near full-screen
Authored by: li_hao_ on Jul 28, '03 09:34:29AM
To get REALLY full-screen Safari, fetch a copy of my free-ware Safari plugin: Saft. Comments can be read or added at VersionTracker.

[ Reply to This | # ]