mirror of
https://github.com/benbusby/farside.git
synced 2025-04-30 07:30:02 +00:00
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
|
.instances |= $whoogle[0]' services.json > services-tmp.json
|
||||||
|
|
||||||
apply_update
|
apply_update
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
# Invidious update
|
# Invidious update
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
curl -s https://api.invidious.io/instances.json | \
|
curl -s https://api.invidious.io/instances.json | \
|
||||||
jq '[
|
jq '[
|
||||||
.[] |
|
.[] |
|
||||||
select(.[1].type | contains("https")) ] |
|
select(.[1].type | contains("https")) ] |
|
||||||
[.[][1].uri] |
|
[.[][1].uri] |
|
||||||
sort' > invidious-tmp.json
|
sort' > invidious-tmp.json
|
||||||
jq --slurpfile invidious invidious-tmp.json \
|
jq --slurpfile invidious invidious-tmp.json \
|
||||||
'( .[] | select(.type == "invidious") )
|
'( .[] | select(.type == "invidious") )
|
||||||
.instances |= $invidious[0]' services.json > services-tmp.json
|
.instances |= $invidious[0]' services.json > services-tmp.json
|
||||||
|
|
||||||
apply_update
|
apply_update
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
|
@ -108,7 +108,7 @@ jobs:
|
||||||
jq --slurpfile scribe scribe-tmp.json \
|
jq --slurpfile scribe scribe-tmp.json \
|
||||||
'( .[] | select(.type == "scribe") )
|
'( .[] | select(.type == "scribe") )
|
||||||
.instances |= $scribe[0]' services.json > services-tmp.json
|
.instances |= $scribe[0]' services.json > services-tmp.json
|
||||||
|
|
||||||
apply_update
|
apply_update
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
|
@ -123,7 +123,22 @@ jobs:
|
||||||
jq --slurpfile teddit teddit-tmp.json \
|
jq --slurpfile teddit teddit-tmp.json \
|
||||||
'( .[] | select(.type == "teddit") )
|
'( .[] | select(.type == "teddit") )
|
||||||
.instances |= $teddit[0]' services.json > services-tmp.json
|
.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
|
apply_update
|
||||||
|
|
||||||
# ==============================================================
|
# ==============================================================
|
||||||
|
|
|
@ -250,5 +250,16 @@
|
||||||
"https://sx.fedi.tech",
|
"https://sx.fedi.tech",
|
||||||
"https://www.webrats.xyz"
|
"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
Add a link
Reference in a new issue