welcome: please sign in
location: WritingWebjumps

define_webjump

Webjumps are created by the define_webjump function. Define_webjump has two required arguments, and a number of optional keyword arguments.

define_webjump(name, handler);

Post Webjumps

Webjumps that emulate filling in an html form can also be defined by providing the parameters in a $post_data array. For example, a language translation webjump could be defined as follows:

define_webjump("e2j", "http://www.freedict.com/onldict/onldict.php",
  $post_data = [['search', '%s'], ['exact', 'true'], ['selected', '10'],
                ['from', 'English'], ['to', 'Japanese'],
                ['fname', 'eng2jap1'], ['back', 'jap.html']],
               $alternative = "http://www.freedict.com/onldict/jap.html");

Index Webjumps

Webjumps that construct an index from links in a web page and then provide access to those links with completion can be defined using index webjumps.

OpenSearch Webjumps

See OpenSearch. For versions of Conkeror older than November 2010, see SearchEngine.

Managing Webjumps

All webjumps are in Conkeror's memory in a simple object called webjumps. This object can be manipulated for such things as deleting webjumps or creating aliases.

Deleting Webjumps

delete webjumps.google;

Making a Webjump Alias

webjumps.g = webjumps.google;

Selection search webjumps

See this contributed tip.

Conkeror.org: WritingWebjumps (last edited 2016-05-19 10:08:26 by PhilHudson)