Kuro5hin.org: technology and culture, from the trenches
create account | help/FAQ | contact | links | search | IRC | site news
[ Everything | Diaries | Technology | Science | Culture | Politics | Media | News | Internet | Op-Ed | Fiction | Meta | MLP ]
We need your support: buy an ad | premium membership

[P]
Share Your Queries

By cr8dle2grave in Internet
Wed Sep 25, 2002 at 05:56:28 AM EST
Tags: etc (all tags)
/etc

Do you use Mozilla or Netscape 6? Do you use custom keyword bookmarks for searching? If so, please take this opportunity to share those searches you find useful.


Yesterday, the Google News service was unveiled and made accessible from the front page. My first thought? Create a searchable custom keyword bookmark for Mozilla, of course!

Are you wondering what exactly a searchable custom keyword bookmark for Mozilla is?

For those of you not in the know, and I presume most K5 users likely are, Mozilla allows you to bookmark the URL of a search with "%s" substituted for the search string. You can then assign the bookmark a "keyword" and perform a search by typing [keyword] [search term(s)] into the navigation toolbar. Mozilla will replace the "%s" contained in the bookmark with your search term(s).

For instance, to create a searchable bookmark for Google:

  1. From Bookmark Manager, create a new bookmark for the URL "www.google.com/search?q=%s".
  2. Then, using Bookmark Manager, view the properties for your new bookmark and assign it a keyword (I use gg).
  3. You can now perform a Google search by typing "gg [search term(s)]" into the URL bar.


If you are using Mozilla or Netscape 6, you can add the bookmarks below by right clicking on the links and choosing "File Bookmark for link...". Then go to Bookmark Manager and change the bookmark's properties to include a keyword of your choosing.

Request: Has anyone found a URL scheme which works for xrefer.com?

Sponsors

Voxel dot net
o Managed Hosting
o VoxCAST Content Delivery
o Raw Infrastructure

Login

Related Links
o Kuro5hin
o Google
o Google News service
o searchable custom keyword bookmark
o Google News
o Google Groups
o Google Image
o Google Glossary
o Google Cache
o Argos Search
o Encycloped ia of the Orient
o IMDB
o Amazon Search
o Dictionary Search
o Google: Catholic Encyclopedia
o Google: Stanford Encyclopedia of Philosophy
o Google: Kuro5hin.org
o Websters Dictionary
o Encycloped ia Mythica
o Roget's Thesaurus
o SOSIG
o Also by cr8dle2grave


Display: Sort:
Share Your Queries | 73 comments (66 topical, 7 editorial, 0 hidden)
If only kuro5hin search was functional... (nt) (3.20 / 5) (#1)
by bob6 on Tue Sep 24, 2002 at 04:25:30 PM EST



Cheers.
Mozilla (4.00 / 1) (#2)
by luserSPAZ on Tue Sep 24, 2002 at 04:29:50 PM EST

In Mozilla, I just set it to search Google by default when I type terms in the address bar and hit enter.  I do standard Google searches 99% of the time, so it's not worth my while to use this bookmarking technique.

IE 6 (5.00 / 1) (#3)
by xvathojn on Tue Sep 24, 2002 at 04:36:16 PM EST

IE 6 can do this too, with a little help from Tweak UI. (It’s in Internet Explorer -> Search.)



A similar tweak for Opera anybody? (4.00 / 1) (#4)
by tranx on Tue Sep 24, 2002 at 04:44:20 PM EST

A free 5 for the first one who comes with a working solution.


"World War III is a guerrilla information war, with no division between military and civilian participation." -- Marshall McLuhan

opera (4.00 / 1) (#5)
by eudas on Tue Sep 24, 2002 at 04:52:18 PM EST

F8, tab.
type in search.
hit enter.

search engine to use for default search is configurable in the program preferences.

eudas
"We're placing this wood in your ass for the good of the world" -- mrgoat
[ Parent ]

Yes (none / 0) (#6)
by tranx on Tue Sep 24, 2002 at 05:00:15 PM EST

I knew that, but how do I search on something different from the engines' list it provides (e.g. Merriam-Webster?)


"World War III is a guerrilla information war, with no division between military and civilian participation." -- Marshall McLuhan
[ Parent ]

searches in opera (4.00 / 1) (#9)
by eudas on Tue Sep 24, 2002 at 05:07:37 PM EST

i don't think there is a way.

i think that having it use the URL as a search method would be fucking irritating though. like one of the other posters, i don't want to see search results when i type crap. i want to see a 404 page not found or another error message.

that being said, if opera added functionality into the preferences section to allow you to add custom search engines into the search engine list that would be nice.

eudas
"We're placing this wood in your ass for the good of the world" -- mrgoat
[ Parent ]

Found it! (5.00 / 3) (#18)
by tranx on Tue Sep 24, 2002 at 06:12:39 PM EST

here.


"World War III is a guerrilla information war, with no division between military and civilian participation." -- Marshall McLuhan
[ Parent ]

Need fairly recent Opera to do this... (none / 0) (#24)
by freebird on Tue Sep 24, 2002 at 07:15:14 PM EST

I had looked a while back, assuming search.ini would exist, and couldn't find it. Looked again when I saw tranx's excellent post, still couldn't. Noted I was using Opera for Windows 6.0, upgraded to 6.05, lo and behold, there's search.ini. Yay!

I think you need 6.02 or thereabouts for this to exist.

Once again, Opera rules the wasteland. I love it.

...TAGGATC...(etc)
[ Parent ]

A few... (none / 0) (#7)
by DeadBaby on Tue Sep 24, 2002 at 05:04:11 PM EST

AllMusic.com - Music database

AllGame.com - Game database

everything2.com - A real life version of the Hitchhiker's guide.
"Our planet is a lonely speck in the great enveloping cosmic dark. In our obscurity -- in all this vastness -- there is no hint that help will come from elsewhere to save us from ourselves. It is up to us." - Carl Sagan

Everything2... (5.00 / 1) (#11)
by oconnoje on Tue Sep 24, 2002 at 05:21:00 PM EST

Everything2
--
KTHXBYE
[ Parent ]
Anyone got a (none / 0) (#8)
by oconnoje on Tue Sep 24, 2002 at 05:07:07 PM EST

"Google I'm Feeling Lucky" bookmark? It redirects to the new page so I can't see the search url...
--
KTHXBYE
From Google's Help pages (5.00 / 1) (#10)
by cr8dle2grave on Tue Sep 24, 2002 at 05:19:08 PM EST

The Google help page for those using the Mozilla Browser gives the following:

Google Search: I'm Feeling Lucky

---
Unity of mankind means: No escape for anyone anywhere. - Milan Kundera


[ Parent ]
Google news is crap (1.23 / 13) (#15)
by Peter Johnson on Tue Sep 24, 2002 at 06:01:31 PM EST

I already covered that in this comment.

------------------------------------------------
I am glad I am involved in the anti-capitalist movement. We are winning.

If you used IE (2.66 / 3) (#17)
by CaptainSuperBoy on Tue Sep 24, 2002 at 06:10:58 PM EST

You'd have the Google Toolbar. It's one of the main reasons I keep using IE.

--
jimmysquid.com - I take pictures.
Or for Mozilla... (4.50 / 2) (#23)
by drachen on Tue Sep 24, 2002 at 07:06:44 PM EST

http://googlebar.mozdev.org/

[ Parent ]
If you use Galeon (3.66 / 3) (#26)
by samfoo on Tue Sep 24, 2002 at 07:43:31 PM EST

You have the same thing ;-) I don't understand why Mozilla doesn't do this either (sorry, the little tabbed button thingies don't cut it for me). This is truly one of my favorite features of Galeon/IE

[ Parent ]
I have to agree (none / 0) (#36)
by Jebediah on Wed Sep 25, 2002 at 04:20:48 AM EST

While the Mozilla Googlebar is a great thing it can't be customised.  You really haven't lived until you've used Smart Bookmarks in Galeon.  Currently all my most frequently used searches (Google, Google Linux, Google Images, Freshmeat.net, RPMfind.net) are all on one handy bar.  I click, type, hit enter and my search comes up.

[ Parent ]
I find Smart Bookmarks annoying (none / 0) (#55)
by Amorsen on Thu Sep 26, 2002 at 04:12:28 AM EST

You have to move your mouse to some random text entry area, then click on it, then type. Furthermore that blank text entry area just sits there wasting space.

I find the little javascript thingy that Google provides much better. I have it on the toolbar, in the context menu, and on M-g. It pops up a window so I can type a search term and hit enter. No mouse. If I have a selection it searches for that instead of popping up. If it would go to www.google.com when I hit enter in the popup window without putting in a search term, it would be perfect.

[ Parent ]

Search toolbars (none / 0) (#70)
by unDees on Tue Oct 01, 2002 at 11:09:48 AM EST

That's an awful lot of pixels to spend. The address bar already has a nice big edit field; why waste all that extra space when I can just type "g beer" into the same control and press Enter?

Your account balance is $0.02; to continue receiving our quality opinions, please remit payment as soon as possible.
[ Parent ]
My customs... (5.00 / 2) (#19)
by Scott Robinson on Tue Sep 24, 2002 at 06:15:52 PM EST

  • WWWJDIC - Japanese dictionary taking romanji input.
  • OneLook - A meta-searcher of online dictionaries.


Internet Explorer can do this too (5.00 / 2) (#25)
by skim123 on Tue Sep 24, 2002 at 07:31:26 PM EST

You just need to download the IE 4 PowerToys if you have IE 4 or IE5 Web Accessories if you have IE 5 or IE 6. On IE it's called "Quick Search" and comes with default quick searches to the major search engines.

I've added:

  • g text - searches Google (the Google toolbar for IE is also a nice tool for this)
  • stock ticker - displays detailed stock information about a particular stock ticker
  • m movieName - shows info from IMDB.com on a particular movie
  • dict word - provides a definition for a word from dictionary.com
  • man text - searches www.mkssoftware.com using Google for man pages

Money is in some respects like fire; it is a very excellent servant but a terrible master.
PT Barnum


acronymfinder/php.net (4.66 / 9) (#27)
by benw on Tue Sep 24, 2002 at 07:48:27 PM EST

One of my favourite ones is an acronymfinder.com search (i use the keyword 'acro'):

acronym search

Also a php.net search: (i use the keyword 'php')

php.net search

By far the most useful UI tweak for windows I've seen in recent times is Daves Quick Search Deskbar - www.dqsd.net. Brilliant, I use it so often now.

--
"vanilla-licking sofa-humpers". funny.
Cool. (none / 0) (#33)
by Greyjack on Wed Sep 25, 2002 at 03:27:23 AM EST

I hadn't seen DSQD before; it frickin' rocks!  It works EXACTLY the way it should, and the underlying architecture is waaaay smooth.  Had my own custom search added in less than a half hour after installing it.

Too cool.  Thanks!

--
Here is my philosophy: Everything changes (the word "everything" has just changed as the word "change" has: it now means "no change") --Ron Padgett


[ Parent ]
Also, (none / 0) (#51)
by thadk on Wed Sep 25, 2002 at 08:25:45 PM EST

I love DQSD, as an extra plus it's GPLed and open.

Make sure you check out some of the add-ons like my DictionaryPop (heh heh, shameless plug) over at the Sourceforge page!

In addition to the hundreds of searches in the main program, We have GoogleSpell which uses the Google API to spellcheck a word. DictionaryPop to access a Dictionary/Thesaurus/Stock web service and pop up a dotNet style info box off the taskbar. Also a collection of geneology searches.

Like I said it's very open, if you find a useful search just write the javascript file up with the automated
dqsd Search Wizard IE plugin and drop a message with it attached to the mailing list.

The search bar works on any Windows browser fairly well. Unfortunately it's unportable due to it being written in MS Jscript.

[ Parent ]

Mozilla already does this (4.25 / 4) (#28)
by sharvari on Tue Sep 24, 2002 at 09:35:10 PM EST

Moz does this, for straight google anyway. all you do it put a word in the address bar and press down to select the 'search for X on google' option in the dropdown box on the menu bar.

Keyword searching is better (none / 0) (#57)
by Moebius on Thu Sep 26, 2002 at 08:42:18 AM EST

It's less to type than scrolling down to the google search option, you don't have to worry about it trying to auto-complete your query and you can do it with your eyes closed - when you scroll down to the search option, there can be any number of items in your history to move past first.

[ Parent ]
Actually... (none / 0) (#58)
by Kej on Thu Sep 26, 2002 at 10:41:03 AM EST

You could just hit up after typing, that'll go directly to the search option instead of going through all the autocomplete entries.

[ Parent ]
Easier way to do it in Mozilla (none / 0) (#72)
by metalfan on Wed Oct 23, 2002 at 01:11:59 AM EST

I just turn on the "Search" button in Mozilla and I smack it when I want to search for something on Google. Seems simple enough to me already

[ Parent ]
Getting fancy (5.00 / 1) (#29)
by cr8dle2grave on Tue Sep 24, 2002 at 10:17:16 PM EST

For those naysayers who fail to see any use for this, consider the following:

Google: Search of Gutenberg Author Pages A Google site search limited to the ibiblio.org mirror of Gutenburg Author pages. For example: gutauths eliot ts.

Google: Direct Link to Gutenberg Author Page Same as above, but with an "I'm Feeling Lucky" added so that it resolves directly to the Author Record. Be careful not to use this one with just Bronte or Smith. For example: gutauth dante alighieri.

Google: Search Gutenberg Etexts This search is limited to actual etexts hosted at ibiblio.org. Useful for searching for quotes. For example: gutetext "winter of our discontent".

---
Unity of mankind means: No escape for anyone anywhere. - Milan Kundera


Hmm (none / 0) (#30)
by carbon on Wed Sep 25, 2002 at 12:29:09 AM EST

Konqueror also does this, you can config those in the quicksearch dialog, I think it's been doing it since it's initial release, too, which may make it the first besides possibly Opera.

Failing that, an article is a rather bad place for stuff like this. Make your own site for it, set up some sort of database system with a CGI that makes JS calls or generates bookmark files for the various sites and browsers. Then write a story about it.


Wasn't Dr. Claus the bad guy on Inspector Gadget? - dirvish
As I recall... (5.00 / 1) (#31)
by cr8dle2grave on Wed Sep 25, 2002 at 01:40:21 AM EST

...Konqueror had this feature well before Mozilla and Opera. The ease of typing "gg term" or "dict term" is one things I've always missed most when working in Windows, which is why I was rather pleased to discover that it was eventually included in Mozilla (since 0.98 I think).

Failing that, an article is a rather bad place for stuff like this. Make your own site for it, set up some sort of database system with a CGI that makes JS calls or generates bookmark files for the various sites and browsers. Then write a story about it.

This wasn't intended to be a "look at me, look at what I can do", kind of article. Any moron can cook these up, but that, on the other hand, is what makes them so useful. It's quick and easy while being incredibly useful and potentially powerful. I was hoping other people who found them useful would share some of their links. Much better than simply pointing to coolsite.com and saying it's a good source for information on _____, no?

---
Unity of mankind means: No escape for anyone anywhere. - Milan Kundera


[ Parent ]
Heavy (none / 0) (#32)
by medham on Wed Sep 25, 2002 at 03:09:48 AM EST

They know you, they know me: extrasensory, synchronicity.

The real 'medham' has userid 6831.

A connecting principle? (none / 0) (#34)
by cr8dle2grave on Wed Sep 25, 2002 at 03:52:17 AM EST


---
Unity of mankind means: No escape for anyone anywhere. - Milan Kundera


[ Parent ]
Sounds nice but... (4.60 / 5) (#35)
by gazbo on Wed Sep 25, 2002 at 04:12:59 AM EST

A similar effect can be accomplished with a bit of script-fu. At least in IE, but I'm guessing most browsers.

Here is a sample shortcut I have in my links bar, so it is always available as a button:

javascript:var searchstr; if (searchstr = prompt('Enter word','')) void open('http://www.dictionary.com/cgi-bin/dict.pl?term='+searchstr);
If you create a shortcut to this in your links bar, when you click on it a dialogue will appear asking for a word. It will then open a new window with the word looked up at dictionary.com - it's pretty obvious how to customise it, and the script can be pretty complex if needed.

I use the same technique to navigate around sites in development. For example, when in development all of our sites have a certain string in common in the URL. Equally, some areas, such as the administrative interface, are always in the same place. With a bit of JS I can click the 'Admin' shortcut at any time and it'll re-write the current URL to give me the admin area.

Just some ideas.


-----
Topless, revealing, nude pics and vids of Zora Suleman! Upskirt and down blouse! Cleavage!
Hardcore ZORA SULEMAN pics!

Work in Mozilla? (none / 0) (#67)
by driptray on Sun Sep 29, 2002 at 06:06:03 AM EST

I can't seem to get this to work in Mozilla. Anybody know how?

I'd like to have my personal toolbar filled with different search bookmarks, each of which would pop up a dialog for searching. The dialog currently pops up, but then it doesn't seem to do anything.
--
We brought the disasters. The alcohol. We committed the murders. - Paul Keating
[ Parent ]

I don't use Mozilla generally (none / 0) (#68)
by gazbo on Sun Sep 29, 2002 at 10:43:00 AM EST

But I've just installed it (V1.1) to try it out. I added a bookmark, with location set to the exact same script I posted (including the javascript: pseudo-protocol) and it worked fine.

One possibility is that you've forbidden the opening of new windows? The code I posted opened a new window with the search results in - I've just tried disallowing scripts to open new windows and it still worked though...are you using an old version of Mozilla? Did you try copy/pasting the exact code I gave in the previous post? Only other thing I should point out is that I've only tried this in Win2K. It should behave the same in all OSs, but you never know.

-----
Topless, revealing, nude pics and vids of Zora Suleman! Upskirt and down blouse! Cleavage!
Hardcore ZORA SULEMAN pics!

[ Parent ]

Results of experimentation (none / 0) (#69)
by driptray on Mon Sep 30, 2002 at 06:38:20 AM EST

I've got it to work, but only under some very specific conditions.

It does not work if Mozilla was started from a shortcut. It does work if Mozilla was started by double-clicking a HTML file. I know that seems weird, but I tried it three times each way.

It does not work in a Mozilla window that was created from an earlier success at getting it to work.

When I had 8 tabs open, it worked only from either of the first two tabs. When viewing the other 6 it didn't work.

These all seem pretty strange to me...


--
We brought the disasters. The alcohol. We committed the murders. - Paul Keating
[ Parent ]
Oh baby (5.00 / 1) (#37)
by Nick Ives on Wed Sep 25, 2002 at 05:16:31 AM EST

http://www.kuro5hin.org/user/%s/ - k5u
http://www.kuro5hin.org/user/%s/comments/ - k5c

Two obvious, useful things I plopped in as soon as I saw this.

The dictionary one isn't that useful for me, I've got gdict sat on my panel and it's nice to have a separate window for looking at definitions.

Props to this article for making me clean up my bookmarks too, things are actually in folders now.

--
Nick
One of these days I'm gonna dance with the King of Sweden

Help with bookmarklet (none / 0) (#38)
by salsaman on Wed Sep 25, 2002 at 07:59:48 AM EST

I searched all over Google for a HOWTO on how to make javascript bookmarklets, but there doesn't seem to be anything there. I am trying to make a bookmarklet where I can type eg:
"set a b c"
and it will go to google sets with a,b,c. You can't use %s directly, as it needs to be split into words.

I tried the following code:
javascript:var ar=%s.split(' ');void open('http://labs.google.com/sets?hl=en&q1='+ar[0]+'&q2='+ar[1]+'&q3='+ar[2]+'&q4='+ar[3]+'&q5='+ar[4]+'&btn=Small+Set+%2815+items+or+fewer%29');

but it doesn't work. Can anybody help me out ?


http://www.bookmarklets.com (n/t) (none / 0) (#41)
by Alethes on Wed Sep 25, 2002 at 09:52:08 AM EST



[ Parent ]
Ah got it... (none / 0) (#45)
by salsaman on Wed Sep 25, 2002 at 01:21:27 PM EST

missed some quotes around the %s


[ Parent ]
JavaScript keyword bookmarks are less than optimal (none / 0) (#56)
by Moebius on Thu Sep 26, 2002 at 08:39:08 AM EST

I made a whole bunch of these before realizing the problem - you can't use quotes in your searches if you do it in JavaScript. The other method I've tried is to make them bookmarks to htm pages, i.e. google.html#%s, then putting javascript in the page to read the data location.hash and changing the location url. This is also not a great solution, especially since it means copying a bunch of files around along with your bookmarks for it to work.

[ Parent ]
Nice "Cache of Current Page" (none / 0) (#73)
by osama on Tue Dec 17, 2002 at 09:22:12 AM EST

try this one:

javascript:window.location=('http://www.google.com/search?q=cache:'+window.location)

[ Parent ]

A few more (4.33 / 3) (#39)
by ggeens on Wed Sep 25, 2002 at 08:30:34 AM EST

This topic on Everything has a whole set of them.

L'enfer, c'est les huîtres.


xrefer.com (5.00 / 1) (#40)
by zakj on Wed Sep 25, 2002 at 09:44:56 AM EST

You should be able to use:
http://xrefer.com/results.jsp?term=%s
for xrefer.com.

You get the golden star (none / 0) (#44)
by cr8dle2grave on Wed Sep 25, 2002 at 11:43:50 AM EST

I don't know how I missed that. Thanks.

---
Unity of mankind means: No escape for anyone anywhere. - Milan Kundera


[ Parent ]
Here's a whole categorized list (4.00 / 1) (#42)
by Alethes on Wed Sep 25, 2002 at 09:54:33 AM EST

Here You Go.

Bugzilla + French Dicos (5.00 / 1) (#43)
by IriseLenoir on Wed Sep 25, 2002 at 11:10:14 AM EST

bug mozilla bug #

You could do the same for GNOME's bugzilla, etc.

The rest is for those of us who speak french...

syn Dictionnaire de synonymes extraordinaire! (Dicosyno est interessant aussi...)

dic Dictionnaire Hachette... très lent et pas super comme dico... quelqu'un connaît mieux?

enfr Dictionnaire Anglais-Français

fren Dictionnaire Français-Anglais

Ces deux derniers sont pas mal, mais si vous connaissez mieux...

"liberty is the mother of order, not its daughter" - Pierre-Joseph Proudhon

Google sets (none / 0) (#46)
by salsaman on Wed Sep 25, 2002 at 01:27:37 PM EST

Add this nifty google sets as a bookmark, give it the keyword 'set', and then you can type for example:

set red orange yellow

in the URL bar. You can use up to five parameters after the 'set'.

The Inevitable Followup: More Than Five Options (none / 0) (#61)
by gnomon on Fri Sep 27, 2002 at 03:06:52 PM EST

As you probably guessed would happen, salsaman, your code has immediately been mutated to remove an irritating limit. I'm sure that others will probably come along and do the same with my submission, but that's the nature of open source, isn't it? ;)

The original code read as follows:

javascript:(function(){var ar='%s'.split(' ');void open('http://labs.google.com/sets?hl=en&q1='+ar[0]+'&q2='+ar[1]+'&q3 ='+ar[2]+'&q4='+ar[3]+'&q5='+ar[4]+'&btn=Small+Set+%2815+items+or+fe wer%29');})();

...which, pretty-printed, reads as:

1: javascript:(
2:   function () {
3:       var ar='%s'.split(' ');
4:       void open('http://labs.google.com/sets?hl=en&q1=' + ar[0] +
5:         '&q2=' + ar[1] +
6:         '&'&q3=' + ar[2] +
7:         '&'&q4=' + ar[3] +
8:         '&'&q5=' + ar[4] +
9:         '&btn=Small+Set+%2815+items+or+fewer%29');
A:   }
B: )();

Of course, since I'm an ungrateful little bastard, I just had to take your code and bend it to my will. I wrestled for a few minutes with the invocation syntax (I still don't understand why that empty second set of parentheses is needed after the function declaration, but it does indeed seem to be vital; any explanation or clarification here would be appreciated), but eventually got a working version. It is as follows:

javascript:(function(){var ar='%s'.split(' ');var os='http://labs.google.com/sets?hl=en';for (i in ar){os += ('&q' + i + '=' + ar[i] + '+');};os += '&btn=Small+Set+%2815+items+or+fewer%29';void open(os);})();

...which, pretty-printed, reads as:

1: javascript:(
2:   function () {
3:       var ar='%s'.split(' ');
4:       var os='http://labs.google.com/sets?hl=en';
5:       for (i in ar) {
6:           os += ('&q' + i + '=' + ar[i] + '+');
7:       };
8:       os += '&btn=Small+Set+%2815+items+or+fewer%29';
9:       void open(os);
A:   }
B: )();

Line #9 here will open the bookmark in a new page. If you'd rather open the result in the current window (which I personally prefer, since when I invoke a bookmark or a URL, that's where I expect it to load), replace line #9a with #9b:

9a:       void open(os);
9b:       top.location.href = os;

I'm still trying to figure out how to get the link to open in a new Mozilla tab instead of a new window; has anyone else tried to wade through the Mozilla documentation in order to find built-in functions? Am I missing something here?

In any case, by modifying lines 4, 6 and 8, an arbitrary number of arguments can be passed to any query. It's a shame that a string can't contain multiple "%s" markers, rendering this little scriptlet superfluous, but whatever - that limitation is now gone.



[ Parent ]
That's nice :-) (none / 0) (#64)
by salsaman on Sat Sep 28, 2002 at 05:53:50 AM EST

I was wondering how to open the link in the same window. Thanks :-)

I think the reason that you need the second () is this - you are calling something with no parameters, and the something you are calling is a function that takes no parameters (hence the first set of parentheses).

If I find a way to open in a new tab I'll post it here.

[ Parent ]

Tabs From JavaScript HREFs Are Evil (none / 0) (#66)
by gnomon on Sun Sep 29, 2002 at 05:05:04 AM EST

Salsaman, I did some more reading while trying to figure out how to open a keyworded bookmark in a new tab (as we discussed earlier), but to no avail. I ended up heading over to #mozillazine in irc.mozilla.org and talking to HJ, the lead developer of MultiZilla.

He brought up an interesting and valid point. The links we're trying to open here are standard "javascript:" URIs, which means that they could just as easily be loaded from our bookmark files as from HREFs on any website at all. If we could use JavaScript to open links in new tabs, so could any site. A malicious site could use this JavaScript hook to open advertisement tabs (instead of popups), for example.

JavaScript can be used to open new tabs, but within a browser context, not an HREF context. This is not a shortcoming at all, but rather a feature, since it keeps browser control in the hands of the user.

HJ mentioned something about getting around this limitation in an inventive fashion, but I'm not sure exactly what he meant. For now, I'm going to abandon this area of research because the desired result can be obtained by either using CTRL-ENTER in the location bar or by selecting "Open in: [New Navigator Tab]" in the "Open Web Location" dialog box. This affords additional flexibility, in fact, because the behaviour is not hard-coded in the bookmarklet.

Let me know if you decide to go any further with this. I'd love to hear what you come up with!



[ Parent ]
pricewatch? (5.00 / 1) (#47)
by nullchar on Wed Sep 25, 2002 at 02:33:18 PM EST

anyone have a query string for searching pricewatch?

Great idea. (5.00 / 2) (#50)
by nstenz on Wed Sep 25, 2002 at 07:57:10 PM EST

http://brook.pricewatch.com/search/search.asp?s=%s

That seems to work for me.

[ Parent ]

werd (none / 0) (#63)
by nullchar on Fri Sep 27, 2002 at 04:11:51 PM EST

sweet, that works. ;)
I was trying to use queen.pricewatch with some format string or something..
Thanks.

[ Parent ]
grad school-related keywords (4.50 / 2) (#48)
by jpjp on Wed Sep 25, 2002 at 04:58:58 PM EST

There are a whole slew of grad school-related keywords there.

Good stuff, including citeseer, IEEE Xplore, google of course, but also vivisimo, dictionary lookup, translation, mathworld, and more.

freedb & ebay (4.00 / 1) (#49)
by lollipop on Wed Sep 25, 2002 at 05:00:42 PM EST

freedb Search & Ebay Search One should also note that in mozilla, at least, there seems to be a bug which prohibits you from using a keyword that is the same as the bookmark title.

Even better in Galeon. (5.00 / 1) (#52)
by premchai21 on Wed Sep 25, 2002 at 09:44:02 PM EST

This works even better in Galeon; Galeon uses GTK+, and, being based on Mozilla, has the same bookmark scheme; however, because bookmarks are menu items and GTK+ menu items can be assigned (almost) arbitrary keystrokes, it is possible to assign keystrokes to Smart URL bookmarks; then, when those keystrokes are activated, a dialog is popped up requesting a %s substitution; if no text is entered, the default URL is used instead. Very handy.

Also, in Galeon (and in Mozilla too, I think) Smart URL bookmarks can be moved to toolbars, where they will appear as openable/closeable text fields into which substitutions can be entered, next to the standard bookmark button.



Dict.org (3.00 / 1) (#53)
by mabs on Thu Sep 26, 2002 at 02:28:18 AM EST

dict.org I've been a fan of dict.org for a while now, and I never knew about this feature before, but this is the first I have done myself, and seems to work :)

It also searches acronyms too :)

Search for the Adult Sex Stories Text Repository (3.33 / 3) (#54)
by sawilson on Thu Sep 26, 2002 at 02:33:07 AM EST

Name:
asstr search

Location:
http://www.google.com/search?as_q=%s&num=100&as_sitesearch=www.asstr.org&safe=off

Keyword:
asstr

usage example:

asstr "then she grabbed my joystick" geek fetish

:)

Enjoy


Sig:(This is your diatribe full of your titles
and lame beliefs and causes so men are impressed
with you and women want to bear your childr

POST, multiple vars and more keywords! (4.66 / 3) (#59)
by IriseLenoir on Fri Sep 27, 2002 at 12:36:02 AM EST

Yay, thanks to this article for motivating me to spend the time to make all the keywords I wanted to do for a long time! I've got many more for you now!

First, did you all know you can use it with POST forms too now? I didn't before today. Just use the same format as a GET query and Mozilla will do the it's magic converting it for you! (at least on 1.0.1, I don't know when this was introduced) For example, I now use a 'k5' keyword to log in here: http://www.kuro5hin.org/?uname=IriseLenoir&pass=%s (or put the password in the bookmark if your computer is safe (i.e. you live alone and have no friends ;-)

Also, you can have multiple variables keywords with a little bit of scripting... got that from grayrest. Don't forget to put a "javascript: " before, he forgets to tell you that... and you can change the "^" to a space if you know you won't need multiple words variables. Also ignore his POST script, Mozilla does it natively now as I said.

Well... I don't know which ones were mentioned now and making links from them takes time... tell you what, I have a few more to add and I'll export my Keywords folder and upload it somewhere you can import it and keep the ones you like so we all save time! I've got 59 and counting!! I'll post a link later on.

Hey, what's up with previewing adding a target to my links and then posting telling me I can't put targets in my links? Very brain-dead!

"liberty is the mother of order, not its daughter" - Pierre-Joseph Proudhon

keywords.html, mozdev, whois, bookmarks... (5.00 / 1) (#60)
by IriseLenoir on Fri Sep 27, 2002 at 03:27:57 AM EST

Well here it is. I still have much to add but won't do it tonight after all. keywords.html.

What we need is a mozdev.org project for all those keywords! Anyone interested in maintaining it ?? Would be awesome. Which makes me think, http://mycroft.mozdev.org might be a good place to get ideas on what keywords to make. Maybe we could make a keywords section on there.

One thing I'd like to do is be able to search my own bookmarks with a keyword. Anyone knows how to do that ?? Something to do with the "find:datasource=rdf:bookmarks" bookmarks, but we can't use them in the URL (I tried ;-)... we would need some JS to parse that, but I'm not very good at that.

One more thing, anyone knows of a good whois query server with no bullshit and where you can also query country TLDs (or other good servers for that if we can't have all-in-one...) ??

Allmusic.com doesn't replace the %20 with a space so that sucks, but what sucks even more if that I think it will do that with all multiple words POST forms, but it's the only one I tried for now. Any comments on this?

Good night all.

"liberty is the mother of order, not its daughter" - Pierre-Joseph Proudhon
[ Parent ]

Thanks! (none / 0) (#62)
by cr8dle2grave on Fri Sep 27, 2002 at 03:41:03 PM EST

Your aggregating all those links is very much appeciated. As it stands, I think you've got largest such list currently available on the net. A project to collect and organize Mozilla keywords would be an excellent resource.

---
Unity of mankind means: No escape for anyone anywhere. - Milan Kundera


[ Parent ]
Livejournal (none / 0) (#65)
by hans on Sat Sep 28, 2002 at 12:17:01 PM EST

For those of us who write about the lives we don't have...

Get LJ user info:
http://www.livejournal.com/userinfo.bml?user=%s

Interest search:
http://www.livejournal.com/interests.bml?int=%s

Find users with similar interests [for finding the love of your life] [paid users only]
http://www.livejournal.com/interests.bml?mode=findsim_do&user=%s

newzbot (2.00 / 1) (#71)
by tichy on Sun Oct 20, 2002 at 04:00:37 PM EST

For those of us who suffer from lame ISPs with poorly configured or entirely missing news servers, but still like to use real news clients, query the newzbot.

http://www.newzbot.com/search.php?t=group&q=%s

I actually use Konqueror, where the %s is really a \1.

Share Your Queries | 73 comments (66 topical, 7 editorial, 0 hidden)
Display: Sort:

kuro5hin.org

[XML]
All trademarks and copyrights on this page are owned by their respective companies. The Rest © 2000 - Present Kuro5hin.org Inc.
See our legalese page for copyright policies. Please also read our Privacy Policy.
Kuro5hin.org is powered by Free Software, including Apache, Perl, and Linux, The Scoop Engine that runs this site is freely available, under the terms of the GPL.
Need some help? Email help@kuro5hin.org.
My heart's the long stairs.

Powered by Scoop create account | help/FAQ | mission | links | search | IRC | YOU choose the stories!