Added Ferrit frontend for reddit
Closes https://codeberg.org/LibRedirect/libredirect/issues/42
This commit is contained in:
parent
3d1a9105c0
commit
fb452d8980
|
@ -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,
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue