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


Click here to return to the 'Set browser window size and position via URL parameters' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set browser window size and position via URL parameters
Authored by: rxcfc on Apr 22, '09 02:29:01PM

Maybe I'm wrong, but I thought the OP was suggesting that you use this as your Safari starting page to set your browser window to the size that you personally like. I didn't think he was suggesting that people put this on any public pages.



[ Reply to This | # ]
Set browser window size and position via URL parameters
Authored by: Neville Hillyer on Apr 22, '09 03:06:50PM

I am the OP and I had not intended my post to be anonymous. Rob has kindly agreed to correct this for me.

rxcfc is correct. I am only advocating that those who wish to can opt to control the default size/position of their home page. Putting such code on public pages would be most unpopular.

My experience is that, for various reasons, a few hours web browsing can result in browsers being closed with the final page in an unwanted position. I am surprised that browsers don't come with a control to at least start the day with user defined window size and position. There has been considerable recent interest in bookmarklets and JS in home page links (does not work for WebKit) to achieve this.

My page attempts to provide a simple cross browser/platform solution.



[ Reply to This | # ]
Set browser window size and position via URL parameters
Authored by: baltwo on Apr 22, '09 04:28:22PM

Then, if that's the case, this AppleScript application (which uses Safari, as an example) does the same thing without the cryptic URL tags. Change the bounds to suit your needs.

ell application "Safari"
activate
set the bounds of the front window to {552, 106, 1567, 1004}
end tell

Put it on the Dock and you're good to go.



[ Reply to This | # ]
Set browser window size and position via URL parameters
Authored by: Neville Hillyer on Apr 23, '09 02:56:51AM

A devilish device - perhaps it should be 'Tell' !



[ Reply to This | # ]
Set browser window size and position via URL parameters
Authored by: baltwo on Apr 24, '09 04:40:06AM

Ooops. A copy and paste error. Use Tell



[ Reply to This | # ]