tweak: savepoint

This commit is contained in:
NunoSempere 2023-11-09 10:13:11 +00:00
parent 0ba87b8cdc
commit 7e23aad95f
4 changed files with 6 additions and 9 deletions

View File

@ -1,7 +1,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#define STYLE_N 6252 + 100 #define STYLE_N 6073 + 100
void read_style_js(char* string) void read_style_js(char* string)
{ {

View File

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

View File

@ -95,13 +95,10 @@ if (document.domain == "twitter.com") {
.querySelectorAll('[data-testid="videoPlayer"]') .querySelectorAll('[data-testid="videoPlayer"]')
.forEach(function (videoPlayer) { .forEach(function (videoPlayer) {
var grandparentElement = videoPlayer.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement; var grandparentElement = videoPlayer.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;
// grandparentElement.style.display = "none"; var newTextElement = document.createElement('div');
grandparentElement.innerHtml = "none"; newTextElement.textContent = '[twitter video]';
// Make sure not to replace the content if it's already been replaced newTextElement.style.borderWidth = '0px !important';
if (grandparentElement.getAttribute('data-content-replaced') !== 'true') { grandparentElement.replaceWith(newTextElement);
grandparentElement.textContent = ' [twitter video]';
grandparentElement.setAttribute('data-content-replaced', 'true');
}
}); });
} }

BIN
rose

Binary file not shown.