Webjumps

Share your webjumps with the Conkeror community on this page. Please keep things somewhat organized.

add_webjump("perldoc", "http://perldoc.perl.org/search.html?q=%s");

add_webjump("wikipedia", "http://www.google.com/search?q=wikipedia+%s&btnI=I'm Feeling Lucky");

add_webjump("youtube", "http://www.youtube.com/results?search_query=%s&search=Search");

add_webjump("youtube-user", "http://youtube.com/profile_videos?user=%s");

add_webjump("revo", "http://reta-vortaro.de/cgi-bin/sercxu.pl?cx=1&sercxata=%s");

add_webjump("sonja", "http://kisa.ca/vortaro/search.php?someaction=search&word=%s");

// magick-options is a webjump for imagemagick command line options.
//
// magick-options caches its completions in a preference.  To clear the cache
// and force magick-options to fetch the information anew, just do:
//
//   clear_pref ('conkeror.webjump.magick-options.cache');
//
function magick_options_completer (input, cursor_position, conservative) {
  function remove_duplicates_filter () {
    var acc = {};
    return function (x) {
      if (acc[x]) return false;
      acc[x] = 1;
      return true;
    };
  }
  var completions;
  try {
    completions = get_pref ('conkeror.webjump.magick-options.cache').split (' ');
  } catch (e) { }
  if (! completions) {
    try {
      var content = yield send_http_request (
        load_spec({uri: "http://imagemagick.org/script/command-line-options.php"}));
      completions = content.responseText.match(/([a-z]+)(?=\">-\1<\/a>)/g).filter (remove_duplicates_filter ());
      user_pref ('conkeror.webjump.magick-options.cache', completions.join (' '));
    } catch (e) { }
  }
  yield co_return (
    prefix_completer ($completions = completions)
    (input, cursor_position, conservative));
}

define_webjump (
    "magick-options",
    "http://imagemagick.org/script/command-line-options.php#%s",
    $completer = magick_options_completer);

Webjumps (last edited 2008-07-09 18:23:57 by localhost)