diff --git a/src/assets/images/urbanDictionary-icon.svg b/src/assets/images/urbanDictionary-icon.svg new file mode 100644 index 0000000..2172e28 --- /dev/null +++ b/src/assets/images/urbanDictionary-icon.svg @@ -0,0 +1,49 @@ + + + + diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 971fb61..7a9f3d9 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -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() diff --git a/src/config.json b/src/config.json index c14dcf2..8027bf0 100644 --- a/src/config.json +++ b/src/config.json @@ -516,7 +516,7 @@ }, "imageType": "svg", "embeddable": false, - "url": "https://genius.com" + "url": "https://urbandictionary.com" } } } \ No newline at end of file diff --git a/src/pages/stylesheets/styles.css b/src/pages/stylesheets/styles.css index 5f3c1cb..b493af6 100644 --- a/src/pages/stylesheets/styles.css +++ b/src/pages/stylesheets/styles.css @@ -110,7 +110,7 @@ section.option-block h2 { body.option { display: flex; padding: 40px; - width: 1100px; + width: 1130px; } section.links {