Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

a Mozilla Firebird searchplugin for Perlmonks

by boo_radley (Parson)
on Nov 11, 2003 at 14:45 UTC ( #306196=monkdiscuss: print w/ replies, xml ) Need Help??

For those of us using Mozilla Firebird, here's a searchbar interface to pm. Save this file under your FB directory as searchplugins\Perlmonks.src and restart your browser. Searching for nodes has never been easier! I also have a gif file of the site's favicon, but I can't upload it anywhere useful from where I am now; I'll post it later on. If you have a 16x16 gif you'd like to use in the meantime, save that as searchplugins\Perlmonks.gif and you'll get a delightful little picture next to the perlmonks entry.
# perlmonks plugin by boo_radley <search name="Perlmonks" description="Search Perlmonks " method="GET" action="http://perlmonks.org/index.pl" > <input name="node" user> <interpret browserResultType="result" charset = "UTF-8" > </search>

Comment on a Mozilla Firebird searchplugin for Perlmonks
Download Code
Re: a Mozilla Firebird searchplugin for Perlmonks
by shockme (Chaplain) on Nov 11, 2003 at 17:14 UTC
    This is most excellent, boo_radley! ++. No more waiting for the initial page to load before I can begin searching.

    Sweet stuff, indeed.

    Update: The following will allow you to search CPAN.

    # cpan search <search name="CPAN" description="Search CPAN " method="GET" action="http://search.cpan.org/search" > <input name="query" user> <interpret browserResultType="result" charset = "UTF-8" > </search>

    If things get any worse, I'll have to ask you to stop helping me.

      I don't find node= very useful for searching in most cases.

      One day I will learn more about interactions between browser caches and dynamic pages and might get PM to issue more useful dates in its headers. For now, I've told my browser to just never refetch a page if it has it in its cache (which sometimes causes me problems because I forget to refresh an old page *sigh* -- but the trade-off is a net win so far) because this prevents me waiting 20 seconds to revisit a PM page I just visited a short while ago (or months ago, in fact).

      This means that I can select my PM bookmark and then click the "super search" link and not wait for PM at all.

      For those who don't want to put up with lots of stale pages, you can save super search's HTML to a local file, add a <base href="http://perlmonks.org/?"> in the <head> section, and you've now got a local, fast access point to a working PM search form.

      If you put the <base ...> before the <link ...>s, then your browser will use the CSS from PM (which it may decide to refetch). So might want to remove those <link ...>s or put the <base ...> after them, which will make your form look a little stark but it will still work. Or you could grab the CSS and put that in a local file...

      Just a couple other ways to do it...

                      - tye
      Not that searching CPAN has any point to it: I have reason to believe that I'm a pretty fair hand at querying search engines like google, but searching CPAN feels, well, futile.

      I get radically higher success rates asking (OK, begging) for pointers to a module on various online fora.

      I think other Perlers most likely won't use whatever language I use to describe a problem, so I'm not going search on the keywords they use in their docs.

      Not to mention that sometimes I don't know what I don't know, and a module implementing a technology to solve my problem might very well exist on CPAN and not knowing that a particular technology/technique exists makes it pretty hard to look for it on CPAN.

Re: a Mozilla Firebird searchplugin for Perlmonks
by theorbtwo (Prior) on Nov 11, 2003 at 18:22 UTC

    This isn't hugely related, but do you know how to add rewriting URL schemas, such that I can type id://306196 into the URL field, or pad://theorbtwo, or ...

    BTW, if it's possible to get the search plugin mechinisim to parse XML, and you'd be interested in writing that half of it, I'd be interested in writing the PM side of it. In the meantime, add a displaytype=print, which will keep PM from rendering the nodelets and thus speed things up.


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

      You might be interested in the stuff I posted at Laziness, Lizards and Monks. You can very easily create more of the same for other purposes such as a pad keyword.

      Makeshifts last the longest.

      I think the Protozilla package may do what you're looking for, although I haven't tested it. Protozilla Examples says

      A protocol handler with the extension .url is treated as an "URL re-direction" specifier, rather than an executable program. For example, a handler named moz.url may contain an URL prefix, such as http://mozilla.org/. In this case, the URI moz:docs is translated to http://mozilla.org/docs. The peer-to-peer freenet protocol uses a local proxy server accessible on port 8081. To be able to use freenet: URLs in the browser, all you need to do is to create a file named freenet.url containing the text http://localhost:8081/. (Of course, you need to be running the freenet proxy server as well.)
      heck, it might be possible to tie this into tye's usage of a cached supersearch page as well, something like pmsupersearch://auth=boo_radley;title=foo;startdate=bar;enddate=baz

        The project seems to have stalled though, and while it installs cleanly in Firebird, no way to change its settings appears anywhere.

        Makeshifts last the longest.

Re: a Mozilla Firebird searchplugin for Perlmonks
by Aristotle (Chancellor) on Nov 12, 2003 at 02:32 UTC
Re: a Mozilla Firebird searchplugin for Perlmonks
by barrd (Parson) on Dec 09, 2003 at 13:06 UTC
    Another minor point is that you may wish to change the URL that this points to match your cookie:
    action="http://perlmonks.org/index.pl"
    For example I changed this to: action="http://www.perlmonks.org/index.pl" and all is now well (for me at least). Cheers boo_radley, that's inspired to me write some others for work machines.
Re: a Mozilla Firebird searchplugin for Perlmonks
by aufflick (Deacon) on Nov 12, 2004 at 13:34 UTC
    Or you can save the effort by using my one-cl*ck install search plugin, as posted on Oct 17 - node 399904
      Cool, it's been a year and a day since I posted this original! Happy birthday, comment!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://306196]
Approved by EvdB
Front-paged by data64
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (17)
As of 2014-07-14 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (260 votes), past polls