summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-02-10 22:08:44 +0100
committerGravatar Tom Willemsen2013-02-10 22:08:44 +0100
commita1808fd44e44160545d120c3eafcf790320ce003 (patch)
treedb0b449217bd033610699e0174e8e32494fbcf09
parentb9e64b75ee744f951dbaa04974515850882418de (diff)
downloaddotfiles-a1808fd44e44160545d120c3eafcf790320ce003.tar.gz
dotfiles-a1808fd44e44160545d120c3eafcf790320ce003.zip
conkeror: Add mozrepl initialization
-rw-r--r--.conkerorrc/init.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/.conkerorrc/init.js b/.conkerorrc/init.js
index 4658eaa..157f125 100644
--- a/.conkerorrc/init.js
+++ b/.conkerorrc/init.js
@@ -277,6 +277,19 @@ function read_url_local_port_handler(input)
read_url_handler_list = [read_url_local_port_handler,
read_url_github_command_handler];
+// Mozrepl
+let (mozrepl_init = get_home_directory()) {
+ mozrepl_init.appendRelativePath(".mozrepl-conkeror.js");
+ session_pref('extensions.mozrepl.initUrl', make_uri(mozrepl_init).spec);
+};
+
+if ('@hyperstruct.net/mozlab/mozrepl;1' in Cc) {
+ let mozrepl = Cc['@hyperstruct.net/mozlab/mozrepl;1']
+ .getService(Ci.nsIMozRepl);
+ if (!mozrepl.isActive())
+ mozrepl.start(4242);
+}
+
register_user_stylesheet(
"data:text/css," +
escape(