tweak: add tweak to remove annoying parts for Money Stuff
This commit is contained in:
parent
53cc700748
commit
0f4866f520
|
@ -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");
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef READABILITY
|
||||
#define READABILITY
|
||||
|
||||
#define READABILITY_N 85156 + 100
|
||||
#define READABILITY_N 85133 + 1000
|
||||
|
||||
void read_readability_js(char* string);
|
||||
|
||||
|
|
|
@ -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. */
|
||||
`
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user