diff options
author | Hygna <hygna@proton.me> | 2022-10-27 11:49:52 +0100 |
---|---|---|
committer | Hygna <hygna@proton.me> | 2022-10-27 11:49:52 +0100 |
commit | fb452d8980907458146533346f3f64553d71f99b (patch) | |
tree | 6210df988e795b332290e348a867d1b78686b9a7 /src | |
parent | Added support for redirecting wikia.com urls (diff) | |
download | libredirect-fb452d8980907458146533346f3f64553d71f99b.zip |
Added Ferrit frontend for reddit
Closes https://codeberg.org/LibRedirect/libredirect/issues/42
Diffstat (limited to 'src')
-rw-r--r-- | src/config/config.json | 9 | ||||
-rwxr-xr-x | src/instances/get_instances.py | 6 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/config/config.json b/src/config/config.json index 25fa9f1f..ac384ce2 100644 --- a/src/config/config.json +++ b/src/config/config.json @@ -250,13 +250,20 @@ }, "name": "Teddit", "instanceList": true + }, + "ferrit": { + "preferences": { + "cookies": ["theme", "front_page", "layout", "wide", "post_sort", "comment_sort", "show_nsfw", "autoplay_videos", "use_hls", "hide_hls_notification", "subscriptions", "filters"] + }, + "name": "Ferrit", + "instanceList": true } }, "targets": ["^https?:\\/{2}(www\\.|old\\.|np\\.|new\\.|amp\\.|)reddit\\.com(?=\\/u(ser)?\\/|\\/r\\/|\\/?$)", "^https?:\\/{2}(i|(external-)?preview)\\.redd\\.it"], "name": "Reddit", "options": { "enabled": true, - "frontend": "libreddit" + "frontend": "ferrit" }, "imageType": "png", "embeddable": false, diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py index 46b8589d..2b154965 100755 --- a/src/instances/get_instances.py +++ b/src/instances/get_instances.py @@ -343,6 +343,11 @@ def teddit(): {'clearnet': 'url', 'tor': 'onion', 'i2p': 'i2p', 'loki': None}, False) +def ferrit(): + fetchJsonList('ferrit', 'Ferrit', 'https://raw.githubusercontent.com/ferritreader/ferrit-instances/master/instances.json', + {'clearnet': 'url', 'tor': 'onion', 'i2p': 'i2p', 'loki': None}, True) + + def wikiless(): fetchJsonList('wikiless', 'Wikiless', 'https://wikiless.org/instances.json', {'clearnet': 'url', 'tor': 'onion', 'i2p': 'i2p', 'loki': None}, False) @@ -495,6 +500,7 @@ nitter() bibliogram() libreddit() teddit() +ferrit() wikiless() scribe() quetre() |