This commit is contained in:
ManeraKai 2023-02-02 23:29:40 +03:00
parent c61b0334ac
commit ce742b28a0
4 changed files with 56 additions and 2 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -394,6 +394,10 @@ function redirect(url, type, initiator, forceRedirection) {
case "dumb": {
if (url.pathname.endsWith('-lyrics')) return `${randomInstance}${url.pathname}`
}
case "ruralDictionary": {
if (!url.pathname.endsWith('/define.php') && !url.pathname.endsWith('/random.php') && !url.pathname.endsWith('/')) return
return `${randomInstance}${url.pathname}${url.search}`
}
}
}
@ -532,6 +536,7 @@ function initDefaults() {
options['breezeWiki'] = ['https://breezewiki.com']
options['neuters'] = ['https://neuters.de']
options['dumb'] = ['https://dm.vern.cc']
options['ruralDictionary'] = ['https://rd.vern.cc']
browser.storage.local.set({ options },
() => resolve()

View File

@ -516,7 +516,7 @@
},
"imageType": "svg",
"embeddable": false,
"url": "https://genius.com"
"url": "https://urbandictionary.com"
}
}
}

View File

@ -110,7 +110,7 @@ section.option-block h2 {
body.option {
display: flex;
padding: 40px;
width: 1100px;
width: 1130px;
}
section.links {