From 39bb8510c187f113d7e6e95662486820ba37b26e Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Mon, 20 Nov 2023 01:03:01 +0000 Subject: tweaks: more twitter tweaks --- plugins/style/style.c | 2 +- plugins/style/style.h | 2 +- plugins/style/style.js | 8 +++++--- rose | Bin 43280 -> 43280 bytes 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/style/style.c b/plugins/style/style.c index 8fb0b08..650c735 100644 --- a/plugins/style/style.c +++ b/plugins/style/style.c @@ -1,7 +1,7 @@ #include #include #include -#define STYLE_N 6512 + 100 +#define STYLE_N 6657 + 100 void read_style_js(char* string) { diff --git a/plugins/style/style.h b/plugins/style/style.h index df0408e..a0bb3b8 100644 --- a/plugins/style/style.h +++ b/plugins/style/style.h @@ -1,7 +1,7 @@ #ifndef STYLE #define STYLE -#define STYLE_N 6512 + 100 +#define STYLE_N 6657 + 100 void read_style_js(char* string); diff --git a/plugins/style/style.js b/plugins/style/style.js index 6c9e652..e8c585d 100644 --- a/plugins/style/style.js +++ b/plugins/style/style.js @@ -120,7 +120,9 @@ if (document.domain == "twitter.com") { display: none !important; } [data-testid^="videoPlayer"]:before { - content: '[twitter video]'; + content: '
[twitter video]'; + margin: 5px; + border: 10px; } `; @@ -131,8 +133,8 @@ if (document.domain == "twitter.com") { .forEach(function (videoPlayer) { var grandparentElement = videoPlayer.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement; var newTextElement = document.createElement('div'); - newTextElement.textContent = '[twitter video]'; - newTextElement.style.borderWidth = '0px !important'; + newTextElement.textContent = ' [ twitter video ] '; + newTextElement.style["margin"] = "10px"; grandparentElement.replaceWith(newTextElement); }); } diff --git a/rose b/rose index 2bf85fe..05110de 100755 Binary files a/rose and b/rose differ -- cgit v1.2.3