Add confirm quit interactive menu for conkeror
Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
This commit is contained in:
parent
17d50aba45
commit
d261ff7704
12
.conkerorrc
12
.conkerorrc
|
@ -234,6 +234,18 @@ interactive("firebug", "open firebug lite", firebug);
|
||||||
// Disable whitelist (Causes extensions from unknown/unsigned sites to silently fail if not enabled!)
|
// Disable whitelist (Causes extensions from unknown/unsigned sites to silently fail if not enabled!)
|
||||||
//session_pref("xpinstall.whitelist.required", false);
|
//session_pref("xpinstall.whitelist.required", false);
|
||||||
|
|
||||||
|
// Confirm quiting conkeror
|
||||||
|
// See: http://conkeror.org/BreakingChanges
|
||||||
|
add_hook("before_quit_hook",
|
||||||
|
function () {
|
||||||
|
var w = get_recent_conkeror_window();
|
||||||
|
var result = (w == null) ||
|
||||||
|
"y" == (yield w.minibuffer.read_single_character_option(
|
||||||
|
$prompt = "Quit Conkeror? (y/n)",
|
||||||
|
$options = ["y", "n"]));
|
||||||
|
yield co_return(result);
|
||||||
|
});
|
||||||
|
|
||||||
//TODO: consider something like below to darken pages
|
//TODO: consider something like below to darken pages
|
||||||
function darken_page (I) {
|
function darken_page (I) {
|
||||||
var styles='* { background: black !important; color: grey !important; }'+
|
var styles='* { background: black !important; color: grey !important; }'+
|
||||||
|
|
Reference in New Issue