From 19ce519836f6b2b924e7466deec2f7879fe77b2e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 1 Apr 2024 19:01:48 +0200 Subject: [PATCH] reader/rewrite: add a rule for oglaf.com By default, Oglaf show some disclaimer/warning about its content, and this doesn't play well with rss readers, so let's rewrite it to show the actual comic instead of a placeholder. --- internal/reader/rewrite/rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/reader/rewrite/rules.go b/internal/reader/rewrite/rules.go index 89204e9d..063e4539 100644 --- a/internal/reader/rewrite/rules.go +++ b/internal/reader/rewrite/rules.go @@ -24,7 +24,7 @@ var predefinedRules = map[string]string{ "monkeyuser.com": "add_image_title", "mrlovenstein.com": "add_image_title", "nedroid.com": "add_image_title", - "oglaf.com": "add_image_title", + "oglaf.com": `replace("media.oglaf.com/story/tt(.+).gif"|"media.oglaf.com/comic/$1.jpg"),add_image_title`, "optipess.com": "add_image_title", "peebleslab.com": "add_image_title", "quantamagazine.org": `add_youtube_video_from_id, remove("h6:not(.byline,.post__title__kicker), #comments, .next-post__content, .footer__section, figure .outer--content, script")`,