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


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.
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 | # ]