facebook-mode: new page-mode
[conkeror.git] / modules / page-modes / facebook.js
blob4be7a57b7e889a2f46c5f5c71432f94b3fc592ed
1 /**
2  * (C) Copyright 2013 Raimon Grau
3  *
4  * Use, modification, and distribution are subject to the terms specified in the
5  * COPYING file.
6 **/
8 require("content-buffer.js");
10 define_keymap("facebook_keymap", $display_name = "facebook");
12 // Navigation
13 define_key(facebook_keymap, "j", null, $fallthrough);
14 define_key(facebook_keymap, "k", null, $fallthrough);
15 define_key(facebook_keymap, "return", null, $fallthrough);
17 define_keymaps_page_mode("facebook-mode",
18     build_url_regexp($domain = "facebook",
19                      $allow_www = true),
20     { normal: facebook_keymap },
21     $display_name = "Facebook");
23 page_mode_activate(facebook_mode);
25 provide("facebook");