aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/style/style.c2
-rw-r--r--plugins/style/style.h2
-rw-r--r--plugins/style/style.js16
-rwxr-xr-xrosebin43280 -> 43280 bytes
4 files changed, 17 insertions, 3 deletions
diff --git a/plugins/style/style.c b/plugins/style/style.c
index 0cd6b4f..a9b4135 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 4709 + 100
+#define STYLE_N 5436 + 100
void read_style_js(char* string)
{
diff --git a/plugins/style/style.h b/plugins/style/style.h
index 7797eae..1927c79 100644
--- a/plugins/style/style.h
+++ b/plugins/style/style.h
@@ -1,7 +1,7 @@
#ifndef STYLE
#define STYLE
-#define STYLE_N 4709 + 100
+#define STYLE_N 5436 + 100
void read_style_js(char* string);
diff --git a/plugins/style/style.js b/plugins/style/style.js
index 6af94ed..46bbc63 100644
--- a/plugins/style/style.js
+++ b/plugins/style/style.js
@@ -82,12 +82,26 @@ if (document.domain == "twitter.com") {
/* hide video */
[data-testid^="videoPlayer"] {
- display: none;
+ display: none !important;
}
[data-testid^="videoPlayer"]:before {
content: '[twitter video]';
}
`;
+
+ document.addEventListener('DOMContentLoaded', function() {
+ // Select all the videoPlayer elements
+ var videoPlayers = document.querySelectorAll('[data-testid="videoPlayer"]');
+
+ // Loop through the NodeList
+ videoPlayers.forEach(function(videoPlayer) {
+ // Traverse two levels up the DOM tree
+ var grandparentElement = videoPlayer.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;
+
+ // Hide the grandparent element
+ grandparentElement.style.display = 'none';
+ });
+ });
}
if (document.domain == "reddit.com" || document.domain == "old.reddit.com") {
diff --git a/rose b/rose
index 09b0cfd..7bc2581 100755
--- a/rose
+++ b/rose
Binary files differ