diff options
author | Tom Willemsen | 2013-02-10 22:08:44 +0100 |
---|---|---|
committer | Tom Willemsen | 2013-02-10 22:08:44 +0100 |
commit | a1808fd44e44160545d120c3eafcf790320ce003 (patch) | |
tree | db0b449217bd033610699e0174e8e32494fbcf09 /.conkerorrc/init.js | |
parent | b9e64b75ee744f951dbaa04974515850882418de (diff) | |
download | dotfiles-a1808fd44e44160545d120c3eafcf790320ce003.tar.gz dotfiles-a1808fd44e44160545d120c3eafcf790320ce003.zip |
conkeror: Add mozrepl initialization
Diffstat (limited to '.conkerorrc/init.js')
-rw-r--r-- | .conkerorrc/init.js | 13 |
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( |