rosenrot/plugins/readability/recompute_READABILITY_N.sh
NunoSempere cd6b158e3e feat: make reader mode right
Use a whiter background, which is nicer on my screen.

Add plugin step to install.sh
2022-12-16 01:03:35 +01:00

9 lines
263 B
Bash
Executable File

#!/bin/bash
function sedr(){
find ./ -type f -exec sed -i -e "$1" {} \;
} ## e.g., sedr "s/target/replacement/g"
READABILITY_N=$(wc -c ./plugins/*/readability.js | cut -d " " -f 1)
sedr "s/^#define READABILITY_N .*/#define READABILITY_N $READABILITY_N + 1/g"