Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RustomDuck committed Feb 1, 2023
1 parent e7247b4 commit 7c19673
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 1 deletion.
62 changes: 62 additions & 0 deletions src/assets/images/genius-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ function redirect(url, type, initiator, forceRedirection) {
}
return `${randomInstance}${p}`;
}
case "dump": {
if (url.pathname.endsWith('-lyrics')) return `${randomInstance}${url.pathname}`
}

}
}
Expand Down Expand Up @@ -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()
Expand Down
19 changes: 19 additions & 0 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}

0 comments on commit 7c19673

Please sign in to comment.