Added Ferrit frontend for reddit

Closes https://codeberg.org/LibRedirect/libredirect/issues/42
This commit is contained in:
Hygna 2022-10-27 11:49:52 +01:00
parent 3d1a9105c0
commit fb452d8980
No known key found for this signature in database
2 changed files with 14 additions and 1 deletions

View File

@ -250,13 +250,20 @@
}, },
"name": "Teddit", "name": "Teddit",
"instanceList": true "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"], "targets": ["^https?:\\/{2}(www\\.|old\\.|np\\.|new\\.|amp\\.|)reddit\\.com(?=\\/u(ser)?\\/|\\/r\\/|\\/?$)", "^https?:\\/{2}(i|(external-)?preview)\\.redd\\.it"],
"name": "Reddit", "name": "Reddit",
"options": { "options": {
"enabled": true, "enabled": true,
"frontend": "libreddit" "frontend": "ferrit"
}, },
"imageType": "png", "imageType": "png",
"embeddable": false, "embeddable": false,

View File

@ -343,6 +343,11 @@ def teddit():
{'clearnet': 'url', 'tor': 'onion', 'i2p': 'i2p', 'loki': None}, False) {'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(): def wikiless():
fetchJsonList('wikiless', 'Wikiless', 'https://wikiless.org/instances.json', fetchJsonList('wikiless', 'Wikiless', 'https://wikiless.org/instances.json',
{'clearnet': 'url', 'tor': 'onion', 'i2p': 'i2p', 'loki': None}, False) {'clearnet': 'url', 'tor': 'onion', 'i2p': 'i2p', 'loki': None}, False)
@ -495,6 +500,7 @@ nitter()
bibliogram() bibliogram()
libreddit() libreddit()
teddit() teddit()
ferrit()
wikiless() wikiless()
scribe() scribe()
quetre() quetre()