User:A-giâu/Mozilla Mycroft plugin

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

This searches Commons' Image namespace. To install, put the source below into a .src file (I use wikipedia-commons.src). Put the file in your Mozila's searchplugins directory. May need to restart.

# Mycroft Search Plugin for Mozilla, Firebird, Netscape 6+, Beonix browsers
# Mycroft Homepage: http://mycroft.mozdev.org
#
# SearchSite: Commons Wikipedia (commons.wikipedia.org)
# Status: Working Semi
# Purpose: Search only the Image namespace for image files.
#
# Original Author: A-giau @ zh-min-nan.wikipedia.org
# Based on Carey Evans's en: version modified by Dwayne C. Litzenberger.
# This file is released to the public domain.
# Created: 11 Feb, 2005
#
# Country: WW
# Language: en
# Category: Reference
#


<SEARCH
    version = "0.1"
   name="Wikipedia (Commons)"
   description="Wikipedia, the free encyclopedia"
   method="GET"
   action="http://commons.wikimedia.org/wiki/Special:Search"
   queryCharset="UTF-8"
   searchForm="http://commons.wikipedia.org/"
   routeType="internet"
>

<input name="searchx" value="Search">
<input name="search" user>
<input name="ns6" value="1">
<input name="sourceid" value="Mozilla-search">
<inputnext name="offset" factor="20">
<inputprev name="offset" factor="20">

<interpret
   browserResultType="result"
   charset="UTF-8"
   resultListStart="</h2>"
   resultListEnd="<p>"
   resultItemStart="<li>"
   resultItemEnd="</li>"
>

</search>