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

Add a quick-access Google Related shortcut to Safari Web Browsers
You can acces the bookmarks in the Safari "Bookmark Bar" using the command key and a number represnting the order of the desired bookmark in the bar (see this hint). The neat thing is the bookmarks can be a line of JavaScript instead of an URL. Create a toolbar bookmark with the Google Scout code in it:
javascript:void(location.href='http://www.google.com/search?
client=googlet&q=related:'+location.href)
Enter as one line without any spaces! Shown on two lines for narrower display...

Once created, you can get Google's "related pages" for the page being displayed at the press of a key combination. Note: If you have folders in your Bookmarks Bar they are skipped when determining the number to press.

[robg adds: The easiest way to add the bookmark is to copy and paste the line of JavaScript into the Safari's address bar, and then just drag it onto the bookmark bar by grabbing the icon next to the address, and type in a short name when prompted.]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[6,337 views]  

Add a quick-access Google Related shortcut to Safari | 6 comments | Create New Account
Click here to return to the 'Add a quick-access Google Related shortcut to Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add a quick-access Google Related shortcut to Safari
Authored by: tandemrepeat on Feb 20, '03 06:49:43PM
This works beautifully - very cool...I'm still being amazed by the degree of UI integration in OSX...

[ Reply to This | # ]
Add a quick-access Google Related shortcut to Safari
Authored by: rhruska on Feb 25, '03 03:10:40PM
Lots of other link-apps (bookmarklets) here. Most of these work in any javascript-enabled browser... but the command key short-cut in Safari adds to their value.

[ Reply to This | # ]
Add a quick-access Google Related shortcut to Safari
Authored by: Abq_eRic on Mar 09, '03 11:07:54AM

I am slowly being won over to Safari from OW, but miss the shortcuts.

I wonder if javascript can provide similar function, by grabbing text from the location toolbar and inserting it into a search URL.



[ Reply to This | # ]
Add a quick-access Google Related shortcut to Safari
Authored by: bluehz on Feb 21, '03 02:15:26AM
I use this to full-screen safari window. Got tired of that dang crashing APE crap (ala FullScreenSafari).

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

Change the 1147,825 above to your screen size/resolution or to whatever you want it to zoom to.

Just create bookmark with that as the url, and move it into the farthest position to the left on the bookmarks bar and you can then go fullscreen with cmd+1

 



[ Reply to This | # ]

Add a quick-access Google Related shortcut to Safari
Authored by: mbotta on Feb 25, '03 02:28:31PM

Is it possible in Javascript to have a separate window containing this page?

And considering v0.62 of Safari adds tabs, would it be possible to have a separate tab, behind the current tab, containing this page?

Thanks,

mbotta



[ Reply to This | # ]
Add a quick-access Google Related shortcut to Safari
Authored by: Brontojoris on Apr 29, '03 02:11:41AM

Not sure where I found this, but it doesn't require any modification:

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

As a bonus, it works with the dock up or down.

You can also do nifty thinks like:
javascript:self.resizeTo(780,screen.availHeight);

This just makes a tall browser window that is wide enough for most sites such as MacOSXhints.

Finally, here is a mail this page link to put in safari's bookmarks bar:
javascript:location.href='mailto:?SUBJECT='+document.title+'&BODY='+escape(location.href)



[ Reply to This | # ]