|
|
|
Use Safari's bookmark bar to simulate Camino keywords
This is apparently broken in Safari v4b.
Use Safari's bookmark bar to simulate Camino keywords
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!
Use Safari's bookmark bar to simulate Camino keywords
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')
|
SearchFrom our Sponsor...Latest Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 days
Links last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2013 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.09 seconds |
|