Skip to content

Commit

Permalink
Added Wikimore #1025
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Jan 20, 2025
1 parent f2f4e67 commit 756c0ac
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,15 @@ function rewrite(url, originUrl, frontend, randomInstance, type) {
}
case "biblioReads":
return `${randomInstance}${url.pathname}${url.search}`
case "wikimore": {
let hostSplit = url.host.split(".")
// wikiless doesn't have mobile view support yet
if (hostSplit[0] != "wikipedia" && hostSplit[0] != "www") {
const lang = url.hostname.split(".")[0]
return `${randomInstance}/wiki/${lang}${url.pathname}${url.search}${url.hash}`
}
return `${randomInstance}${url.pathname}${url.search}${url.hash}`
}
case "wikiless": {
let hostSplit = url.host.split(".")
// wikiless doesn't have mobile view support yet
Expand Down Expand Up @@ -910,6 +919,7 @@ const defaultInstances = {
koub: ["https://koub.clovius.club"],
soundcloak: ["https://soundcloak.fly.dev"],
gocook: ["https://cook.adminforge.de"],
wikimore: ["https://wikimore.private.coffee"],
}

async function getDefaults() {
Expand Down
5 changes: 5 additions & 0 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,11 @@
"name": "Wikiless",
"instanceList": true,
"url": "https://wikiless.org"
},
"wikimore": {
"name": "Wikimore",
"instanceList": true,
"url": "https://git.private.coffee/privatecoffee/wikimore"
}
},
"targets": [
Expand Down

0 comments on commit 756c0ac

Please sign in to comment.