diff options
author | joe <rbo@gmx.us> | 2025-10-01 16:18:38 +0200 |
---|---|---|
committer | joe <rbo@gmx.us> | 2025-10-01 16:18:38 +0200 |
commit | 63b79d3a45046025308bf4eee705f1f356cdd2af (patch) | |
tree | 8d118ea929889f6bd7ac8db630f46981312f7b26 | |
parent | up (diff) | |
download | surf-63b79d3a45046025308bf4eee705f1f356cdd2af.tar.gz surf-63b79d3a45046025308bf4eee705f1f356cdd2af.tar.bz2 surf-63b79d3a45046025308bf4eee705f1f356cdd2af.tar.xz surf-63b79d3a45046025308bf4eee705f1f356cdd2af.tar.zst surf-63b79d3a45046025308bf4eee705f1f356cdd2af.zip |
Diffstat (limited to '')
-rw-r--r-- | config.def.h | 7 | ||||
-rw-r--r-- | surf.c | 9 |
2 files changed, 10 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h index 14c7d54..d0b117a 100644 --- a/config.def.h +++ b/config.def.h @@ -20,7 +20,7 @@ static Parameter defconfig[ParameterLast] = { [Certificate] = { { .i = 0 }, }, [CaretBrowsing] = { { .i = 0 }, }, [CookiePolicies] = { { .v = "A@a" }, }, - [DarkMode] = { { .i = 0 }, }, + [DarkMode] = { { .i = 1 }, }, [DefaultCharset] = { { .v = "UTF-8" }, }, [DiskCache] = { { .i = 1 }, }, [DNSPrefetch] = { { .i = 0 }, }, @@ -113,11 +113,13 @@ static SiteSpecific styles[] = { { "://dash\\.int\\.ysosecure\\.com", "default.css" }, { "://leek\\.int\\.ysosecure\\.com", "default.css" }, { "://support\\.nuabee\\.fr", "default.css" }, + { "://grafana\\.nuabee\\.fr", "default.css" }, { "://windmill\\.nuabee\\.fr", "default.css" }, { "://www\\.startpage\\.com", "default.css" }, { "://duckduckgo\\.com", "default.css" }, { "://my\\.vultr\\.com", "default.css" }, - { "://|\\.suckless\\.org", "default.css" }, + { "://suckless\\.org", "default.css" }, + { "://.*\\.suckless\\.org", "default.css" }, { "://www\\.protondb\\.com", "default.css" }, { "://www\\.reddit\\.com", "default.css" }, { "://www\\.youtube\\.com", "default.css" }, @@ -171,6 +173,7 @@ static Key keys[] = { { MODKEY|GDK_SHIFT_MASK, GDK_KEY_j, zoom, { .i = -1 } }, { MODKEY|GDK_SHIFT_MASK, GDK_KEY_k, zoom, { .i = +1 } }, { MODKEY|GDK_SHIFT_MASK, GDK_KEY_q, zoom, { .i = 0 } }, + { MODKEY, GDK_KEY_0, zoom, { .i = 0 } }, { MODKEY, GDK_KEY_minus, zoom, { .i = -1 } }, { MODKEY, GDK_KEY_equal, zoom, { .i = +1 } }, @@ -1242,12 +1242,13 @@ createview(WebKitWebView *v, WebKitNavigationAction *a, Client *c) switch (webkit_navigation_action_get_navigation_type(a)) { case WEBKIT_NAVIGATION_TYPE_OTHER: /* fallthrough */ /* - * popup windows of type “other” are almost always triggered - * by user gesture, so inverse the logic here + * allow same-window popup triggered by user gesture */ -/* instead of this, compare destination uri to mouse-over uri for validating window */ - if (webkit_navigation_action_is_user_gesture(a)) + if (webkit_navigation_action_is_user_gesture(a)) { + Arg aa = {.v = webkit_uri_request_get_uri(webkit_navigation_action_get_request(a))}; + newwindow(c, &aa, 1); return NULL; + } case WEBKIT_NAVIGATION_TYPE_LINK_CLICKED: /* fallthrough */ case WEBKIT_NAVIGATION_TYPE_FORM_SUBMITTED: /* fallthrough */ case WEBKIT_NAVIGATION_TYPE_BACK_FORWARD: /* fallthrough */ |