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

Use Safari's bookmark bar to simulate Camino keywords Web Browsers
If you miss Camino/Mozilla keyword bookmarks in Safari, you might find this useful. Take the following template, change a few things, and drag it to your bookmark bar. On a keystroke (Command-digit, where 'digit' is from 1 to 9 for the first nine bookmarks), a dialog will pop up, you can enter your query/text, press enter, and voila! Pseudo-keyword bookmark! Here's the generic template:
javascript:q=prompt('Term:','');location.href='http://your.site.here'+q+'/trailer';
Where +q+ is a stand-in for the %s one enters in Camino keyword bookmarks. You can then populate your bookmark bar with icons and run keyword queries in fewer keystrokes then on Camino. Read the rest of the hint for the JavaScripts I'm using...

Each of the following is one long line, and should be entered without spaces or line breaks.

Kill embeds
javascript:(function()%7Bvar%20d=document;%20function%20K(N,t)%20%7B%20var%20b
%20=%20d.createElement(%22div%22);%20b.style.width=N.width;%20b.style.height=N.height;
%20b.innerHTML=%22%3Cdel%3E%22%20+%20t%20+%20%22%3C/del%3E%22;%20N.parentNode.
replaceChild(b,N);%20%7D%20function%20Z(t)%20%7B%20var%20T%20=%20d.getElementsByTagName
(t),%20i;%20for%20(i=T.length-1;i+1;--i)%20K(T%5Bi%5D,t);%20%7D%20Z(%22object%22);%20Z
(%22embed%22);%20Z(%22applet%22);%20Z(%22iframe%22);%7D)();
Kill Images
javascript:(function()%7Bfunction%20toArray%20(c)%7Bvar%20a,%20k;a=new%20Array;
for%20(k=0;%20k%3Cc.length;%20++k)a%5Bk%5D=c%5Bk%5D;return%20a;%7Dvar%20images,%20img,
%20altText;images=toArray(document.images);for%20(var%20i=0;%20i%3Cimages.length;%20++i)
%7Bimg=images%5Bi%5D;if(img.alt==null)img.alt=%22%20%22;altText=document.createTextNode
(img.alt);img.parentNode.replaceChild(altText,%20img)%7D%7D)();
Send page in email
javascript:location.href='mailto:?SUBJECT='+document.title+'&BODY='+escape
(location.href)
Define word
javascript:q=prompt('Word:%20','');location.href='http://dictionary.reference.com/
search?q='+q';
Visit Yahoo! Group
javascript:q=prompt('Yahoo%20Group:%20','iitd');location.href='http://groups.
yahoo.com/group/'+q+'/messages';
Get Yahoo! Directions
http://maps.yahoo.com/py/ddResults.py?Pyt=Tmap
Of course, this is assuming you don't mind remembering numbers instead of the bookmark keyword, and don't have many bookmarks already...
    •    
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[13,115 views]  

Use Safari's bookmark bar to simulate Camino keywords | 13 comments | Create New Account
Click here to return to the 'Use Safari's bookmark bar to simulate Camino keywords' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Faster how?
Authored by: monickels on Apr 30, '03 10:49:04AM
You wrote: ...fewer keystrokes than on Camino...

You can't get faster that typing "g [searchterm]" in the address/location field of Camino for a Google search. It's part of the bookmark shortcut setup detailed elsewhere on this site. I've also set up one for VersionTracker (v [searchterm]) and Dictionary.com (d [searchterm]). One character plus the thing you're looking for. That's fast.

---
World New York
http://www.worldnewyork.org

[ Reply to This | # ]

Faster how?
Authored by: amit_kr on Apr 30, '03 10:51:33AM

(I would of course like Safari to support Camino style bookmarks
too, but anyway:)

Here's how:
g term <RET> = 2 + term + 1 keystrokes
Cmd-3 term <RET> = 1 + term + 1 keystrokes

:-)

Amit



[ Reply to This | # ]
is faster
Authored by: Krioni on Apr 30, '03 05:54:54PM

<blockquote>
Here's how:
g term <RET> = 2 + term + 1 keystrokes
Cmd-3 term <RET> = 1 + term + 1 keystrokes
</blockquote>

Actually, nothing guarantees that you're already IN the address
bar, so Camino needs Cmd-L first, too.

Hmmm...it's now 2 less keystrokes for Safari. Oh, btw, Camino's
way IS much cooler, just not really fewer keystrokes.



[ Reply to This | # ]
Preview of the bookmark bar...
Authored by: amit_kr on Apr 30, '03 10:54:17AM

And <a href="http://homepage.mac.com/amit.kumar/Random/
BookmarkBar.jpg">this is how</a> a bookmark bar might look
with these bookmarks.



[ Reply to This | # ]
Preview of the bookmark bar...
Authored by: amit_kr on Apr 30, '03 10:55:30AM
Aieeee. Clickable: And this is how a bookmark bar might look with these bookmarks.

[ Reply to This | # ]
Dude, just go to bookmarklets.com
Authored by: bongo on Apr 30, '03 06:13:22PM
Why not just go to a site like bookmarklets.com and get all your bookmarklets there? Most of them are platform-neutral.

There's also a handy feature that lets you easily build your own custom search bookmarklet.

[ Reply to This | # ]
Use Safari's bookmark bar to simulate Camino keywords
Authored by: bluehz on May 01, '03 11:58:39AM

I don't really consider these "keywords". At least the last time I
used Camino - I assigned "Keywords" to certain bookmarks,
There was an extra field in the bookmark definition dialog that
allowed you to add a "keyword". For example - I used to have
"hints" as my keyword for MacOSXHints. At any time I could
type hints in the location bar and it would take me to
MacOSXHints.

The stuff you guys are talking about seems to me to be more
"keyword search" oriented.

... at least in my opinion.



[ Reply to This | # ]
Use Safari's bookmark bar to simulate Camino keywords
Authored by: kash650 on Jan 26, '11 08:33:27PM

whatever happened to this? i can still use my searches like "g" for google and "gi" for google images and i had about 10 others but now i can't go back to add any more but i can still use them. do you know how to get to these? either an update in safari won't let me access the same menu again or i completely forgot how to get to it



[ Reply to This | # ]
Here are some Safari Customized Search Bookmarks
Authored by: luhmann on May 01, '03 11:32:30PM

(Personally I have them all in a folder with a ? icon, I'm happy
to use the mouse...)

Here are some of my search bookmarklets that all work with
Safari

Version Tracker:

javascript:q=prompt('Version%20Tracker%20Search:%20','');loc
ation.href='http://www.versiontracker.com/mp/
new_search.m?productDB=mac&amp;mode=Quick&amp;OS_Filt
er=MacOSX&amp;search='+q';

IMDB:

javascript:q=prompt('IMDB%20Search:%20','');location.href='ht
tp://us.imdb.com/Find?for='+q';

Amazon.com:

javascript:void(q=prompt('Enter%20text%20to%20search%20A
mazon.',''));if(q)void(location.href='http://www.amazon.com/
exec/obidos/external-search/
?index=blended&keyword='+escape(q)+'&tag=widepipeorg-20')

Wikipedia:

javascript:q=prompt('Text...','');location.href='http://
www.wikipedia.org/w/wiki.phtml?&search='+q';
javascript:q=prompt('Dictionary.com%20Search:%20','');locatio
n.href='http://dictionary.reference.com/search?q='+q';

Movie Review Search Engine:

javascript:q=prompt('Movie%20Review%20Search:%20','');locat
ion.href='http://www.mrqe.com/lookup?'+q';

MacOSXHints.com:

javascript:q=prompt('Text...','');location.href='http://
www.macosxhints.com/
search.php?query='+q+'&type=stories&mode=search&keyType=a
ll';



[ Reply to This | # ]
Search Yahoo Maps for Directions
Authored by: Krioni on May 09, '03 12:11:03PM
Try this javascript bookmarklet (fill in the YOUR parts, and use plus signs where you have spaces):

javascript:homeStreet='YOUR_STREET';homeCity='YOUR_CITY'; homeState='YOUR_STATE';promptMsg='Enter%20the%20desti nation%20address%20(use%20comma%20between%20street %20before%20city):';q=prompt(promptMsg,'');destStreet=q.sub string(0,q.indexOf(','));cityState=q.substring(q.indexOf(',')+1);de stCity=cityState.substring(0,cityState.indexOf(','));destState=cit yState.substring(cityState.indexOf(',')+1);actionURL='http:// maps.yahoo.com/py/ ddResults.py?Pyt=Tmap&tarname=&tardesc=&osd=&newname =&newdesc=&dsd=&newHash=&newTHash=&newErr=&newTEr r=&newaddr='+homeStreet+'&newcsz='+homeCity+'%2C+'+h omeState+'+08108- 2006&newcountry=us&newTFL=Use+Address+Below&newtaddr ='+escape(destStreet)+'&newtcsz='+escape(destCity)+'%2C+'+ escape(destState)+'&newtcountry=us&Submit=Get+Directions'; window.open(actionURL);

This will search for directions from YOUR home address to whatever address you type in.

[ Reply to This | # ]

Use Safari's bookmark bar to simulate Camino keywords
Authored by: Casemon on May 16, '09 08:37:31AM

This is apparently broken in Safari v4b.

The javascript doesn't show any popup. Clicking the item does nothing (used the Dictionary.com example as a test).

Too bad too, as I've been looking for a good keyword solution for Safari that doesn't involve buggy/system-slowing plugins, nor require I run a local server.



[ Reply to This | # ]
Use Safari's bookmark bar to simulate Camino keywords
Authored by: Casemon on May 16, '09 09:28:15AM
Actually, it apparently works if you use window.location.href before anything else:

This doesn't work:
javascript:q=prompt('Word:%20','');location.href='http://dictionary.reference.com/search?q='+q';

But this works:
javascript:window.location.href='http://dictionary.reference.com/search?q='+escape(prompt('Search%20for%20word%20on%20Reference.com:'));

This also works:
javascript:window.location.href='http://us.imdb.com/find?s=all&q='+escape(prompt('Search%20IMDb:'));

Hope this helps!

[ Reply to This | # ]
Use Safari's bookmark bar to simulate Camino keywords
Authored by: Casemon on May 16, '09 11:00:50AM
So it seems that some Javascript works, some doesn't... found you don't have to have window.location.href before anything else; for example...

These also work:

javascript:void(q=prompt('Search%20YouTube:',getSelection()));if(q)void(location.href='http://www.youtube.com/results?search_query='+escape(q)+'&search_sort=video_view_count')

javascript:void(q=prompt('Enter%20text%20to%20search%20Amazon.',getSelection()));if(q)void(location.href='http://www.amazon.co.uk/exec/obidos/external-search/?keyword='+escape(q)+'&mode=blended&tag=blogography-21&Go=Go')

[ Reply to This | # ]