aboutsummaryrefslogtreecommitdiff
path: root/plugins/readability
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-02-27 15:29:30 -0600
committerNunoSempere <nuno.sempere@protonmail.com>2023-02-27 15:29:30 -0600
commit0f4866f520a801bdeabe49365aca09dad2aaedf3 (patch)
tree89306539f1e9c2973e7ac9762566e4286badfa15 /plugins/readability
parent53cc700748c4a8837e9632d52b7d1817232ab6e6 (diff)
tweak: add tweak to remove annoying parts for Money Stuff
Diffstat (limited to 'plugins/readability')
-rw-r--r--plugins/readability/readability.c2
-rw-r--r--plugins/readability/readability.h2
-rw-r--r--plugins/readability/readability.js6
-rwxr-xr-xplugins/readability/recompute_READABILITY_N.sh2
4 files changed, 8 insertions, 4 deletions
diff --git a/plugins/readability/readability.c b/plugins/readability/readability.c
index e0f492d..a93b2b8 100644
--- a/plugins/readability/readability.c
+++ b/plugins/readability/readability.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#define READABILITY_N 85156 + 100
+#define READABILITY_N 85133 + 1000
void read_readability_js(char* string){
FILE *fp=fopen("/home/loki/Documents/core/software/fresh/C/rose-browser/rose-browser/plugins/readability/readability.js", "r");
diff --git a/plugins/readability/readability.h b/plugins/readability/readability.h
index c1da43a..6a21a8c 100644
--- a/plugins/readability/readability.h
+++ b/plugins/readability/readability.h
@@ -1,7 +1,7 @@
#ifndef READABILITY
#define READABILITY
-#define READABILITY_N 85156 + 100
+#define READABILITY_N 85133 + 1000
void read_readability_js(char* string);
diff --git a/plugins/readability/readability.js b/plugins/readability/readability.js
index 3f23068..0532bba 100644
--- a/plugins/readability/readability.js
+++ b/plugins/readability/readability.js
@@ -2383,9 +2383,13 @@ if (document.domain == "archive.is" ){
styles = `
li > span {
- display: none; !important
+ display: none !important;
}
+ p > span > em {
+ display: none !important;
+ }
+ /* ^ deletes the subscribe prompt in Matt Levine's Money Stuff. */
`
}
diff --git a/plugins/readability/recompute_READABILITY_N.sh b/plugins/readability/recompute_READABILITY_N.sh
index bfcf2d5..85d3352 100755
--- a/plugins/readability/recompute_READABILITY_N.sh
+++ b/plugins/readability/recompute_READABILITY_N.sh
@@ -4,5 +4,5 @@ function sedr(){
} ## e.g., sedr "s/target/replacement/g"
READABILITY_N=$(wc -c readability.js | cut -d " " -f 1)
-sedr "s/^#define READABILITY_N .*/#define READABILITY_N $READABILITY_N + 100/g"
+sedr "s/^#define READABILITY_N .*/#define READABILITY_N $READABILITY_N + 1000/g"