From 7e23aad95fda2732dd8777207cb213705bbbac9e Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 9 Nov 2023 10:13:11 +0000 Subject: [PATCH] tweak: savepoint --- plugins/style/style.c | 2 +- plugins/style/style.h | 2 +- plugins/style/style.js | 11 ++++------- rose | Bin 43280 -> 43280 bytes 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/plugins/style/style.c b/plugins/style/style.c index 7429ff4..88c82a7 100644 --- a/plugins/style/style.c +++ b/plugins/style/style.c @@ -1,7 +1,7 @@ #include #include #include -#define STYLE_N 6252 + 100 +#define STYLE_N 6073 + 100 void read_style_js(char* string) { diff --git a/plugins/style/style.h b/plugins/style/style.h index 40ebc7a..18175c4 100644 --- a/plugins/style/style.h +++ b/plugins/style/style.h @@ -1,7 +1,7 @@ #ifndef STYLE #define STYLE -#define STYLE_N 6252 + 100 +#define STYLE_N 6073 + 100 void read_style_js(char* string); diff --git a/plugins/style/style.js b/plugins/style/style.js index 4c17f17..9457a7b 100644 --- a/plugins/style/style.js +++ b/plugins/style/style.js @@ -95,13 +95,10 @@ if (document.domain == "twitter.com") { .querySelectorAll('[data-testid="videoPlayer"]') .forEach(function (videoPlayer) { var grandparentElement = videoPlayer.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement; - // grandparentElement.style.display = "none"; - grandparentElement.innerHtml = "none"; - // Make sure not to replace the content if it's already been replaced - if (grandparentElement.getAttribute('data-content-replaced') !== 'true') { - grandparentElement.textContent = ' [twitter video]'; - grandparentElement.setAttribute('data-content-replaced', 'true'); - } + var newTextElement = document.createElement('div'); + newTextElement.textContent = '[twitter video]'; + newTextElement.style.borderWidth = '0px !important'; + grandparentElement.replaceWith(newTextElement); }); } diff --git a/rose b/rose index 7bc2581a10f9045b941f1e80df2996ce6d5df2d4..9e1d36d1c026ce834c5fc50a92581116a2c13c91 100755 GIT binary patch delta 58 zcmbPmiD|+mrVSa)BI|EN|2+CcRAk4hd2@B{Z}ZBENH*GB!@SUqNls$2yq6b{+MMn6 Mj2%P=2ki|50Q(9TYXATM delta 58 zcmbPmiD|+mrVSa)BKplCm+xv>&iCQFfVjtS|~bM-pdO}ZO-<3 M#tx!`gZ7320Q_MXqW}N^