diff options
author | NunoSempere <nuno.sempere@protonmail.com> | 2023-05-05 20:08:53 -0400 |
---|---|---|
committer | NunoSempere <nuno.sempere@protonmail.com> | 2023-05-05 20:08:53 -0400 |
commit | 574cdd30ce572046061840485bcd75255b529688 (patch) | |
tree | 9aefe364883794d4a6536655508581eb7959079d /plugins/style | |
parent | 230f472e3a8736d01ec88a7a78d99dad7664313e (diff) |
tweak: remove twitter from redirection blacklist
+ tweak styles.
Diffstat (limited to 'plugins/style')
-rw-r--r-- | plugins/style/style.c | 2 | ||||
-rw-r--r-- | plugins/style/style.h | 2 | ||||
-rw-r--r-- | plugins/style/style.js | 12 |
3 files changed, 14 insertions, 2 deletions
diff --git a/plugins/style/style.c b/plugins/style/style.c index 9398649..a89bd6e 100644 --- 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 1610 + 1 +#define STYLE_N 1781 + 1 void read_style_js(char* string) { diff --git a/plugins/style/style.h b/plugins/style/style.h index ce2a8a1..1fe1a37 100644 --- a/plugins/style/style.h +++ b/plugins/style/style.h @@ -1,7 +1,7 @@ #ifndef STYLE #define STYLE -#define STYLE_N 1610 + 1 +#define STYLE_N 1781 + 1 void read_style_js(char* string); diff --git a/plugins/style/style.js b/plugins/style/style.js index a0cd7c0..ed62991 100644 --- a/plugins/style/style.js +++ b/plugins/style/style.js @@ -52,6 +52,17 @@ if (document.domain == "search.nunosempere.com" ){ } ` } +if (document.domain == "twitter.com" ){ + styles = ` + [data-testid="placementTracking"] { + display: none; + } + [data-testid="sidebarColumn"] { + display: none; + } + ` +} + if(styles != null){ var styleSheet = document.createElement('style') styleSheet.innerText = styles @@ -60,3 +71,4 @@ if(styles != null){ } document.body.style.visibility = "visible" + |