diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/assets/images/genius-icon.svg | 62 | ||||
-rw-r--r-- | src/assets/javascripts/services.js | 5 | ||||
-rw-r--r-- | src/config.json | 19 |
3 files changed, 85 insertions, 1 deletions
diff --git a/src/assets/images/genius-icon.svg b/src/assets/images/genius-icon.svg new file mode 100644 index 00000000..98a1ca7c --- /dev/null +++ b/src/assets/images/genius-icon.svg @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Generator: Adobe Illustrator 23.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> + +<svg + version="1.1" + id="Layer_1" + x="0px" + y="0px" + viewBox="0 0 893.80809 893.80808" + xml:space="preserve" + sodipodi:docname="genius-icon.svg" + width="893.80811" + height="893.80811" + inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"><defs + id="defs17" /><sodipodi:namedview + id="namedview15" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:showpageshadow="2" + inkscape:pageopacity="0.0" + inkscape:pagecheckerboard="0" + inkscape:deskcolor="#d1d1d1" + showgrid="false" + inkscape:zoom="0.35355339" + inkscape:cx="183.84776" + inkscape:cy="234.75945" + inkscape:window-width="1888" + inkscape:window-height="1060" + inkscape:window-x="32" + inkscape:window-y="0" + inkscape:window-maximized="1" + inkscape:current-layer="Layer_1" /> +<style + type="text/css" + id="style2"> + .st0{fill:#F6F069;} +</style> +<circle + style="fill:#f6f069;fill-opacity:1;fill-rule:evenodd;stroke-width:9.79459;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.411765;paint-order:stroke fill markers;stop-color:#000000" + id="path298" + cx="446.90405" + cy="446.90405" + r="446.90405" /><g + id="g12" + transform="matrix(0.83247878,0,0,0.83247878,104.68007,147.4041)"> + + <path + d="m 745,306.7 c -0.3,-17.2 -2.1,-34.2 -4.9,-51.1 -10.9,-63.8 -37.7,-120.1 -79.4,-169.4 -4.3,-5.1 -8.8,-10 -13.5,-14.8 -2.9,-3 -6.6,-3.3 -9.5,-1.3 -2.8,1.9 -3.6,4.8 -2.4,8.9 0.3,1 0.7,1.9 1,2.8 16,42.7 24.2,86.8 24.5,132.4 -0.4,8.3 -0.8,16.6 -1.2,24.9 -1.2,22.7 -4.8,45 -10.5,66.9 -18.3,70.5 -53.7,131.1 -107.1,180.6 -69.6,64.5 -152.3,97.7 -247.1,100.4 -23.9,0.7 -47.6,-1.3 -71.1,-5.4 -24,-4.1 -47.5,-10.5 -70.2,-19.3 -5,-1.9 -8.5,-1 -10.5,2.5 -2,3.3 -1.2,6.4 2.7,10.1 3.3,3.1 6.6,6.1 10,9.1 65.2,56.5 141.1,85.6 227.2,88.1 20.8,0.6 41.6,-1 62.2,-4.4 74.2,-12 139,-43.7 192.5,-96.5 C 711.1,498.8 747,410.3 745,306.7 Z" + id="path6" /> + <path + d="m 174,403.9 c 2.9,-2.2 3.4,-5.1 1.8,-10 -0.2,-0.5 -0.3,-0.9 -0.5,-1.4 -12.4,-35 -15.9,-71 -10.6,-107.7 7,-48.3 27.5,-90.1 60.9,-125.5 2.7,-2.9 4,-5.8 4,-9.8 -0.1,-12.5 -0.1,-25 -0.1,-37.5 0,-12.3 0,-24.7 0,-37 0,-8 -2.4,-10.5 -10.4,-10.5 -24.7,0 -49.3,0 -74,-0.1 -4.1,0 -7.4,1.2 -10.3,4 -41,39.9 -62.8,88.6 -66.2,145.5 -1.3,21.7 1.2,43.2 6.8,64.3 14,52.6 43.6,94.1 88.5,124.7 4.5,3.1 7.1,3.3 10.1,1 z" + id="path8" /> + <path + d="m 310.7,247.1 c 6.1,45.6 49.2,77.8 94.6,70.5 40.3,-6.5 69.6,-40.8 69.6,-81.7 0,-8.2 0,-16.3 0,-24.5 0,-10.7 0,-21.3 0,-32 0,-6.8 1.8,-8.5 8.6,-8.6 6.3,-0.1 12.7,0.1 19,-0.1 5.8,-0.2 8.4,-3.7 7.4,-9.3 -0.2,-1 -0.3,-2 -0.5,-2.9 C 501.8,126.4 488,97.4 468,71.2 c -3.7,-4.8 -7.8,-6.6 -13.6,-6.5 -16.8,0.2 -33.6,0 -50.5,0.1 -1.8,0 -3.7,0.1 -5.5,0.4 -4.2,0.7 -6.1,2.7 -6.7,6.9 -0.2,1.6 -0.1,3.3 -0.1,5 0,26.2 0,52.3 0,78.5 0,10.8 -2.1,21.2 -6.5,31.1 -13,28.6 -35.5,44.5 -66.5,48.7 -6.5,0.9 -8.4,3 -8.1,9.4 0.1,0.6 0.1,1.5 0.2,2.3 z" + id="path10" /> +</g> +</svg> diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 9e73cceb..e043f9d2 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -391,6 +391,9 @@ function redirect(url, type, initiator, forceRedirection) { } return `${randomInstance}${p}`; } + case "dump": { + if (url.pathname.endsWith('-lyrics')) return `${randomInstance}${url.pathname}` + } } } @@ -528,7 +531,7 @@ function initDefaults() { options['osm'] = ['https://www.openstreetmap.org'] options['breezeWiki'] = ['https://breezewiki.com'] options['neuters'] = ['https://neuters.de'] - + options['dump'] = ['https://dm.vern.cc'] browser.storage.local.set({ options }, () => resolve() diff --git a/src/config.json b/src/config.json index d6830793..9ac5ecb5 100644 --- a/src/config.json +++ b/src/config.json @@ -478,6 +478,25 @@ "imageType": "svg", "embeddable": false, "url": "https://reuters.com" + }, + "genius": { + "frontends": { + "dump": { + "name": "dump", + "instanceList": true, + "url": "https://github.com/rramiachraf/dumb" + } + }, + "targets": [ + "^https?:\\/{2}(www\\.)?genius.com\\/" + ], + "name": "Genius", + "options": { + "enabled": false + }, + "imageType": "svg", + "embeddable": false, + "url": "https://genius.com" } } } \ No newline at end of file |