This commit is contained in:
ManeraKai 2023-02-02 19:50:22 +03:00
parent f2ec16ba71
commit fa3ad78392
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 20 additions and 1 deletions

View File

@ -63,13 +63,13 @@ function redirect(url, type, initiator, forceRedirection) {
) return "BYPASSTAB"
let instanceList = options[frontend]
if (instanceList === undefined) break
if (instanceList.length === 0) return
randomInstance = utils.getRandomInstance(instanceList)
break
}
if (!randomInstance) return
// Here is a (temperory) space for defining constants required in 2 or more switch cases.
const mapCentreRegex = /@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})[.z]/

View File

@ -497,6 +497,25 @@
"imageType": "svg",
"embeddable": false,
"url": "https://genius.com"
},
"urbanDictionary": {
"frontends": {
"ruralDictionary": {
"name": "Rural Dictionary",
"instanceList": true,
"url": "https://codeberg.org/zortazert/rural-dictionary"
}
},
"targets": [
"^https?:\\/{2}(www\\.)?urbandictionary.com\\/"
],
"name": "Urban Dictionary",
"options": {
"enabled": false
},
"imageType": "svg",
"embeddable": false,
"url": "https://genius.com"
}
}
}