rosenrot-browser

A hackable browser based on Webkitgtk
Log | Files | Refs | README

commit 39bb8510c187f113d7e6e95662486820ba37b26e
parent f280b6f0f8def3f0c39642570371e3cca379ef20
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Mon, 20 Nov 2023 01:03:01 +0000

tweaks: more twitter tweaks

Diffstat:
Mplugins/style/style.c | 2+-
Mplugins/style/style.h | 2+-
Mplugins/style/style.js | 8+++++---
Mrose | 0
4 files changed, 7 insertions(+), 5 deletions(-)

diff --git 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 @@ -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 @@ -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); }); } diff --git a/rose b/rose Binary files differ.