ConQuery
| resources: | Home Installation Betas Source Code Screenshots/Tutorial |
|---|---|
| query plugins: | Repository Documentation CookBook Submit plugin |
| talkback: | Mailing List Bugs / RFE Comments Support / Discussion Members |
| related projects: | Mycroft NeedleSearch |
ConQuery Cookbook
Intro: the information presented here is for power users and shows how you can trick the Web with ConQuery ;) Below is only simple samples - you could modify them to suit your needs. And if you have this kind of experience, please share it with us!
Open plain link | by: Vasa Maximov |
|
If we want to manage plain links, we definitely should use appropriate extention, but for quick solution can also make little cqr plugin:
<search
If we don't want to see this everytime in "Query to..." list, we may hide it ("Show?" -> off). Ok. Now we can select any text and if there is any URL-like pattern, plugin will be shown and variable [:matched:1] will be substituted with parenthesized match.
name="Open as link" description="This extracts first URL-like pattern from selection and opens as a link" method="get" action="[:matched:1]" showiftarget="[:selection]" showif="(\w+:\/\/[^\s]*)" > </search> | |
Search quoted text (selection) | by: Vasa Maximov |
|
Sometimes we need to search Google, for instance, for text surrounded by qoutes. Usually this is when we going to search not for single word, but for phrase, where words are separated by spaces. Ok, let's slightly modify standart Google search plugin (don't forget to rename it to *.cqr):
<search
Well, actually, your showif can look like this: (.+) then it will surrond any selected text, and pass it to Google. Until then it will work only with selected text, which contains spaces.
name="Google quoted" description="This will quote selection if there is spaces found" method="GET" action="http://www.google.com/search" queryEncoding="utf-8" queryCharset="utf-8" showiftarget="[:selection]" showif="(.+\s+.+)" > <input name="q" value="%22[:matched:1]%22" label="Quoted Selection"> <input name="ie" value="utf-8"> <input name="oe" value="utf-8"> </search> | |
Show image | by: Vasa Maximov |
|
When you do "Show image" from context menu, FF by default opens it in currient tab. Let's correct this:
<search
This plugin will be shown only if [:imageurl] is not empty, and open image in the new tab.
name="View image" description="This opens image on the new tab" method="get" action="[:matched:1]" showiftarget="[:imgurl]" showif="(.+)" > </search> | |
Open images from Google-images search results directly | by: Vasa Maximov |
|
If you feel, that it takes too much clicks to get particular image from Google.Images search results, you may be interested in this search plugin:
<SEARCH
Needless to remind you to hide this plugin - it will only be shown if you browsing g.images and will open imgs directly. Enjoy! :)
name="GImajes direct open" description="This opens images directly from google-images search results" method="get" action="http://[:matched:1]" showiftarget="[:imgurl]" showif="http://.+:(.+)" > </search> | |
Playing with URLs | by: Egor Yankov |
|
I'm working as an editor of a news website. Site runs on Wiki engine. So, when I need to edit one of the items, I should hack the URL of its page like: "http://mysite.ru/wiki/item123" should become "http://mysite.ru/wiki/edit=item123" Actually I perform this dozens of times every day. With ConQuery my job is much comfortable:
<search
Plugin comes up only when I sits on my web site and helps to open any item in CMS on a fly!
name="CMS" description="Edit currient item" method="get" action="http://mysite.ru/wiki/edit/[:matched:1]" showiftarget="[:url]" showif="http://mysite.ru/wiki/(.*)" > </search> | |