commit 70849e74d6779bea05a236dd529145807fa637fd
parent 136ad046784c08fb45c0559a90f31b8b46230774
Author: NunoSempere <nuno.semperelh@protonmail.com>
Date: Sun, 24 Mar 2024 07:44:44 -0400
don't show brave donwload button
Diffstat:
3 files changed, 10 insertions(+), 2 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 7653 + 1000
+#define STYLE_N 7827 + 1000
void read_style_js(char* string)
{
diff --git a/plugins/style/style.h b/plugins/style/style.h
@@ -1,5 +1,5 @@
#pragma once
-#define STYLE_N 7653 + 1000
+#define STYLE_N 7827 + 1000
void read_style_js(char* string);
diff --git a/plugins/style/style.js b/plugins/style/style.js
@@ -54,6 +54,14 @@ switch (document.domain) {
}
`;
break;
+ case "search.brave.com":
+ styles = `
+ .download-button,
+ a[href^="https://brave.com/download/"] {
+ display: none !important;
+ }
+ `;
+ break;
case "search.nunosempere.com":
styles = `
/*