aboutsummaryrefslogtreecommitdiff
path: root/plugins/style
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-11-20 01:03:01 +0000
committerNunoSempere <nuno.sempere@protonmail.com>2023-11-20 01:03:01 +0000
commit39bb8510c187f113d7e6e95662486820ba37b26e (patch)
treecb895044b6617220cc0e11a3dd71d79b410e0a02 /plugins/style
parentf280b6f0f8def3f0c39642570371e3cca379ef20 (diff)
tweaks: more twitter tweaks
Diffstat (limited to 'plugins/style')
-rw-r--r--plugins/style/style.c2
-rw-r--r--plugins/style/style.h2
-rw-r--r--plugins/style/style.js8
3 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
-#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: '<br>[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);
});
}