From f280b6f0f8def3f0c39642570371e3cca379ef20 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Mon, 20 Nov 2023 00:50:27 +0000 Subject: [PATCH] more twitter style tweaks --- makefile | 1 + plugins/style/style.c | 2 +- plugins/style/style.h | 2 +- plugins/style/style.js | 27 +++++++++++++++++++++++++++ rose | Bin 43280 -> 43280 bytes 5 files changed, 30 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index fe849f3..b30c3ce 100644 --- a/makefile +++ b/makefile @@ -84,6 +84,7 @@ install: rose mkdir -p /usr/share/themes/rose cp style.css /usr/share/themes/rose/ cp rose-mklink /usr/bin + sudo cp rose /usr/bin/rose-browser/twitter # custom twitter tweaks uninstall: rm -r /usr/share/themes/rose diff --git a/plugins/style/style.c b/plugins/style/style.c index 88c82a7..8fb0b08 100644 --- a/plugins/style/style.c +++ b/plugins/style/style.c @@ -1,7 +1,7 @@ #include #include #include -#define STYLE_N 6073 + 100 +#define STYLE_N 6512 + 100 void read_style_js(char* string) { diff --git a/plugins/style/style.h b/plugins/style/style.h index 18175c4..df0408e 100644 --- a/plugins/style/style.h +++ b/plugins/style/style.h @@ -1,7 +1,7 @@ #ifndef STYLE #define STYLE -#define STYLE_N 6073 + 100 +#define STYLE_N 6512 + 100 void read_style_js(char* string); diff --git a/plugins/style/style.js b/plugins/style/style.js index f8827ef..6c9e652 100644 --- a/plugins/style/style.js +++ b/plugins/style/style.js @@ -78,13 +78,40 @@ if (document.domain == "twitter.com") { [data-testid^="sidebarColumn"] { display: none; } + + /* Hide DMs v2 */ [data-testid^="DMDrawerHeader"] { display: none; } + + /* Tweak main column */ [data-testid^="primaryColumn"] { min-width: 900px; max-width: 900px; + } + /* Delete a few unused or annoying elements */ + [aria-label^="Verified Orgs"] { + display: none; + } + [aria-label^="Lists"] { + display: none; + } + [aria-label^="Communities"] { + display: none; + } + [aria-label^="Primary"] { + margin-top: 50px; + } + [role^="progressbar"]{ + display: none; + } + .r-1h8ys4a { + display: none; + } + + .r-ymttw5 { + display: none; } /* hide video */ diff --git a/rose b/rose index 9e1d36d1c026ce834c5fc50a92581116a2c13c91..2bf85fee392cc1f10a4aa75c65a528cb322d3f01 100755 GIT binary patch delta 66 zcmbPmiD|+mrVSa)A{>8zow1&_?cQN6BU#1kNn%g#FYel0!@SUq>8j*pc`q*@wK?1C U89Rs$4l?9m`og%mEvm~80O>d!I{*Lx delta 66 zcmbPmiD|+mrVSa)BI|EN|2+CcRAk4hd2@B{Z}ZBENH*GB!@SUqNls$2yq6b{+MMn6 Uj2%P=2N`lOZD85l7S-hk0J}OFvH$=8