diff options
author | NunoSempere <nuno.sempere@protonmail.com> | 2023-02-15 18:46:07 +0100 |
---|---|---|
committer | NunoSempere <nuno.sempere@protonmail.com> | 2023-02-15 18:46:07 +0100 |
commit | bcaad22c170c0a5e4dc417350028b27d6ddcd5cb (patch) | |
tree | 8b2b3747a9b3459e7e62b14784caf1bea4dedebe | |
parent | 25dedb09e1321ae70fe0598d98a3a6e4d15d1215 (diff) |
tweak: fihnish the readability upgrades for bloomberg
-rw-r--r-- | plugins/readability/readability.c | 2 | ||||
-rw-r--r-- | plugins/readability/readability.h | 2 | ||||
-rw-r--r-- | plugins/readability/readability.js | 10 | ||||
-rwxr-xr-x | plugins/readability/recompute_READABILITY_N.sh | 2 |
4 files changed, 13 insertions, 3 deletions
diff --git a/plugins/readability/readability.c b/plugins/readability/readability.c index b68dee2..e0f492d 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 84976 + 1 +#define READABILITY_N 85156 + 100 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 c81f03c..c1da43a 100644 --- a/plugins/readability/readability.h +++ b/plugins/readability/readability.h @@ -1,7 +1,7 @@ #ifndef READABILITY #define READABILITY -#define READABILITY_N 84976 + 1 +#define READABILITY_N 85156 + 100 void read_readability_js(char* string); diff --git a/plugins/readability/readability.js b/plugins/readability/readability.js index 2c85380..3f23068 100644 --- a/plugins/readability/readability.js +++ b/plugins/readability/readability.js @@ -2345,6 +2345,16 @@ blockquote::before{ } +a[href^="#footnote-"] { + text-decoration: none; +} +a[href^="#footnote-"]::before { + content:" ["; +} +a[href^="#footnote-"]::after { + content:"] "; +} + </style>` /* diff --git a/plugins/readability/recompute_READABILITY_N.sh b/plugins/readability/recompute_READABILITY_N.sh index 1e136e9..bfcf2d5 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 + 1/g" +sedr "s/^#define READABILITY_N .*/#define READABILITY_N $READABILITY_N + 100/g" |