|
Posted by szr on April 2, 2008, 8:06 pm
Please log in for more thread options smallpond wrote:
>> FWIW, Firefox comes with a several search plugins (Google, Yahoo,
>> etc). These plugins are just XML files, and you can write your own.
>> I wrote one to make it just a little bit easier to search CPAN - I
>> figured I'd put it out here for anyone that's interested.
>>
>> Name the file CPAN.xml and put it in your Firefox searchplugins
>> directory. On my OpenSUSE Linux box that is
>> /usr/lib/firefox/searchplugins
>> On Windows it should be something like
>> C:\Program Files\Mozilla Firefox\searchplugins
>> I dunno about Mac, though there should be a searchplugins directory
>> wherever Firefox itself is installed.
>>
>> The encoded stuff is the little camel favicon. It should be all on
>> one line.
>>
>> Here is the CPAN search plugin:
>>
>> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
>> xmlns:moz="http://www.mozilla.org/2006/browser/search/">
>> <ShortName>CPAN</ShortName>
>> <Description>Comprehensive Perl Archive Network</Description>
>> <InputEncoding>UTF-8</InputEncoding>
>> <Image width="16"
>>
height="16">data:image/x-icon,%00%00%01%00%01%00%10%10%00%00%00%00%00%00(%01%00%00%16%00%00%00(%00%00%00%10%00%00%00%20%00%00%00%01%00%04%00%00%00%00%00%C0%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%FF%FF%FF%00%7B%00%00%00%00%7B%00%00%7B%7B%00%00%00%00%7B%00%7B%00%7B%00%00%7B%7B%00%BD%BD%BD%00%7B%7B%7B%00%FF%00%00%00%00%FF%00%00%FF%FF%00%00%00%00%FF%00%FF%00%FF%00%00%FF%FF%00%00%00%00%00%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%F0%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF3l%FC%BF%EF%18%E6%D7%EB%F0%F6%DB%00%00%FA%E9%00%02%F8%C3al%FC%03te%F8%02Co%F0%02r%20%E0%01%5C%D0%E0%03%11%00%E6%0F%BF%E6'%1F%00%02%07%FF%00%06%87%FF2%80%E3%FF1%E0</Image>
>> <Url type="text/html"
>> method="GET"
>> template="http://search.cpan.org/search?mode=all&query="/>
>> <moz:SearchForm>searchFormURL</moz:SearchForm>
>> </OpenSearchDescription>
>>
>> Cheers!
>
>
> Works great. Thanks!
>
> Two things:
>
> Make sure that the '&' in the template line includes the 'amp;'
> escape. That
> seems to have gotten lost either in your post or my reader. Check the
> XML by
> loading the file in your browser.
>
> It can be placed either in the global searchplugins directory or in
> your home
> directory which on linux is ~/.mozilla/firefox/32rwhuev.default/
> searchplugins/
It's your reader. I see the & amp ; in my reader (as well as when
looking at the raw message source), so you may want ot check your
setting. It's likely doing some sort of HTML translation somewhere.
--
szr
|