aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.def.h7
-rw-r--r--surf.c9
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 } },
diff --git a/surf.c b/surf.c
index 7a0f624..241b8f6 100644
--- a/surf.c
+++ b/surf.c
@@ -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 */