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


Click here to return to the 'Mailing Safari URLs via Mail - revisited' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Mailing Safari URLs via Mail - revisited
Authored by: bluehz on Mar 26, '03 10:07:55AM

Another similar javascript type link I use is one that resizes the current window in Safari. In my case I like the window full-screen, but others may prefer a different size (say for testing on smaller monitors, or leaving room for the doc, etc.)

1. Create a new bookmark in your bookmark bar - give it snazzy icon instead of text (see previous hints).
2. Assign this address:

javascript:moveTo(0,0);resizeTo(1147,825)

Note: the 2nd set of numbers is the width and height of the resized window. In my case I want fullscreen - so I just enter my screen resolution. If your monitor was 640x480 you would use "(640,480)" instead. Modify as desired.



[ Reply to This | # ]
resizeTo not working
Authored by: dashard on Mar 26, '03 10:39:46AM

resizeTo argument doesn't seem to work. Any ideas??
     Hmmmm...



[ Reply to This | # ]
resizeTo not working
Authored by: Voorburg on Mar 26, '03 10:55:10AM

Try a smaller size first and increase in gradually. When it's only 1 pixel too large is doesn't work anymore.
Jan



[ Reply to This | # ]
resizeTo not working
Authored by: dashard on Mar 26, '03 08:53:42PM
Actually got it to work. Here's the code:
javascript:moveTo(0,0),void(window.resizeTo(640,480))
Replace '640,480' with your desired window dimensions and you're good to go.
Remember: no space after the comma.

[ Reply to This | # ]
"Favelets"
Authored by: the_webmaestro on Mar 26, '03 10:49:39AM
This "tip" is something else RobG might want to move to stardom status, like the other e-mail one (a great tip, BTW).

The reason I mention this, is that it's not just for full screen, but what if you need to see what your web site looks like at 800x600? Or 640x480? When I was a code-monkey at buy.com, we used these little favelets to check our pages to make certain they did not have a horizontal scrollbar at 800x600 (one of our minimum requirements at the time). Tantek Çelik (project lead for Microsoft Internet Explorer for Mac v4x&5x) has created http://favelets.com/ a web site devoted to what he calls "favelets"--little bookmark javascript programs which can be used to do various things with the browser.

You can try these favelets right now by clicking them:

  • 640x480:
      javascript:void(window.resizeTo(640,480))
  • 800x600:
      javascript:void(window.resizeTo(800,600))
  • 1024x768:
      javascript:void(window.resizeTo(1024,768))
(just drag any of these to your toolbar!) There are also favelets to validate the current page, list all stylesheets, list style rules, view images, etc. Some work only in Mac IE 5, but many work in Windows as well. Some, like the reSizeTo() favelets, also work in Mozilla/Netscape. There're also links to other pages of favelets. BTW, some favelets which don't work in Windows IE from the personal toolbar *will* work if accessed from within an HTML page. Enjoy! ;-p

Web Maestro Clay p.s. These window resizers also work in Windows Explorer, although you have to hit the [Back] button after clicking them.

---
Father of Jeremy Logan Leeds

[ Reply to This | # ]

"Favelets"
Authored by: googoo on Mar 26, '03 11:26:51AM

You have an error in the 1024x768 javascript code. Replace the "x" with a comma, and it will work. Try this link:

  • 1024x768
    javascript:void(window.resizeTo(1024,768))

PS: Great hint, though! Thanks.



[ Reply to This | # ]
"Favelets"
Authored by: bluehz on Mar 26, '03 01:08:45PM

Couple of other nice favelet (aka bookmarkets) sites:

http://www.bookmarklets.com/tools/categor.html
http://www.squarefree.com/bookmarklets/
http://www.webreference.com/js/column35/



[ Reply to This | # ]
Mailing Safari URLs via Mail BROKEN in Panther
Authored by: stevec on Oct 29, '03 08:35:15AM

This seems to have broken in Panther, anyone have a clue how to fix it?



[ Reply to This | # ]
Mailing Safari URLs via Mail BROKEN in Panther
Authored by: alajuela on Dec 13, '04 11:03:13AM

Um, not for me.



[ Reply to This | # ]