Since noscript isn't working currently, create a C-j to turn off Javascript.
This commit is contained in:
parent
4502cb2ad8
commit
e751c51ae5
1 changed files with 13 additions and 0 deletions
13
conkerorrc
13
conkerorrc
|
|
@ -27,3 +27,16 @@ session_auto_save_file = "auto-save-session.conkeror";
|
||||||
|
|
||||||
hints_auto_exit_delay = 400;
|
hints_auto_exit_delay = 400;
|
||||||
hints_ambiguous_auto_exit_delay = 2000;
|
hints_ambiguous_auto_exit_delay = 2000;
|
||||||
|
|
||||||
|
// C-j toggles Javascript support on and off, displays status of it in minibuffer
|
||||||
|
interactive("toggle-js", "toggle javascript",
|
||||||
|
function (I) {
|
||||||
|
var js_pref = "javascript.enabled";
|
||||||
|
var js_val = get_pref(js_pref);
|
||||||
|
js_val = ! js_val;
|
||||||
|
session_pref(js_pref, js_val);
|
||||||
|
I.window.minibuffer.show("JavaScript Status: " + (js_val ? "on" : "off"));
|
||||||
|
});
|
||||||
|
define_key(default_global_keymap, "C-j", "toggle-js");
|
||||||
|
|
||||||
|
// require("noscript");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue