From 70849e74d6779bea05a236dd529145807fa637fd Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Sun, 24 Mar 2024 07:44:44 -0400 Subject: [PATCH] don't show brave donwload button --- plugins/style/style.c | 2 +- plugins/style/style.h | 2 +- plugins/style/style.js | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/style/style.c b/plugins/style/style.c index e9c2762..f8734ca 100644 --- a/plugins/style/style.c +++ b/plugins/style/style.c @@ -1,7 +1,7 @@ #include #include #include -#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 index 59cc7d7..112a61b 100644 --- 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 index 71284e1..f32f6ef 100644 --- 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 = ` /*