stirante / facaccimo

A manager for cubari gist sources
https://stirante.com/facaccimo/index.html
40 stars 8 forks source link

add support for auto converting ImageChest (and other hosting sites) links #59

Open shilewenuw opened 11 months ago

shilewenuw commented 11 months ago

With imgur going down the gutter, people are going to alternatives like ImageChest.

Current Workarounds: Select Proxy checkbox -> enter /proxy/api/imgchest/chapter/{REPLACE_WITH_HASH}

All supported image hosts can be found at https://status.cubari.moe/

Kantotero commented 11 months ago

https://github.com/stirante/facaccimo/issues/60#issue-2015718808 this but with reddit too please

stirante commented 11 months ago

I intend to add support for those alternatives. The issue currently is that I don't have enough time to do that. Maybe sometime around mid to late december I will be able to do so.

Alternatively you can make a PR with the support. Here is the place, you might want to edit: https://github.com/stirante/facaccimo/blob/master/src/model/Proxy.js#L7 The values are: name - this part /proxy/api/<name>/... niceName - just a nice name to identify the proxy urlRegex - regular expression for matching ID out of URL. For example getting asd from https://imgur.com/a/asd in case of imgur proxy. A great site, where you can test regex is https://regexr.com/ urlConstructor - a function, that accepts name and id from regex and constructs actual proxy string

Just adding these should add support for new proxies.