Compare commits

..

No commits in common. "a0f79388e98a323471463ee9bbfeed74c525eb33" and "10fca6af349e4a721217ef2f8dde4cd65fd4a80f" have entirely different histories.

4 changed files with 5 additions and 12 deletions

View File

@ -3,8 +3,7 @@
// Key user config
#define WIDTH 1920 // 960 for half-width, 1920 for full width
// #define HEIGHT 1080
#define HEIGHT 1000
#define HEIGHT 1080
#define BAR_SIZE 960
// More user config

View File

@ -32,10 +32,8 @@ RUNTIME_FILES_DIR=/opt/rosenrot/
build: $(SRC) $(PLUGINS) $(CONFIG) constants user_cache
$(CC) $(STD) $(WARNINGS) $(OPTIMIZED_MORE) $(DEBUG) $(INCS) $(PLUGINS) $(SRC) -o rosenrot $(LIBS) $(ADBLOCK)
@echo
constants:
@echo
@echo "# Computing constants"
cd plugins/readability/ && sh recompute_READABILITY_N.sh
cd plugins/style && sh recompute_STYLE_N.sh
@ -45,12 +43,11 @@ 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
@echo "# Create user cache"
mkdir -p $(USER_CACHE_DIR)
find . -type f -not -path "*.git*" -not -path "*makefile*" \
-exec sed -i "s|$(MAINTAINER_CACHE_DIR)|$(USER_CACHE_DIR)|g" {} +
find . -type f -not -path "*.git*" -not -path "*makefile*" -exec \
sed -i "s|$(MAINTAINER_CACHE_DIR)|$(USER_CACHE_DIR)|g" {} +
@echo
runtime_files:
@echo
sudo mkdir -p /opt/rosenrot/
sudo cp style.css /opt/rosenrot/
sudo cp -r images/flower-imgs /opt/rosenrot/
@ -60,7 +57,6 @@ runtime_files:
install: rosenrot runtime_files
cp -f rosenrot /usr/bin
cp rosenrot-mklink /usr/bin
@echo
uninstall:
rm -r /opt/rosenrot

View File

@ -25,7 +25,6 @@ int libre_redirect(const char* uri, char* output)
"https://www.bloomberg.com",
"https://www.royalroad.com",
"https://genius.com",
// "https://twitter.com"
// "https://archive.org",
// "https://twitter.com"
};
@ -35,14 +34,13 @@ int libre_redirect(const char* uri, char* output)
// previously: "https://old.reddit.com", "https://teddit.nunosempere.com",
// https://github.com/redlib-org/redlib-instances/blob/main/instances.md
"https://vitalik.eth.limo",
"https://invidious.nerdvpn.de",
"https://invidious.private.coffee",
"https://search.nunosempere.com",
"https://scribe.rip",
"https://translate.riverside.rocks",
"https://archive.ph/https://www.bloomberg.com",
"https://royalread.nunosempere.com",
"https://dumb.vern.cc",
"https://example.com"
// "https://wayback.nunosempere.com",
// "https://nitter.net"
};

View File

@ -252,7 +252,7 @@ window.alert = (message) => {
};
// Extra: hide video players on twitter
if (document.domain == "twitter.com" || document.domain == "x.com") {
if (document.domain == "twitter.com") {
// Function to hide the grandparent of video players
// takes 0.014ms to run, so performance is not the concern here.
// timed with console.time, console.timeEnd