aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-11-20 10:54:40 +0000
committerNunoSempere <nuno.sempere@protonmail.com>2023-11-20 10:54:40 +0000
commit6a3581b7e0928a0df7b5bd8ec850f12101509b23 (patch)
treec9a1fae92b6324ff706a9b48978bf843a483d026
parent39bb8510c187f113d7e6e95662486820ba37b26e (diff)
tweak: more twitter tweaks
-rwxr-xr-xplugins/style/recompute_STYLE_N.sh2
-rw-r--r--plugins/style/style.c2
-rw-r--r--plugins/style/style.h2
-rw-r--r--plugins/style/style.js18
-rwxr-xr-xrosebin43280 -> 43280 bytes
5 files changed, 13 insertions, 11 deletions
diff --git a/plugins/style/recompute_STYLE_N.sh b/plugins/style/recompute_STYLE_N.sh
index 9202894..3e0f30a 100755
--- a/plugins/style/recompute_STYLE_N.sh
+++ b/plugins/style/recompute_STYLE_N.sh
@@ -5,5 +5,5 @@ sed_wrapper()
} ## e.g., sedr "s/target/replacement/g"
STYLE_N=`wc -c style.js | cut -d " " -f 1`
-sed_wrapper "s/^#define STYLE_N .*/#define STYLE_N $STYLE_N + 100/g"
+sed_wrapper "s/^#define STYLE_N .*/#define STYLE_N $STYLE_N + 1000/g"
diff --git a/plugins/style/style.c b/plugins/style/style.c
index 650c735..147cd11 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 6657 + 100
+#define STYLE_N 6765 + 100
void read_style_js(char* string)
{
diff --git a/plugins/style/style.h b/plugins/style/style.h
index a0bb3b8..0a3978d 100644
--- a/plugins/style/style.h
+++ b/plugins/style/style.h
@@ -1,7 +1,7 @@
#ifndef STYLE
#define STYLE
-#define STYLE_N 6657 + 100
+#define STYLE_N 6765 + 100
void read_style_js(char* string);
diff --git a/plugins/style/style.js b/plugins/style/style.js
index e8c585d..4b42fe3 100644
--- a/plugins/style/style.js
+++ b/plugins/style/style.js
@@ -89,6 +89,13 @@ if (document.domain == "twitter.com") {
min-width: 900px;
max-width: 900px;
}
+ [data-testid^="cellInnerDiv"] {
+ min-width: 700px;
+ max-width: 700px;
+ }
+ [aria-label^="Timeline: Conversation"]{
+ margin-left: 145px;
+ }
/* Delete a few unused or annoying elements */
[aria-label^="Verified Orgs"] {
@@ -110,19 +117,12 @@ if (document.domain == "twitter.com") {
display: none;
}
- .r-ymttw5 {
- display: none;
- }
-
/* hide video */
-
[data-testid^="videoPlayer"] {
display: none !important;
}
[data-testid^="videoPlayer"]:before {
content: '<br>[twitter video]';
- margin: 5px;
- border: 10px;
}
`;
@@ -134,7 +134,9 @@ if (document.domain == "twitter.com") {
var grandparentElement = videoPlayer.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;
var newTextElement = document.createElement('div');
newTextElement.textContent = ' [ twitter video ] ';
- newTextElement.style["margin"] = "10px";
+ newTextElement.style["margin-top"] = "10px";
+ newTextElement.style["margin-left"] = "10px";
+ newTextElement.style["margin-bottom"] = "10px";
grandparentElement.replaceWith(newTextElement);
});
}
diff --git a/rose b/rose
index 05110de..752861c 100755
--- a/rose
+++ b/rose
Binary files differ