conkeror: Add mozrepl initialization
This commit is contained in:
parent
b9e64b75ee
commit
a1808fd44e
1 changed files with 13 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue