Firefox/Mozilla Search Plugin

Want to help out? Need help accessing the AniDB API? This is the place to ask questions.

Moderator: AniDB

Locked
Vortex
Posts: 30
Joined: Sat Jun 19, 2004 7:39 am

Firefox/Mozilla Search Plugin

Post by Vortex »

My apologies if this has been posted before and if this is in the wrong forum.

If you don't know already, there is a search plugin for Mozilla/Firefox that can be found at http://mycroft.mozdev.org/download.html

I was wondering if it was possible for the searches from this plugin to exactly mimic the one on the website. The difference between these two searches is when there is only one result from a search, the anidb website jumps to the one match. However when you search with the plugin and there is only one result, it still displays the search result page.

Here is the code from the SRC file:

Code: Select all

#
#	Mozilla/Netscape 6+ Mycroft Plugin for ANIDB.net as requested by Urzia #429.
#	Created by Ben Snider on March 17, 2004.
#	E-Mail: hotmail.com
#	One issue, displays "main" in the side-bar and an empty link on any search, site lacks sufficient distinguishable variances in its code.
#	If somebody coule correct this, that would be great.
#

<search
	version="7.1"
	name="AnimeDB"
	description="AnimeDB - Anime title reference database"
	action="http://anidb.ath.cx/perl-bin/animedb.pl"
	searchForm="http://anidb.ath.cx/perl-bin/animedb.pl"
	method="GET"
>

<input name="show" value="search">
<input name="search.anime.name" user>
<input name="sourceid" value="mozilla-search">
<input name="do.search" value="+Start+Search+">

<interpret
	browserResultType="result"
	resultListStart="<img src="http://www.anidb.net/pics/nodown1.gif" width=9 height=10 alt="sort descending" title="sort descending" border=0></a> </td>"
	resultListEnd="</table><hr><table border=0 width="100%">"
	resultItemStart="<tr>"
	resultItemEnd="</tr>"
>

</search>
<browser
	update="http://mycroft.mozdev.org/plugins/anidb.src" 
	updateIcon="http://mycroft.mozdev.org/plugins/anidb.png" 
	updateCheckDays="10" 
>
I was wondering if anyone is familiar with these things and can correct it (if it is possible).
wahaha
AniDB Staff
Posts: 1497
Joined: Sun Nov 17, 2002 3:33 pm

Post by wahaha »

This script uses the advanced search, that's why there's no automatic redirection (only implemented in regular search).

If you change the input-section to
<input name="show" value="animelist">
<input name="adb.search" user>
it should work with the normal search.

I'd leave out the <interpret [...]> then, though, since it wouldn't return anything useful in case there's exactly one hit.
Vortex
Posts: 30
Joined: Sat Jun 19, 2004 7:39 am

Post by Vortex »

Cool. It worked.

Thanks!
Pyrii
Posts: 5
Joined: Wed Aug 18, 2004 8:08 pm
Contact:

Post by Pyrii »

Trust me not to look, but I still think Mine's better which I went and made here: http://blog.tanyoko.nu/?itemid=51

If you want the source, send me a PM, but I didn't submit it to mozdev.

I'd love to see the option to add AniDB under the little search form on the layout.
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

Hm, I tried clicking that red close-button in your sig, but it's still there and wasting space in my browser window with information I'm absolutely not interested in. What am I doing wrong?
fahrenheit
AniDB Staff
Posts: 438
Joined: Thu Apr 08, 2004 1:43 am
Location: Portugal

Post by fahrenheit »

Elberet wrote:Hm, I tried clicking that red close-button in your sig, but it's still there and wasting space in my browser window with information I'm absolutely not interested in. What am I doing wrong?
lol
Pyrii
Posts: 5
Joined: Wed Aug 18, 2004 8:08 pm
Contact:

Post by Pyrii »

Elberet wrote:Hm, I tried clicking that red close-button in your sig, but it's still there and wasting space in my browser window with information I'm absolutely not interested in. What am I doing wrong?
Hmmm... A wiseass going off topic. One that doesn't know about the button clearly marked "PM" which allows you to not fill a topic with useless rude comments about someone signiture when you could politely ask in PM if they could remove part of it or make it smaller. Till someone asks me nicely, NO, I will not make it smaller.

You fail at +1

By the way, some people say they're having trouble with my version of the plugin, can anyone verify this?
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

To be honest I don't have a problem with the footer since it's the same color as the forum. But then if more people started using huge footers I'd throw a fit and ban them all! :twisted: (Or well, whine on Exp until he did it!)
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

[bad mode]I don't even care to test things provided by smart asses using two signatures and cluttering a forum not meant for leisure.[/bad mode]

People don't have to be told of such things IMO.
wahaha
AniDB Staff
Posts: 1497
Joined: Sun Nov 17, 2002 3:33 pm

Post by wahaha »

Pyrii wrote:By the way, some people say they're having trouble with my version of the plugin, can anyone verify this?
What kind of trouble?
Pyrii wrote:I didn't submit it to mozdev.
Please do. The (FF-style) quick-search surely works better when using the regular search instead of the advanced one.
Pyrii wrote:I'd love to see the option to add AniDB under the little search form on the layout.
There's a document in the works that describes how to add the anidb-search to IE, Mozilla/FF and Opera. I'd expect to see a link to that thread on the frontpage some day, but the mozilla-only option probably won't be displayed in a more prominent manner than the other ones.
Pyrii's sig wrote:Damn those AniDB forumers are rude bastards.
Most of us don't like overly large signatures... not sure why that caused that much commotion in your specific case, but giving people even more reason to dislike that sig doesn't help things either.
Pyrii
Posts: 5
Joined: Wed Aug 18, 2004 8:08 pm
Contact:

Post by Pyrii »

wahaha wrote:What kind of trouble?
People were having trouble adding it, but it's fixed now.
wahaha wrote:Please do. The (FF-style) quick-search surely works better when using the regular search instead of the advanced one.
There's already a submission for AniDB in the mozdev, aka, the one at the top of this post.
wahaha wrote:There's a document in the works that describes how to add the anidb-search to IE, Mozilla/FF and Opera. I'd expect to see a link to that thread on the frontpage some day, but the mozilla-only option probably won't be displayed in a more prominent manner than the other ones.
I didn't make much sense there, I meant a little icon to add AniDB to Firefox.
wahaha wrote:Most of us don't like overly large signatures... not sure why that caused that much commotion in your specific case, but giving people even more reason to dislike that sig doesn't help things either.
Eh, got a bit annoyed there, removed the comment ages ago.
Locked