Firefox Search Engine Plug-In

Moderators: DarthSkeptical, Fnord Serious, Chris, spid, Skyhawke, Darth Kramer, mikebo

User avatar
IndieRockLance
 
Posts: 79
Joined: Wed Nov 23, 2005 6:57 am

Firefox Search Engine Plug-In

Postby IndieRockLance » Sun Sep 24, 2006 7:24 pm

I've found the toolbar to be a bit unwieldy for my uses, so I set to the task of making a search engine plug-in that would search the database using the search built into the right hand corner of the screen.

I think I've succeeded, but I'm an amateur when it comes to this sort of thing. Before I upload it to the Mycroft project site, I'm going to post the code here just to be sure that there's nothing that will cause the servers to burst into flames or anything:

Code: Select all
# Mycroft Search Plugin for Mozilla, Firefox, Netscape 6+, Beonix browsers
# Mycroft Homepage: http://mycroft.mozdev.org
#
# SearchSite: Comic Book DB (comicbookdb.com)
# Status: Prototype
# Version: 0.5
#
# Original Author: Lance C. <lance@planetxmen.gamespy.com>
# This file is released to the public domain.
# Created: 24 Sept 2006
#
# Category: Reference

<SEARCH
    version = "7.1"
name="Comic Book DB"
description="Comic Book DB - The Comic Book Database"
action="http://www.comicbookdb.com/search.php"
method="GET"
queryCharset="ISO-8859-1"
>

<input name="form_search" user />
<input name="form_searchtype" value="FullSite" />
<input name="x" value="0" />
<input name="y" value="0" />
<input name="sourceid" value="mozilla-search">

<interpret
   browserResultType="result"
   resultListStart="</h2>"
   resultListEnd="<p>"
   resultItemStart="<li>"
   resultItemEnd="</li>"
/>
   
</search>

<BROWSER
   update="https://addons.mozilla.org/searchplugins/updates/cbdb.src"
   updateIcon="https://addons.mozilla.org/searchplugins/updates/cbdb.gif"
   updateCheckDays="3"
>


Here's the small image that goes along with it: Image

User avatar
Chris
Cosmic Donor
Cosmic Donor
 
Posts: 1008
Joined: Sun Nov 13, 2005 4:48 am
Location: Toronto

Postby Chris » Sun Sep 24, 2006 8:22 pm

I don't see anything that raises any red flags, but I don't know much about this particular thing. If it works, awesome, thanks Lance :)

ferroboy
 
Posts: 9
Joined: Sun Sep 03, 2006 4:36 pm
Location: Newburgh, NY

Postby ferroboy » Sun Sep 24, 2006 8:38 pm

Since the code doesn't mean anything at all to me, I'll just ask. Is this going to be set to make queries from the regular drop-down menu rather than a separate toolbar? While I think the toolbar works fine, I don't like having to add extra toolbars because it deceases the visible screen space. The menus that have google, amazon, imdb, and whatever else you want is all combined into one, and I like that feature much better.

User avatar
IndieRockLance
 
Posts: 79
Joined: Wed Nov 23, 2005 6:57 am

Postby IndieRockLance » Sun Sep 24, 2006 8:48 pm

ferroboy wrote:Since the code doesn't mean anything at all to me, I'll just ask. Is this going to be set to make queries from the regular drop-down menu rather than a separate toolbar? While I think the toolbar works fine, I don't like having to add extra toolbars because it deceases the visible screen space. The menus that have google, amazon, imdb, and whatever else you want is all combined into one, and I like that feature much better.


Yes, this is designed to integrate into the dropdown menu, rather than adding a new toolbar. Right now it searches the entire database, but I could also narrow it to just titles or whatever if necessary.

Thanks for the vote of confidence Chris, I went ahead and uploaded the plugin to MyCroft. Anyone interested can download it here:

http://mycroft.mozdev.org/download.html ... ic+Book+DB

User avatar
Chris
Cosmic Donor
Cosmic Donor
 
Posts: 1008
Joined: Sun Nov 13, 2005 4:48 am
Location: Toronto

Postby Chris » Sun Sep 24, 2006 9:00 pm

Seems to work well for me, nice job Lance :)

ferroboy
 
Posts: 9
Joined: Sun Sep 03, 2006 4:36 pm
Location: Newburgh, NY

Postby ferroboy » Sun Sep 24, 2006 10:35 pm

Sounds great. I'll check it out. I think keeping the search to the whole site is fine. It might take a tiny bit longer, but that's good enough for me.

Just added it and it works great. Thanks!

User avatar
Skyhawke
 
Posts: 116
Joined: Mon May 22, 2006 11:30 pm

Postby Skyhawke » Fri Oct 27, 2006 2:30 pm

Nice job Lance

makyousei
 
Posts: 1
Joined: Sat Nov 11, 2006 11:58 am

New searches

Postby makyousei » Sat Nov 11, 2006 12:01 pm

Hi,

I was wondering if anyone knows if there's a way to search only in your own collection.
I like to check, every once in a while, all I have of a certain creator for instance, and I believe that's not doable right now.
As this thread's about a search feature, I thought I'd mention it here.

Thanks
--nout

satan
 
Posts: 2
Joined: Mon Nov 13, 2006 1:07 am

Postby satan » Tue Nov 14, 2006 4:00 pm

this is brilliant! thanks heaps Lance!


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron