summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-12-02 15:58:18 +0100
committerGravatar Tom Willemse2013-12-02 15:58:18 +0100
commitc767936aba976cb1431eb49d0a10ee195c44e5fc (patch)
treeaa99fb66dac9b105805828089a5e3d724f8bda6e
parentf7e4ab3af47e0a5e87dcb66a955976a9ad059e31 (diff)
downloadconkeror-c767936aba976cb1431eb49d0a10ee195c44e5fc.tar.gz
conkeror-c767936aba976cb1431eb49d0a10ee195c44e5fc.zip
Add Atlassian JIRA page-mode
-rw-r--r--.conkerorrc/init.js2
-rw-r--r--.conkerorrc/page-modes/jira.js16
2 files changed, 18 insertions, 0 deletions
diff --git a/.conkerorrc/init.js b/.conkerorrc/init.js
index 3385ad1..915491d 100644
--- a/.conkerorrc/init.js
+++ b/.conkerorrc/init.js
@@ -6,11 +6,13 @@ load_paths.push("file:///usr/local/clark/share/conkeror/modules/");
load_paths.push("file:///home/slash/projects/cdispass/");
load_paths.push("file:///home/slash/.conkerorrc/site-js/");
load_paths.push("file:///home/slash/.conkerorrc/clark-conkeror/");
+load_paths.push("file:///home/slash/.conkerorrc/page-modes/");
theme_load_paths.push("/home/slash/.conkerorrc/themes/");
require("clark");
require("cdispass");
require("quickdispatch");
+require("jira");
define_browser_object_class(
"history-url", null,
diff --git a/.conkerorrc/page-modes/jira.js b/.conkerorrc/page-modes/jira.js
new file mode 100644
index 0000000..f2d70c3
--- /dev/null
+++ b/.conkerorrc/page-modes/jira.js
@@ -0,0 +1,16 @@
+define_keymap("jira_keymap", $display_name="jira");
+
+define_key(jira_keymap, "1", null, $fallthrough);
+define_key(jira_keymap, "2", null, $fallthrough);
+define_key(jira_keymap, "3", null, $fallthrough);
+
+define_keymaps_page_mode("jira-mode",
+ build_url_regexp($domain = /.*\.atlassian/,
+ $tlds=["net"]),
+ { normal: jira_keymap },
+ $display_name = "Jira",
+ $doc="A page mode for Jira.");
+
+page_mode_activate(jira_mode);
+
+provide("jira");