From 6ed0181a0c7520cf818661ab10c537f43489cae2 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Fri, 29 Dec 2023 18:37:50 +0100 Subject: [PATCH] fix F11 screen toggling --- plugins/style/style.c | 2 +- plugins/style/style.h | 2 +- plugins/style/style.js | 9 +++++++++ rose | Bin 43280 -> 43280 bytes rose.c | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/plugins/style/style.c b/plugins/style/style.c index efa6b9a..4631518 100644 --- a/plugins/style/style.c +++ b/plugins/style/style.c @@ -1,7 +1,7 @@ #include #include #include -#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 index 5c22e87..a28552a 100644 --- 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 index 30f35a6..b66e521 100644 --- 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 index 30d1e1a81e18e00f605dbfe488d1492c71f2a69c..0e146a507991898c862ed4418f31e4922260ab42 100755 GIT binary patch delta 136 zcmbPmiD|+mrVSa)B8*p-71)PORW2)GUAtzgh>g*^(D|Edm>0S+9gv?a@8t!gHfMW1 zV+YZ}LB;GIyi<7@7`p3Z3{U!Wo_NjAFVE0?kkO<008jHz;SwF|3YOCMF5L_+mTnRy ntgfvGN*{V8pY-Uw=F!XI>DXP<$nmoE_y7O=@-CbCqL};v`TaEU delta 136 zcmbPmiD|+mrVSa)B8$70Kar8Bk9@Gymi=Fx#MYfc9!odZFfVjtx-K_a-pdO}ZO-<3 z#tx!`gNoTbSf}zbFm%_+7@qX$Jn)*IU!I})Afrd~0iNcc!X-M^6)dIiUAj43Ed3-( npLryo^ys|i(aYlL*j>}W@v`gp|Nm)v{PHaf3=Et3qL};vi|sW6 diff --git a/rose.c b/rose.c index bead302..2258b60 100644 --- 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;