rosenrot-browser

A hackable browser based on Webkitgtk
Log | Files | Refs | README

commit 6ed0181a0c7520cf818661ab10c537f43489cae2
parent f2535db66f58272ee93441c1955b0871dd38bf25
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Fri, 29 Dec 2023 18:37:50 +0100

fix F11 screen toggling

Diffstat:
Mplugins/style/style.c | 2+-
Mplugins/style/style.h | 2+-
Mplugins/style/style.js | 9+++++++++
Mrose | 0
Mrose.c | 2+-
5 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/plugins/style/style.c b/plugins/style/style.c @@ -1,7 +1,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#define STYLE_N 6894 + 1000 +#define STYLE_N 7127 + 1000 void read_style_js(char* string) { diff --git a/plugins/style/style.h b/plugins/style/style.h @@ -1,7 +1,7 @@ #ifndef STYLE #define STYLE -#define STYLE_N 6894 + 1000 +#define STYLE_N 7127 + 1000 void read_style_js(char* string); diff --git a/plugins/style/style.js b/plugins/style/style.js @@ -127,6 +127,15 @@ if (document.domain == "twitter.com") { background-color: inherit !important; transition: none !important; } + /* Hide go to top button */ + [aria-label^="New posts are available. Push the period key to go to the them."]{ + display: none; + } + + /* No transparency at the top */ + [aria-live^="polite"]{ + background: white !important; + } `; diff --git a/rose b/rose Binary files differ. diff --git a/rose.c b/rose.c @@ -412,7 +412,7 @@ int keypress(void* self, GdkEvent* e, GtkNotebook* notebook) (void)self; for (int i = 0; i < sizeof(keys) / sizeof(keys[0]); i++) - if (e->key.keyval == keys[i].key && e->key.state == keys[i].mod) + if (e->key.keyval == keys[i].key && (e->key.state == keys[i].mod || keys[i].mod == 0x0)) return handle_key(keys[i].id, notebook); return 0;