search pouet.net with Mozilla Ubiquity
category: general [glöplog]
I wrote a command for Mozilla Ubiquity that allows to search pouet for a prod/group/etc.
run "command-editor", then paste in the editing window following code:
make sure to fix all the wrong newlines as well ;)
after then you can run a search command like "pouet fairbrausch as group".
run "command-editor", then paste in the editing window following code:
Code:
noun_type_pouetsearch = new CmdUtils.NounType( "search type",
["prod", "group", "party", "board", "user", "bbs"]
);
CmdUtils.CreateCommand({
name: "pouet",
takes: {"what": noun_arb_text},
modifiers: {as: noun_type_pouetsearch},
preview: function( pblock, what, mods ) {
var msg = 'Searches pouet for "' + what.text + '" as type ' + mods.as.text + '.';
pblock.innerHTML = msg;
},
execute: function( what, mods ) {
var astext = mods.as.text || "prod";
var url_dest = "http://www.pouet.net/search.php?type=" + astext + "&what=" + what.text;
Application.activeWindow.open(Utils.url(url_dest));
}
})
make sure to fix all the wrong newlines as well ;)
after then you can run a search command like "pouet fairbrausch as group".
so much work just for a search shortcut!
dont forget to make a wikipedia entry about it
Quote:
"pouet fairbrausch as group".
Does it work for Farlight?
it's a cool one tho, allowing me to search in one step only. i can also search for text selection :)
xeNusion: done, see http://en.wikipedia.org/wiki/Ubiquity_Command_For_Pouet
oxb: unfortunately not.
Quote:
so much work just for a search shortcut!
is it a shortcut? For me it's just easier to remember "pouet.net" and search there
Plus I often search for something I don't remember the name for (I only remember a scene or the party where it was presented)
leet threads have a knol page ;)
You can easily add this functionality to Opera too. I've had this setup for a few years now:
[Search Engine 3]
ID=1000002
Name=Pouët Prod Search
Verbtext=0
URL=http://pouet.net/search.php?what=%s&type=prod
Query=
Key=ppr
Is post=0
Has endseparator=0
Encoding=iso-8859-15
Search Type=0
Position=-1
Nameid=0
Deleted=0
Just add to your search.ini in your profile dir. Or create it using the GUI in prefs which may be quicker for some.
And additional ones for Group etc as you see fit. So i just do something like: ppr photon race
to search from the address bar, but normal like iq says i'd too be already on pouet so just search using the box :) But i have that option should i want it.
[Search Engine 3]
ID=1000002
Name=Pouët Prod Search
Verbtext=0
URL=http://pouet.net/search.php?what=%s&type=prod
Query=
Key=ppr
Is post=0
Has endseparator=0
Encoding=iso-8859-15
Search Type=0
Position=-1
Nameid=0
Deleted=0
Just add to your search.ini in your profile dir. Or create it using the GUI in prefs which may be quicker for some.
And additional ones for Group etc as you see fit. So i just do something like: ppr photon race
to search from the address bar, but normal like iq says i'd too be already on pouet so just search using the box :) But i have that option should i want it.
i prefer using Firefox 1.x in which i can type "pouet XXX" and it goes directly to what i'm looking for ...most of the times.
intrinsic, right click in a search field for even quicker access.