Adde Rural Dictionary https://github.com/libredirect/libredirect/issues/581
This commit is contained in:
parent
c61b0334ac
commit
ce742b28a0
49
src/assets/images/urbanDictionary-icon.svg
Normal file
49
src/assets/images/urbanDictionary-icon.svg
Normal file
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": {
|
case "dumb": {
|
||||||
if (url.pathname.endsWith('-lyrics')) return `${randomInstance}${url.pathname}`
|
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['breezeWiki'] = ['https://breezewiki.com']
|
||||||
options['neuters'] = ['https://neuters.de']
|
options['neuters'] = ['https://neuters.de']
|
||||||
options['dumb'] = ['https://dm.vern.cc']
|
options['dumb'] = ['https://dm.vern.cc']
|
||||||
|
options['ruralDictionary'] = ['https://rd.vern.cc']
|
||||||
|
|
||||||
browser.storage.local.set({ options },
|
browser.storage.local.set({ options },
|
||||||
() => resolve()
|
() => resolve()
|
||||||
|
@ -516,7 +516,7 @@
|
|||||||
},
|
},
|
||||||
"imageType": "svg",
|
"imageType": "svg",
|
||||||
"embeddable": false,
|
"embeddable": false,
|
||||||
"url": "https://genius.com"
|
"url": "https://urbandictionary.com"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -110,7 +110,7 @@ section.option-block h2 {
|
|||||||
body.option {
|
body.option {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 40px;
|
padding: 40px;
|
||||||
width: 1100px;
|
width: 1130px;
|
||||||
}
|
}
|
||||||
|
|
||||||
section.links {
|
section.links {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user