welcome: please sign in

Redirected from page "WebJumps"

Clear message
location: Webjumps

Contents

  1. Bookmarks
    1. Online/social bookmarking
      1. Delicious (del.icio.us)
      2. Digg
      3. Google Reader
      4. Reddit
      5. Stumbleupon
  2. Computer Programs
    1. Emacs
      1. Org-Mode
      2. Package repos
    2. ImageMagick
    3. Ratpoison
    4. StumpWM
  3. E-mail
    1. Gmail
  4. Entertainment
    1. Dark Lyrics
    2. (Rap/rock etc) Genius
    3. IMDb
    4. Internet Archive (archive.org)
    5. Knowyourmeme
    6. last.fm
    7. Hulu
    8. Memory-Alpha
    9. Rotten Tomatoes
    10. TVTropes
    11. Youtube
  5. Finance
    1. Google Finance
  6. Games
    1. Anagrams
    2. Dwarf Fortress
    3. Kingdom of Loathing
    4. Minecraft
    5. Sensei's Library (Go, Baduk, Weiqi)
  7. Images / Photos / Art etc.
    1. deviantArt
    2. Flickr
  8. Index webjumps
    1. Gitweb summary webjumps
    2. XPath webjumps
  9. Language
    1. Dictionary (English)
    2. Chinese
    3. Esperanto
    4. German
    5. Hindi
    6. Japanese
    7. Google Translate
    8. Thesaurus (English)
    9. Urban Dictionary
  10. Literature
    1. Amazon Kindle Mass Delete Helper
    2. Librivox
    3. Project Gutenberg
  11. Network Tools
    1. Down for everyone or just me?
    2. The Wayback Machine
    3. GMane
    4. Site Search
  12. News
    1. BBC News
    2. Google News
    3. The Guardian
    4. Hacker News
    5. Kuro5hin
    6. The Register (sci/tech news)
    7. Slashdot
  13. Operating Systems
    1. Unix/Linux
      1. Linux Questions.org
      2. Unix and Linux at Stackexchange
      3. Ask Ubuntu
  14. Programming
    1. General
      1. Stackoverflow
    2. Bash
    3. CommandLineFu
    4. Common Lisp
      1. CLHS (Hyperspec)
      2. Cliki
    5. Google Codesearch
    6. Mozilla Cross-Reference
    7. Mozilla Developer Center
    8. Perl
    9. Python
    10. Qt
    11. Scheme
      1. Chickadee (for Chicken Scheme)
      2. Chicken Egg-ref
      3. SRFIs
    12. TeX, LaTeX etc.
      1. CTAN
      2. {TeX} (@stackexchange)
    13. Haskell
  15. Reference
    1. Encyclopedia of Life
    2. Thinkpad wiki
    3. Wikipedia
    4. Wolfram Alpha
  16. Search Engines
    1. Blekko
      1. Simple version
      2. Opensearch version
    2. Google specialised searches
      1. Google images
      2. Google scholar
      3. Google books
    3. IxQuick
    4. Serchilo
    5. SoGou
    6. Startpage
    7. Tineye
  17. Shipment Tracking
    1. DHL Global Mail
    2. Fedex
    3. ParcelPool/International Bridge
    4. UPS
    5. USPS
  18. Shopping
    1. Add Item to Amazon Universal Wishlist
  19. Software
    1. Debian package searches
    2. Ubuntu / Launchpad package searches
    3. Fedora Koji Build system package search
    4. RPMfind package search
    5. rpm.pbone.net package search
    6. Freshmeat
    7. Github search
    8. Gitorious search
    9. Ohloh project search
    10. Savannah project search
    11. Sourceforge
  20. Sports
    1. Bicycling
  21. Travel
    1. Wikitravel
  22. Weather
    1. Weather Underground
    2. Weatherspark
    3. Weather.com

Share your webjumps with the Conkeror community on this page. Please keep things somewhat organized. For information on how to write webjumps, see WritingWebjumps.

1. Bookmarks

This is a way to access bookmarks with completion via a webjump.

define_webjump("bookmark",
               function(term) {return term;},
               $completer = history_completer($use_history = false,
                                              $use_bookmarks = true,
                                              $match_required = true),
               $description = "Visit a conkeror bookmark");

1.1. Online/social bookmarking

1.1.1. Delicious (del.icio.us)

Delicious webjumps can be added by putting the following in your conkeror rc file:

define_delicious_webjumps("myusername");

this will create the following webjumps:

adelicious

Add a delicious bookmark.

delicious

View your delicious bookmarks

sdelicious

Search your delicious bookmarks

sadelicious

Search all delicious bookmarks

1.1.2. Digg

Add story to Digg.com:

define_webjump("adigg","javascript:location.href='http://www.digg.com/submit?url='+encodeURIComponent(location.href);");

1.1.3. Google Reader

Add a webpage to your Google Reader shared items (with notes if desired):

define_webjump("readgoogle-share", "javascript:var%20b=document.body;var%20GR________bookmarklet_domain='https://www.google.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='https://www.google.com/reader/ui/link-bookmarklet.js');void(b.appendChild(z));}else{}");

1.1.4. Reddit

Share site on Reddit:

define_webjump("areddit","javascript:location.href='http://www.reddit.com/submit?url='+encodeURIComponent(window.location)+'&title='+"+"encodeURIComponent(document.title);");

Visit a subreddit

define_webjump("reddit", "http://www.reddit.com/r/%s");

1.1.5. Stumbleupon

Add favourites to Stumbleupon.com:

define_webjump("astumble","javascript:location.href='http://www.stumbleupon.com/submit?url='+encodeURIComponent(location.href)+'&title='+"+"encodeURIComponent(document.title);");

2. Computer Programs

2.1. Emacs

With StartPage (GET version, see below for outline POST version):

define_webjump("emacswiki",
    "https://startpage.com/do/search?cat=web&cmd=process_search&" +
    "language=english&engine0=v1all&query=%s%20site%3Aemacswiki.org&abp=-1",
    $alternative="http://www.emacswiki.org/")

With DuckDuckGo:

define_webjump("emacswiki", "https://duckduckgo.com/?q=%s+site%3Aemacswiki.org");

Or with Google:

define_webjump("emacswiki",
    "http://www.google.com/cse?cx=004774160799092323420%3A6-ff2s0o6yi"+
        "&q=%s&sa=Search&siteurl=emacswiki.org%2F",
    $alternative="http://www.emacswiki.org/");

2.1.1. Org-Mode

define_webjump("orgmode-worg",
    "https://www.google.com/cse?cx=002987994228320350715%3Az4glpcrritm&q=%s" +
    "&sa=Search&siteurl=orgmode.org%2Fworg",
    $alternative="http://orgmode.org/worg/");// Org-Mode Worg (~Wiki)

2.1.2. Package repos

2.1.2.1. ELPA

define_webjump("elpa", "https://elpa.gnu.org/packages/%s.html");

2.1.2.2. MELPA

define_webjump("melpa", "https://melpa.org/#/?q=%s");

2.2. ImageMagick

// 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');
//
// last modified: November 25, 2009
//
function magick_options_completer (input, cursor_position, conservative) {
    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://www.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) {
            completions = [];
        }
    }
    yield co_return(prefix_completer($completions = completions)
                    (input, cursor_position, conservative));
}
define_webjump("magick-options",
    "http://www.imagemagick.org/script/command-line-options.php#%s",
    $alternative = "http://www.imagemagick.org/script/command-line-options.php",
    $completer = magick_options_completer);

2.3. Ratpoison

define_webjump("ratpoisonwiki", "http://ratpoison.wxcvbn.org/cgi-bin/wiki.pl?search=%s");

2.4. StumpWM

define_webjump("stumpwmwiki", "http://github.com/sabetts/stumpwm/search?q=%s");

3. E-mail

3.1. Gmail

You can keep multiple Gmail accounts open in the same Conkeror window/frame by referring to them as .../u/0/, ..../u/1/ etc.:

define_webjump("1gmail", "https://mail.google.com/mail/u/0/"); //primary account
define_webjump("2gmail", "https://mail.google.com/mail/u/1/"); //secondary account
define_webjump("3gmail", "https://mail.google.com/mail/u/2/"); //tertiary account

4. Entertainment

4.1. Dark Lyrics

define_webjump("darklyrics", "http://www.darklyrics.com/search?q=%s");

4.2. (Rap/rock etc) Genius

define_webjump("genius", "http://genius.com/search?q=%s");

4.3. IMDb

define_webjump("imdb", "http://www.imdb.com/find?q=%s");

4.4. Internet Archive (archive.org)

define_webjump("archive.org", "http://www.archive.org/search.php?query=%s");

(ok, so arguably archive.org is about more than just entertainment - please move this if you can think of a better category)

4.5. Knowyourmeme

define_webjump("knowyourmeme", "http://knowyourmeme.com/search?q=%s");

4.6. last.fm

lastfm_user = "your username here";
define_webjump("lastfm", "http://www.last.fm/user/" + lastfm_user);
define_webjump("lastfm-music", "http://www.last.fm/search?m=all&q=%s");
define_webjump("lastfm-event", "http://www.last.fm/events/search?search=1&q=%s");
define_webjump("lastfm-tag", "http://www.last.fm/search?m=tag&q=%s");
define_webjump("lastfm-user", "http://www.last.fm/users?m=search&type=un&q=%s");
define_webjump("lastfm-group", "http://www.last.fm/users/groups?s_bio=%s");
define_webjump("lastfm-label", "http://www.last.fm/search?m=label&q=%s");

4.7. Hulu

define_webjump("hulu", "http://www.hulu.com/search?query=%s");

4.8. Memory-Alpha

define_webjump("memory-alpha", "http://memory-alpha.org/en/wiki/Special:Search/?search=%s");

4.9. Rotten Tomatoes

define_webjump("rottentomatoes", "http://www.rottentomatoes.com/search/?search=%s");

4.10. TVTropes

define_webjump("trope", "http://www.google.com/cse?cx=partner-pub-6610802604051523%3A2szln92pqym&safe=off&q=%s", $alternative="http://www.tvtropes.org");

4.11. Youtube

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

5. Finance

5.1. Google Finance

define_webjump("finance", "http://www.google.com/finance?q=%s");

6. Games

6.1. Anagrams

define_webjump("anagram", "http://wordsmith.org/anagram/anagram.cgi?anagram=%s&t=1000&a=n");

6.2. Dwarf Fortress

define_webjump("dwarffortress", "http://df.magmawiki.com/index.php?title=Special%3ASearch&search=%s");

6.3. Kingdom of Loathing

define_webjump("kol", "http://kol.coldfront.net/thekolwiki/index.php/%s");

6.4. Minecraft

define_webjump("minecraft", "http://www.minecraftwiki.net/index.php?title=Special%3ASearch&search=%s");

6.5. Sensei's Library (Go, Baduk, Weiqi)

define_webjump("sensei", "http://senseis.xmp.net/?search=%s&nrchk=1");

7. Images / Photos / Art etc.

7.1. deviantArt

define_webjump("deviantart", "http://browse.deviantart.com/?q=%s", $alternative="http://www.deviantart.com");

7.2. Flickr

define_webjump("flickr", "http://www.flickr.com/search/?q=%s", $alternative="http://www.flickr.com");

8. Index webjumps

Index webjumps provide convenient access to a set of web pages that are indexed (referenced) from another page. Two kinds are provided; xpath webjumps and gitweb summary webjumps. Completions can be provided for the webjump by saving a copy of the index page to index_webjumps_directory, which can be set as follows.

require("index-webjump.js");
index_webjumps_directory = get_home_directory();
index_webjumps_directory.appendRelativePath(".conkerorrc/index-webjumps");

For each defined index webjump the index page can be saved using M-x webjump-get-index.

8.1. Gitweb summary webjumps

These webjumps help you visit repositories at a gitweb server:

define_gitweb_summary_webjump("gitweb-ko", "http://git.kernel.org");
define_gitweb_summary_webjump("gitweb-cz", "http://repo.or.cz/w");

You can now use the following webjumps:

gitweb-cz conkeror
gitweb-ko git/git

To make completions available use M-x webjump-get-index and select gitweb-cz then, once the download is finished, completions will be available for that webjump. Sites with many repositories (such as the two given) can take many minutes to return the OPML data.

When defining the webjump, a default repository at the gitweb server can be specified using the $default keyword. An $alternative may otherwise be given as usual. If neither are given then the alternative url for the webjump is defined to be the gitweb repository list page.

8.2. XPath webjumps

An xpath webjump extracts the set of referenced web pages from an index page using an XPath expression. For these webjumps to work, the index must be downloaded using M-x webjump-get-index.

Unfortunately, the xulrunner parser that is used is quite fussy and, in particular, is an xml parser. Many web pages fail to parse correctly. To correct this problem the downloaded index page is automatically cleaned up using index_xpath_webjump_tidy_command. The html tidy program should be installed for this to work.

It can take a few attempts to figure out an appropriate XPath expression; index_webjump_try_xpath is provided to help with that process.

Examples:

define_xpath_webjump(
    "gitdoc",
    "http://www.kernel.org/pub/software/scm/git/docs/",
    '//xhtml:dt/xhtml:a',
    $description = "Git documentation");

The following examples require the html tidy program to be installed.

define_xpath_webjump(
    "conkerorwiki-page",
    "http://conkeror.org/",
    '//xhtml:li/xhtml:p/xhtml:a[starts-with(@href,"/")]',
    $description = "Conkeror wiki pages linked from the front page");

define_xpath_webjump(
    "imagemagick-options",
    "http://www.imagemagick.org/script/command-line-options.php",
    '//xhtml:p[@class="navigation-index"]/xhtml:a',
    $description = "Imagemagick command line options");

9. Language

9.1. Dictionary (English)

To use The Free Dictionary.com rather than Dictionary.com (the latter is rather cookie-happy):

define_webjump("dictionary","http://www.thefreedictionary.com/%s");

9.2. Chinese

define_webjump("chinese", "http://www.mandarintools.com/cgi-bin/wordlook.pl?word=%s&searchtype=chinese&where=whole");
define_webjump("pinyin", "http://www.mandarintools.com/cgi-bin/wordlook.pl?word=%s&searchtype=pinyin&where=whole");
define_webjump("english", "http://www.mandarintools.com/cgi-bin/wordlook.pl?word=%s&searchtype=english&where=whole");

define_webjump("popupchinese",
    function (term) {
        return load_spec(
            { uri: "http://popupchinese.com/words/dictionary",
              post_data: make_post_data([['search', term]]) });
    },
    $alternative = "http://popupchinese.com/dictionary");

define_webjump("nciku", "http://www.nciku.com/search/all/%s");

define_webjump("mdbg",
    "http://www.mdbg.net/chindict/chindict.php?page=worddictbasic&wdqb=%s&wdrst=0&wdeac=1",
    $alternative = "http://www.mdbg.net/chindict/chindict.php");

9.3. Esperanto

define_webjump("revo", "http://reta-vortaro.de/cgi-bin/sercxu.pl?cx=1&sercxata=%s");
define_webjump("sonja", "http://kisa.ca/vortaro/search.php?someaction=search&word=%s");

9.4. German

define_webjump("leo", "http://pda.leo.org/?lp=ende&lang=de&searchLoc=0&cmpType=relaxed&relink=on&sectHdr=off&spellToler=std&search=%s");

9.5. Hindi

Using Shabdkosh.com (English Hindi Dictionary | अंग्रेज़ी हिन्दी शब्दकोश); can accept either English or Hindi arguments and produce translation output accordingly.

define_webjump("shabdkosh","http://www.shabdkosh.com/s?e=%s",$alternative="http://www.shabdkosh.com");

9.6. Japanese

define_webjump("e2j",
    function (term) {
        return load_spec(
            { uri: "http://www.freedict.com/onldict/onldict.php",
              post_data: make_post_data([['search', term], ['exact', 'true'], ['selected', '10'],
                                         ['from', 'English'], ['to', 'Japanese'],
                                         ['fname', 'eng2jap1'], ['back', 'jap.html']]) });
    },
    $alternative = "http://www.freedict.com/onldict/jap.html");

define_webjump("j2e",
    function (term) {
        return load_spec(
            { uri: "http://www.freedict.com/onldict/onldict.php",
              post_data: make_post_data([['search', term], ['exact', 'true'], ['selected', '10'],
                                         ['from', 'Japanese'], ['to', 'English'],
                                         ['fname', 'eng2jap2'], ['back', 'jap.html']]) });
    },
    $alternative = "http://www.freedict.com/onldict/jap.html");

9.7. Google Translate

define_webjump("trans", "http://translate.google.com/translate_t#auto|en|%s");

This will auto-detect the source language and translate into English. Replace en ("English") with your desired destination language if desired. This could fairly easily be improved to take source and destination languages as parameters and perform autocomplete on them but it works well enough for now.

9.8. Thesaurus (English)

define_webjump("thesaurus","http://www.thefreedictionary.com/%s#Thesaurus");

9.9. Urban Dictionary

define_webjump("urban", "http://www.urbandictionary.com/define.php?term=%s");

10. Literature

10.1. Amazon Kindle Mass Delete Helper

Navigate to "Your Kindle Library" before following this bookmarklet/webjump.

define_webjump("kindle-delete-helper","javascript:(function(){a=document.getElementsByClassName('rowBodyCollapsed');for(var%20i=0;i%3Ca.length;i++){var%20asin=a[i].getAttribute('asin');var%20box=document.createElement('input');box.type='checkbox';box.className='deleteBox';box.id=asin;a[i].previousSibling.childNodes[0].appendChild(box);};var%20link=document.createElement('a');link.href='%23';link.innerHTML='delete%20all%20checked%20documents';link.onclick=function(){checkboxes=document.getElementsByClassName('deleteBox');for(var%20i=0;i%3Ccheckboxes.length;i++){var%20cb=checkboxes[i];if(cb.checked){Fion.deleteItem('deleteItem_'+cb.id);console.log(%22deleted%20%22+cb.id);}};};document.getElementById('filtersAndSearch').appendChild(link);document.getElementById('ordersSortingRow').childNodes[1].width='4%25';})();");

10.2. Librivox

define_webjump("librivox","https://catalog.librivox.org/search.php?title=&author=%s&status=all&action=Search");

10.3. Project Gutenberg

define_webjump("gutenberg",
    function (term) {
        return load_spec(
            { uri: "http://www.gutenberg.org/ebooks/search/",
              post_data: make_post_data([['query', term]]) });
    },
    $alternative = "http://www.gutenberg.org/");

11. Network Tools

11.1. Down for everyone or just me?

define_webjump("down?", function (url) {
    if (url) {
        return "http://downforeveryoneorjustme.com/" + url;
    } else {
        return "javascript:window.location.href='http://downforeveryoneorjustme.com/'+window.location.href;";
    });

11.2. The Wayback Machine

define_webjump("wayback", function (url) {
    if (url) {
        return "http://web.archive.org/web/*/" + url;
    } else {
        return "javascript:window.location.href='http://web.archive.org/web/*/'+window.location.href;";
    });

11.3. GMane

define_webjump("gmane", "http://gmane.org/find.php?list=%s");

Searches the current site using Google.

define_webjump("site-search", "javascript:window.location.href='http://google.com/search?q=%s+site:'+window.location.host");

12. News

12.1. BBC News

define_webjump("news-bbc", "http://www.bbc.co.uk/search/news/?q=%s", $alternative="http://www.bbc.co.uk/news");

12.2. Google News

define_webjump("news", "http://news.google.com/news/search?q=%s");

12.3. The Guardian

define_webjump("news-guardian", "http://www.guardian.co.uk/search?q=%s", $alternative="http://www.guardian.co.uk");

12.4. Hacker News

define_webjump("hackernews", "http://www.google.com/search?q=site:news.ycombinator.com+%s",
               $alternative = "http://news.ycombinator.com/");

define_webjump("hackernews", "http://searchyc.com/%s",
               $alternative = "http://news.ycombinator.com/");

12.5. Kuro5hin

define_webjump("kuro5hin", "http://www.kuro5hin.org/?op=search&string=%s");

12.6. The Register (sci/tech news)

define_webjump("news-register", "http://search.theregister.co.uk/?q=%s", $alternative="http://www.theregister.co.uk");

12.7. Slashdot

define_webjump("slashdot", "http://slashdot.org/search.pl?query=%s");

13. Operating Systems

13.1. Unix/Linux

13.1.1. Linux Questions.org

define_webjump("linux-questions","http://www.linuxquestions.org/questions/");

13.1.2. Unix and Linux at Stackexchange

define_webjump("unix-linux-stackexchange","http://unix.stackexchange.com/search?q=%s", $alternative="http://unix.stackexchange.com");

13.1.3. Ask Ubuntu

define_webjump("askubuntu","http://askubuntu.com/search?q=%s", $alternative="http://askubuntu.com");

14. Programming

14.1. General

14.1.1. Stackoverflow

define_webjump("stackoverflow","http://stackoverflow.com/search?q=%s", $alternative="http://stackoverflow.com");

14.2. Bash

define_webjump("bashfaq",
    "http://mywiki.wooledge.org/BashFAQ?action=fullsearch&context=180&value=%s&fullsearch=Text",
    $alternative = "http://mywiki.wooledge.org/BashFAQ");

14.3. CommandLineFu

define_webjump("commandlinefu",
    function(term) {
        return 'http://www.commandlinefu.com/commands/matching/' +
            term.replace(/[^a-zA-Z0-9_\-]/g, '')
                .replace(/[\s\-]+/g, '-') +
            '/' + btoa(term);
    },
    $alternative = "http://www.commandlinefu.com/");

14.4. Common Lisp

14.4.1. CLHS (Hyperspec)

define_webjump("clhs",
               "http://www.xach.com/clhs?q=%s",
               $alternative = "http://www.lispworks.com/documentation/HyperSpec/Front/index.htm");

14.4.2. Cliki

define_webjump("cliki", "http://www.cliki.net/admin/search?words=%s");

14.5. Google Codesearch

define_webjump("codesearch", "http://www.google.com/codesearch?q=%s");

{X} Defunct 2016-05-26 21:16:29

14.6. Mozilla Cross-Reference

define_webjump("mozilla-central-ident", "http://mxr.mozilla.org/mozilla-central/ident?i=%s");
define_webjump("mozilla-central-text", "http://mxr.mozilla.org/mozilla-central/search?string=%s");
define_webjump("mozilla-central-file", "http://mxr.mozilla.org/mozilla-central/find?text=&string=%s");

14.7. Mozilla Developer Center

define_webjump("mdc", "https://developer.mozilla.org/Special:Search?search=%s&type=fulltext&go=Search");

14.8. Perl

define_webjump("perldoc", "http://perldoc.perl.org/search.html?q=%s");
define_webjump("cpan", "http://search.cpan.org/search?query=%s&mode=all");
define_webjump("metacpan", "https://metacpan.org/search?q=%s");

14.9. Python

define_webjump("python", "http://docs.python.org/search.html?q=%s");
define_webjump("python3", "http://docs.python.org/py3k/search.html?q=%s");

14.10. Qt

define_webjump("qt", "http://doc.qtsoftware.com/4.5/%s.html");

Not actually a search engine, but it's good enough to look up classes by name.

14.11. Scheme

14.11.1. Chickadee (for Chicken Scheme)

chickadee_completer = function() {
    completer.call(this);
}

chickadee_completer.prototype = {
    __proto__: completer.prototype,
    constructor: chickadee_completer,
    toString: function () "#<chickadee_completer>",
    complete: function (input, pos) {
        var completions = [];
        var content = yield send_http_request(
            load_spec({uri: "http://api.call-cc.org/cdoc/ajax/prefix?q="+
                       encodeURIComponent(input)}));
        if (content.responseText) {
            var parser = Cc["@mozilla.org/xmlextras/domparser;1"]
                .createInstance(Ci.nsIDOMParser);
            var doc = parser.parseFromString(content.responseText, "text/xml");
            var res = doc.getElementsByTagName("li")
            for (let i = 0, n = res.length; i < n; ++i) {
                completions.push(res[i].textContent);
            }
        }

        yield co_return((new prefix_completer($completions = completions)).complete(input, pos));
    }
};

define_webjump("chickadee",
    "http://api.call-cc.org/cdoc?q=%s&query-name=Lookup",
    $alternative = "http://api.call-cc.org/doc/",
    $completer = new chickadee_completer());

14.11.2. Chicken Egg-ref

define_webjump("eggref4", "http://wiki.call-cc.org/eggref/4/%s",
               $alternative = "http://wiki.call-cc.org/chicken-projects/egg-index-4.html");

14.11.3. SRFIs

define_webjump("srfi", function (i) {
    return "http://srfi.schemers.org/srfi-" + i + "/srfi-" + i + ".html";
});

14.12. TeX, LaTeX etc.

14.12.1. CTAN

define_webjump("ctan-desc", "http://www.ctan.org/search/?search=%s&search_type=description");
define_webjump("ctan-file", "http://www.ctan.org/search/?search=%s&search_type=filename");
define_webjump("ctan-pack", "http://www.ctan.org/search/?search=%s&search_type=id");
define_webjump("ctan-all", "http://www.ctan.org/search/?search=%s&search_type=description&search_type=filename&search_type=id");

14.12.2. {TeX} (@stackexchange)

define_webjump("tex-stackexchange","http://tex.stackexchange.com/search?q=%s", $alternative="http://tex.stackexchange.com");

14.13. Haskell

define_webjump("hoogle", "http://haskell.org/hoogle/?hoogle=%s",
               $alternative = "http://haskell.org/hoogle/");

define_webjump("hackage". "http://google.com/search?as_sitesearch=hackage.haskell.org%2Fpackage&as_q=%s");

15. Reference

15.1. Encyclopedia of Life

define_webjump("eol", "http://eol.org/search?q=%s&ie=UTF-8&search_type=text");

15.2. Thinkpad wiki

This webjump links directly to category searches for your favorite Thinkpad models.

define_webjump("thinkwiki", "http://www.thinkwiki.org/w/index.php?search=Category:%s&title=Special%3ASearch&go=Go");

15.3. Wikipedia

The Wikipedia webjumps are now included with Conkeror. Put the following in your .conkerorrc to use it:

require("page-modes/wikipedia.js");
wikipedia_webjumps_format = "wp-%s"; // controls the names of the webjumps.  default is "wikipedia-%s".
define_wikipedia_webjumps("en", "de", "fr"); // For English, German and French.
// define_wikipedia_webjumps(); // To make use of ALL of the webjumps (200+).

Some people like having to only type the language code to get to a Wikipedia, in that case you can just set the format to "%s". This means you can write only "en bruce springsteen" to get to the article about Bruce Springsteen on the English Wikipedia.

15.4. Wolfram Alpha

define_webjump("alpha", "http://www36.wolframalpha.com/input/?i=%s");

16. Search Engines

16.1. Blekko

16.1.1. Simple version

define_webjump("blekko", "http://blekko.com/ws/%s", $alternative = "http://blekko.com/");

16.1.2. Opensearch version

Note, also see OpenSearch for a way to set up a directory for all your opensearch files.

define_opensearch_webjump("blekko", make_file("/path/to/blekko.xml"));

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

16.2. Google specialised searches

16.2.1. Google images

Directly search Google images:

define_webjump("imagesgoogle", "http://www.google.com/images?q=%s", $alternative = "http://www.google.com/imghp");

To force no filtering, use:

define_webjump("imagesgoogle", "http://www.google.com/images?q=%s&safe=off", $alternative = "http://www.google.com/imghp?as_q=&safe=off");

16.2.2. Google scholar

define_webjump("scholar", "http://scholar.google.com/scholar?q=%s", $alternative = "http://scholar.google.com");

16.2.3. Google books

define_webjump("booksgoogle", "http://www.google.com/search?q=%s&tbm=bks", $alternative = "http://books.google.com/");

16.3. IxQuick

define_webjump("ixquick", "http://ixquick.com/do/metasearch.pl?query=%s");

To secure searches against snooping by URL observation, you can use the Startpage webjump and change the address to Ixquick.

16.4. Serchilo

Download the OpenSearch XML file from http://en.serchilo.net/?action=opensearch (possibly replacing en with your preferred locale). Note, also see OpenSearch for a way to set up a directory for all your opensearch files.

define_opensearch_webjump("serchilo", make_file("/path/to/serchilo-en.xml"));

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

16.5. SoGou

define_webjump("sogou", "http://www.sogou.com/web?query=%s");

16.6. Startpage

define_webjump("startpage", "https://www.startpage.com/do/search",
    $post_data = [["query", "%s"], ["cat", "web"],
                  ["cmd", "process_search"], ["language", "english"],
                  ["engine0", "v1all"], ["abp", "-1"]]);

16.7. Tineye

define_webjump(
    "tineye",
    function (term) {
        if (! term)
            return "http://www.tineye.com/";
        return load_spec(
            { uri: "http://www.tineye.com/search",
              post_data: make_post_data([['url', term]]) });
    });

17. Shipment Tracking

17.1. DHL Global Mail

define_webjump("dhlmail","http://webtrack.dhlglobalmail.com/?trackingnumber=%s", $alternative = "https://www.dhlglobalmail.com");

17.2. Fedex

define_webjump("fedex","https://www.fedex.com/apps/fedextrack/?action=track&trackingnumber=%s&cntry_code=us", $alternative = "https://www.fedex.com/");

17.3. ParcelPool/International Bridge

define_webjump("parcelpool","http://www.myib.com/tracking/default?j=1&tnum=%s", $alternative = "http://www.parcelpool.com");

17.4. UPS

define_webjump("ups","https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=%s", $alternative = "https://www.ups.com/");

17.5. USPS

define_webjump("usps", "https://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1=%s",
           $alternative = "https://www.usps.com/");

18. Shopping

define_webjump("netflix", "http://www.netflix.com/Search?v1=%s");
define_webjump("amazon", "http://www.amazon.com/exec/obidos/external-search/?field-keywords=%s&mode=blended");
define_webjump("emusic", "http://www.emusic.com/search.html?mode=x&QT=%s");

18.1. Add Item to Amazon Universal Wishlist

define_webjump("awish", "javascript:(function(){var%20w=window,l=w.location,d=w.document,s=d.createElement('script'),e=encodeURIComponent,o='object',n='AUWLBook',u='http://www.amazon.com/wishlist/add',r='readyState',T=setTimeout,a='setAttribute',g=function(){d[r]&&d[r]!='complete'?T(g,200):!w[n]?(s[a]('charset','UTF-8'),s[a]('src',u+'.js?loc='+e(l)),d.body.appendChild(s),f()):f()},f=function(){!w[n]?T(f,200):w[n].showPopover()};typeof%20s!=o?l.href=u+'?u='+e(l)+'&t='+e(d.title):g()}())")

This works like the "Add Item to Amazon Universal Wishlist" button.

19. Software

19.1. Debian package searches

These are included (in a slightly modified version) by default in the Debian and Ubuntu packages starting with version 0.9.1-1:

define_webjump("deb", "http://packages.debian.org/search?keywords=%s&searchon=names&suite=unstable&section=all");
define_webjump("debfile", "http://packages.debian.org/search?searchon=contents&keywords=%s&mode=path&suite=unstable&arch=any");
define_webjump("debbugs", "http://bugs.debian.org/%s");
define_webjump("debpts", "http://packages.qa.debian.org/%s");

Not yet included in the Debian and Ubuntu packages are the following Debian webjumps:

define_webjump("buildd", "https://buildd.debian.org/%s");
define_webjump("buildd-experimental", "http://experimental.ftbfs.de/%s");
define_webjump("buildd-ports", "http://buildd.debian-ports.org/build.php?pkg=%s");
define_webjump("debqa", "http://qa.debian.org/developer.php?login=%s");

Adjust suite, arch etc to suit.

19.2. Ubuntu / Launchpad package searches

These are included by default in the Debian and Ubuntu packages starting with version 0.9.1-1:

define_webjump("ubuntupkg", "http://packages.ubuntu.com/%s");
define_webjump("ubuntufile", "http://packages.ubuntu.com/search?searchon=contents&keywords=%s&mode=path&arch=any");
define_webjump("ubuntubugs", "http://bugs.launchpad.net/ubuntu/+source/%s");
define_webjump("launchpad", "https://launchpad.net/+search?field.text=%s");

define_webjump("koji", "http://koji.fedoraproject.org/koji/search?type=package&match=glob&terms=%s");

define_webjump("rpmfind", "http://rpmfind.net/linux/rpm2html/search.php?query=%s");

define_webjump("pbone", "http://rpm.pbone.net/index.php3?srodzaj=3&stat=3&simple=1&search=%s");

19.6. Freshmeat

define_webjump("freshmeat", "http://freshmeat.net/search/?q=%s");

define_webjump("github", "http://github.com/search?q=%s&type=Everything");

define_webjump("gitorious", "http://gitorious.org/search?q=%s");

define_webjump("ohloh", "https://www.ohloh.net/p?query=%s");

define_webjump("savannah", "https://savannah.gnu.org/search/?words=%s&type_of_search=soft");

19.11. Sourceforge

define_webjump("sourceforge", "http://sourceforge.net/search/?words=%s");

20. Sports

20.1. Bicycling

define_webjump("sheldonbrown",
               "http://www.google.com/search?q=site:sheldonbrown.com %s",
               $alternative = "http://sheldonbrown.com/");

21. Travel

21.1. Wikitravel

define_webjump("wikitravel", "http://wikitravel.org/en/Special:Search/?search=%s");

22. Weather

22.1. Weather Underground

define_webjump("wunderground", "http://www.wunderground.com/cgi-bin/findweather/getForecast?query=%s");

22.2. Weatherspark

define_webjump("weatherspark","http://weatherspark.com/#!graphs;q=%s", $alternative="http://weatherspark.com");

22.3. Weather.com

define_webjump("weather", "http://www.weather.com/search/enhancedlocalsearch?where=%s");

Conkeror.org: Webjumps (last edited 2018-02-11 01:01:21 by PhilHudson)