Firefox search plugin

Basically, the search url is something like this:

mysite.com/search:keyword (where "keyword" is what I searched for)

If I search two words on the site I get:

mysite/search:word1_word2 (where "word1 word2" is what I searched)

My search plugin works fine for searching one word, but when I search "word1 word2" using my plugin I get:

mysite/search:word1+word2

(which doesn't work)

My plugin needs to be able to add an underscore in between the words instead of the "+". I basically just need to know if it's possible to create that kind of code in a .src file.

Also, is there another place I could be posting? This seemed to be the most logical place...

Thanks

#383187

Don't think this is capable as I was working on some category specific search plugins for dA & found the info below:

http://mycroft.mozdev.org/deepdocs/inputtags.html#user

Under User

"Mozilla-Search currently has only one end user defined input. This is the string to search for. What "name=" is defined as depends on the search engine you are using."

#383229

Thanks for the reply!

I've read a lot on mozdev and I think it may be impossible at the moment, but what I don't get is where the "+" is being added. The site (when using it's native search) adds an "_" between search terms, so why would my search plugin have "+" signs?

Does that make sense?

Thanks again

#383236

It won't work. Doesn't matter what you use.

You can only use one user input as mozdev states. There is no work around for the plugin.

You've got to remember that the site you are using has a greater level of control over querying it's database, where the plugin is developed as a general overall tool. That's not to say it won't get there.

That said you could maybe create or modify a greasemonkey script to get there? Not sure because my scripting is basic at best.

#383242

Yeah, it doesn't work. I've thought of trying to do this before so you could specify, for example, what forum to search in at A-S based on a separator and then an entry code, but a little research showed it was impossible (as SirSmiley astutely pointed out). Multiword entries are treated as phrases, and there's no way to separate that.

Wait, I'm rereading your post, and in case I misunderstood you, I'll add this:

Does Myspace use underscores instead of plusses for its queries? So if you're searching for a phrase that's fine (Firefox will let you do that), but are the words from the phrases separated by underscores instead of plusses as is usually done? I think the Mozilla Developers went with plusses to separate words because they're more common...however, I bet there is somewhere a way to change this, even if it would require a lot of Firefox hacking. On the other hand, you'd probably invalidate all your other search plugins...

-NC

#383311