mirror of
https://github.com/libredirect/browser_extension.git
synced 2026-05-19 22:07:30 -04:00
Merge pull request #1088 from Fijxu/add-phantom
Add phantom, another frontend for Breezewiki
This commit is contained in:
@@ -201,6 +201,7 @@ function rewrite(url, originUrl, frontend, randomInstance, type) {
|
||||
if (query) return `${randomInstance}/search?query="${query}${mapCentre}&${utils.prefsEncoded(prefs)}`
|
||||
return `${randomInstance}/${mapCentre}&${utils.prefsEncoded(prefs)}`
|
||||
}
|
||||
case "phantom":
|
||||
case "breezeWiki": {
|
||||
let wiki,
|
||||
urlpath = ""
|
||||
@@ -957,7 +958,8 @@ const defaultInstances = {
|
||||
gocook: ["https://cook.adminforge.de"],
|
||||
wikimore: ["https://wikimore.private.coffee"],
|
||||
libreTranslate: ["https://libretranslate.com"],
|
||||
cryptPad: ["https://cryptpad.org"]
|
||||
cryptPad: ["https://cryptpad.org"],
|
||||
phantom: ["https://phantom.kuuro.net"]
|
||||
}
|
||||
|
||||
async function getDefaults() {
|
||||
|
||||
@@ -513,6 +513,11 @@
|
||||
"name": "BreezeWiki",
|
||||
"instanceList": true,
|
||||
"url": "https://breezewiki.com"
|
||||
},
|
||||
"phantom": {
|
||||
"name": "Phantom",
|
||||
"instanceList": true,
|
||||
"url": "https://codeberg.org/phantom-org/phantom"
|
||||
}
|
||||
},
|
||||
"targets": [
|
||||
|
||||
Reference in New Issue
Block a user