Add support for Wikiless instances
"A free open source alternative Wikipedia front-end focused on privacy" - https://codeberg.org/orenom/Wikiless
This commit is contained in:
parent
ee2996e258
commit
21646f8f29
2 changed files with 33 additions and 7 deletions
29
.github/workflows/update-instances.yml
vendored
29
.github/workflows/update-instances.yml
vendored
|
@ -85,20 +85,20 @@ jobs:
|
|||
.instances |= $whoogle[0]' services.json > services-tmp.json
|
||||
|
||||
apply_update
|
||||
|
||||
|
||||
# ==============================================================
|
||||
# Invidious update
|
||||
# ==============================================================
|
||||
curl -s https://api.invidious.io/instances.json | \
|
||||
jq '[
|
||||
.[] |
|
||||
select(.[1].type | contains("https")) ] |
|
||||
[.[][1].uri] |
|
||||
.[] |
|
||||
select(.[1].type | contains("https")) ] |
|
||||
[.[][1].uri] |
|
||||
sort' > invidious-tmp.json
|
||||
jq --slurpfile invidious invidious-tmp.json \
|
||||
'( .[] | select(.type == "invidious") )
|
||||
.instances |= $invidious[0]' services.json > services-tmp.json
|
||||
|
||||
|
||||
apply_update
|
||||
|
||||
# ==============================================================
|
||||
|
@ -108,7 +108,7 @@ jobs:
|
|||
jq --slurpfile scribe scribe-tmp.json \
|
||||
'( .[] | select(.type == "scribe") )
|
||||
.instances |= $scribe[0]' services.json > services-tmp.json
|
||||
|
||||
|
||||
apply_update
|
||||
|
||||
# ==============================================================
|
||||
|
@ -123,7 +123,22 @@ jobs:
|
|||
jq --slurpfile teddit teddit-tmp.json \
|
||||
'( .[] | select(.type == "teddit") )
|
||||
.instances |= $teddit[0]' services.json > services-tmp.json
|
||||
|
||||
|
||||
apply_update
|
||||
|
||||
# ==============================================================
|
||||
# Wikiless update
|
||||
# ==============================================================
|
||||
curl -s https://codeberg.org/orenom/Wikiless/raw/branch/main/instances.json | \
|
||||
jq '[
|
||||
.[] |
|
||||
"https://" +
|
||||
select(. | contains(".onion") | not)] |
|
||||
sort' > wikiless-tmp.json
|
||||
jq --slurpfile wikiless wikiless-tmp.json \
|
||||
'( .[] | select(.type == "wikiless") )
|
||||
.instances |= $wikiless[0]' services.json > services-tmp.json
|
||||
|
||||
apply_update
|
||||
|
||||
# ==============================================================
|
||||
|
|
|
@ -250,5 +250,16 @@
|
|||
"https://sx.fedi.tech",
|
||||
"https://www.webrats.xyz"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "wikiless",
|
||||
"test_url": "/wiki/Wikipedia?lang=en",
|
||||
"fallback": "https://wikiless.org",
|
||||
"instances": [
|
||||
"https://wiki.604kph.xyz",
|
||||
"https://wikiless.alefvanoon.xyz",
|
||||
"https://wikiless.org",
|
||||
"https://wikiless.sethforprivacy.com"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue