Adde Rural Dictionary https://github.com/libredirect/libredirect/issues/581
This commit is contained in:
parent
c61b0334ac
commit
ce742b28a0
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 7.1 KiB |
|
@ -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()
|
||||
|
|
|
@ -516,7 +516,7 @@
|
|||
},
|
||||
"imageType": "svg",
|
||||
"embeddable": false,
|
||||
"url": "https://genius.com"
|
||||
"url": "https://urbandictionary.com"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -110,7 +110,7 @@ section.option-block h2 {
|
|||
body.option {
|
||||
display: flex;
|
||||
padding: 40px;
|
||||
width: 1100px;
|
||||
width: 1130px;
|
||||
}
|
||||
|
||||
section.links {
|
||||
|
|
Loading…
Reference in New Issue