> Read about it here: http://conkeror.org/ContentPolicy

OK. so I copycatted content-policy-enable/disable to make a toggle and
bound a key to it.  That works very nicely. Thanks.

(I then tried to interpolate the content of the interactive function
"reload" before returning - see below - but I guess that's too big 
for my britches.  I get "No browser object" when I try to use it.)

Silvio



interactive("toggle-content-policy",
    "Toggle content-policy processing.",
    function (I) {
        if (content_policy_listener.enabled) {
            I.minibuffer.message("Disabling Content-policy.");
            content_policy_listener.enabled = false;
        }
        else {
            I.minibuffer.message("Enabling Content-policy.");
            content_policy_listener.enabled = true;
        }
        check_buffer(I.buffer, content_buffer);
        var element = yield read_browser_object(I);
        reload(I.buffer, I.P, element, I.forced_charset);

        return;
    });

define_key(default_global_keymap, ":", "toggle-content-policy");

_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to