Compare commits
3 Commits
10fca6af34
...
a0f79388e9
Author | SHA1 | Date | |
---|---|---|---|
a0f79388e9 | |||
126fdc32fd | |||
40da9afd4d |
3
config.h
3
config.h
|
@ -3,7 +3,8 @@
|
||||||
|
|
||||||
// Key user config
|
// Key user config
|
||||||
#define WIDTH 1920 // 960 for half-width, 1920 for full width
|
#define WIDTH 1920 // 960 for half-width, 1920 for full width
|
||||||
#define HEIGHT 1080
|
// #define HEIGHT 1080
|
||||||
|
#define HEIGHT 1000
|
||||||
#define BAR_SIZE 960
|
#define BAR_SIZE 960
|
||||||
|
|
||||||
// More user config
|
// More user config
|
||||||
|
|
8
makefile
8
makefile
|
@ -32,8 +32,10 @@ RUNTIME_FILES_DIR=/opt/rosenrot/
|
||||||
|
|
||||||
build: $(SRC) $(PLUGINS) $(CONFIG) constants user_cache
|
build: $(SRC) $(PLUGINS) $(CONFIG) constants user_cache
|
||||||
$(CC) $(STD) $(WARNINGS) $(OPTIMIZED_MORE) $(DEBUG) $(INCS) $(PLUGINS) $(SRC) -o rosenrot $(LIBS) $(ADBLOCK)
|
$(CC) $(STD) $(WARNINGS) $(OPTIMIZED_MORE) $(DEBUG) $(INCS) $(PLUGINS) $(SRC) -o rosenrot $(LIBS) $(ADBLOCK)
|
||||||
|
@echo
|
||||||
|
|
||||||
constants:
|
constants:
|
||||||
|
@echo
|
||||||
@echo "# Computing constants"
|
@echo "# Computing constants"
|
||||||
cd plugins/readability/ && sh recompute_READABILITY_N.sh
|
cd plugins/readability/ && sh recompute_READABILITY_N.sh
|
||||||
cd plugins/style && sh recompute_STYLE_N.sh
|
cd plugins/style && sh recompute_STYLE_N.sh
|
||||||
|
@ -43,11 +45,12 @@ user_cache:
|
||||||
@if [ `id -u` -eq 0 ]; then echo "can't run make user_cache with sudo, because USER_CACHE_DIR would be /home/root/.cache"; return 1; fi
|
@if [ `id -u` -eq 0 ]; then echo "can't run make user_cache with sudo, because USER_CACHE_DIR would be /home/root/.cache"; return 1; fi
|
||||||
@echo "# Create user cache"
|
@echo "# Create user cache"
|
||||||
mkdir -p $(USER_CACHE_DIR)
|
mkdir -p $(USER_CACHE_DIR)
|
||||||
find . -type f -not -path "*.git*" -not -path "*makefile*" -exec \
|
find . -type f -not -path "*.git*" -not -path "*makefile*" \
|
||||||
sed -i "s|$(MAINTAINER_CACHE_DIR)|$(USER_CACHE_DIR)|g" {} +
|
-exec sed -i "s|$(MAINTAINER_CACHE_DIR)|$(USER_CACHE_DIR)|g" {} +
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
runtime_files:
|
runtime_files:
|
||||||
|
@echo
|
||||||
sudo mkdir -p /opt/rosenrot/
|
sudo mkdir -p /opt/rosenrot/
|
||||||
sudo cp style.css /opt/rosenrot/
|
sudo cp style.css /opt/rosenrot/
|
||||||
sudo cp -r images/flower-imgs /opt/rosenrot/
|
sudo cp -r images/flower-imgs /opt/rosenrot/
|
||||||
|
@ -57,6 +60,7 @@ runtime_files:
|
||||||
install: rosenrot runtime_files
|
install: rosenrot runtime_files
|
||||||
cp -f rosenrot /usr/bin
|
cp -f rosenrot /usr/bin
|
||||||
cp rosenrot-mklink /usr/bin
|
cp rosenrot-mklink /usr/bin
|
||||||
|
@echo
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -r /opt/rosenrot
|
rm -r /opt/rosenrot
|
||||||
|
|
|
@ -25,6 +25,7 @@ int libre_redirect(const char* uri, char* output)
|
||||||
"https://www.bloomberg.com",
|
"https://www.bloomberg.com",
|
||||||
"https://www.royalroad.com",
|
"https://www.royalroad.com",
|
||||||
"https://genius.com",
|
"https://genius.com",
|
||||||
|
// "https://twitter.com"
|
||||||
// "https://archive.org",
|
// "https://archive.org",
|
||||||
// "https://twitter.com"
|
// "https://twitter.com"
|
||||||
};
|
};
|
||||||
|
@ -34,13 +35,14 @@ int libre_redirect(const char* uri, char* output)
|
||||||
// previously: "https://old.reddit.com", "https://teddit.nunosempere.com",
|
// previously: "https://old.reddit.com", "https://teddit.nunosempere.com",
|
||||||
// https://github.com/redlib-org/redlib-instances/blob/main/instances.md
|
// https://github.com/redlib-org/redlib-instances/blob/main/instances.md
|
||||||
"https://vitalik.eth.limo",
|
"https://vitalik.eth.limo",
|
||||||
"https://invidious.private.coffee",
|
"https://invidious.nerdvpn.de",
|
||||||
"https://search.nunosempere.com",
|
"https://search.nunosempere.com",
|
||||||
"https://scribe.rip",
|
"https://scribe.rip",
|
||||||
"https://translate.riverside.rocks",
|
"https://translate.riverside.rocks",
|
||||||
"https://archive.ph/https://www.bloomberg.com",
|
"https://archive.ph/https://www.bloomberg.com",
|
||||||
"https://royalread.nunosempere.com",
|
"https://royalread.nunosempere.com",
|
||||||
"https://dumb.vern.cc",
|
"https://dumb.vern.cc",
|
||||||
|
"https://example.com"
|
||||||
// "https://wayback.nunosempere.com",
|
// "https://wayback.nunosempere.com",
|
||||||
// "https://nitter.net"
|
// "https://nitter.net"
|
||||||
};
|
};
|
||||||
|
|
|
@ -252,7 +252,7 @@ window.alert = (message) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Extra: hide video players on twitter
|
// Extra: hide video players on twitter
|
||||||
if (document.domain == "twitter.com") {
|
if (document.domain == "twitter.com" || document.domain == "x.com") {
|
||||||
// Function to hide the grandparent of video players
|
// Function to hide the grandparent of video players
|
||||||
// takes 0.014ms to run, so performance is not the concern here.
|
// takes 0.014ms to run, so performance is not the concern here.
|
||||||
// timed with console.time, console.timeEnd
|
// timed with console.time, console.timeEnd
|
||||||
|
|
Loading…
Reference in New Issue
Block a user