Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rewrite rule replace for custom search and replace #892

Merged
merged 1 commit into from
Nov 29, 2020

Conversation

Pacman99
Copy link

The rule should be formatted like this:
replace("search term"|"replace term")
Standard golang regex and replace syntax can be used.

I think this will be useful for small rewrite cases which aren't covered by the existing rewrite rules.

My specific use-case is for webtoons.com: replacing webtoon with swebtoon fixes the image src links and renders them properly..

@fguillot fguillot merged commit b8b6c74 into miniflux:master Nov 29, 2020
fguillot pushed a commit that referenced this pull request Jul 11, 2023
Although the only source I have for the rewrite rule is, in fact, #892, it does work when combined with add_dynamic_image and scraping the right element. I have not investigated further.

Works around #775 and #1871 (as in, gives us working webtoons feeds but referer spoofing would still be a nice tool to have).

Fixes #256.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants