tweaks: more twitter tweaks

This commit is contained in:
NunoSempere 2023-11-20 01:03:01 +00:00
parent f280b6f0f8
commit 39bb8510c1
4 changed files with 7 additions and 5 deletions

View File

@ -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)
{

View File

@ -1,7 +1,7 @@
#ifndef STYLE
#define STYLE
#define STYLE_N 6512 + 100
#define STYLE_N 6657 + 100
void read_style_js(char* string);

View File

@ -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;
}
`;
@ -132,7 +134,7 @@ 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.borderWidth = '0px !important';
newTextElement.style["margin"] = "10px";
grandparentElement.replaceWith(newTextElement);
});
}

BIN
rose

Binary file not shown.