Greasy Fork

Image Host Helper

Directly upload local / rehost remote images or galleries to whatever supported image host by dropping/pasting them to target field

目前为 2020-06-17 提交的版本。查看 最新版本

作者
Anakunda
评分
0 0 0
版本
1.073
创建于
2020-04-22
更新于
2020-06-17
大小
39.1 KB
许可证
暂无
适用于

GM extensions! - Tampermonkey, Violetmonkey, GreaseMonkey...

Supported image hosts:

No interactive UI for choosing where the upload/rehost goes, this works on principle of sequential iteration till first host succeeds. Customization of hosts chain via upload_hosts and rehost_hosts local storage entries. Defaults to all supported platforms. List order is honoured in fallback cascade => to favour/disfavour specific host, move it forwards/backwards within the list, to not use it at all, remove it.
Per-site host lists as storage preference in same format as general hostlists ("www.site.com": "host1, host2, ....") are allowed. Custom hostlist for site found takes precedence over general hostlists.

User credentials to set (via local storage):

PTPIMG.me: ptpimg_api_key (auto-configured on first use if logged in)
Malzo.com: malzo_uid, malzo_password
imgBB.com: imgbb_uid, imgbb_password
Catbox.moe: catbox_userhash (auto-configured on first use if logged in)
ImgBox.com: imgbox_uid, imgbox_password
ImageVenue.com: imagevenue_uid, imagevenue_password
jerking.empornium.ph: jerking_uid, jerking_password
Imgur.com: not implemented for laziness
radikal.ru: radikal_uid, radikal_password

Resolving of image share links to image URLs for rehosting works (forms like https://www.imdb.com/title/tt8228288/ or https://imgur.com/a/QcVu2Aj can be feeded)
Galleries rehosting support for Imgur, PostImages, Chevereto-based paltforms, ImageVenue, ImgBox, PixHost, Flickr, caps-a-holic.com, Pinterest, Google Photos, 500px.com.... Something missing? Ask to add it.

Any Chevereto-based site can now be added to chain via chevereto_custom_hosts storage key.
It's value is an array of objects with keys host_name (required), alias (required), types, limit_anon, limit_authorized and config_prefix stringified to JSON format. Account credentials are recognized as <alias_in_lowercase>_uid and <alias_in_lowercase>_password unless overriden by config_prefix. types is an array of MIME subtypes for image/* category; if not set, the precondition test is not performed. Value of alias key should then be manually chained into upload_hosts, rehost_hosts or site custom hostlist. A definition example for Imgtrue host:
The value of chevereto_custom_hosts will be
[{\"host_name\":\"www.imgtrue.com\",\"alias\":\"Imgtrue\",\"types\":[\"jpeg\",\"png\",\"gif\",\"bmp\",\"webp\"],\"limit_anon\":20,\"limit_authorized\":20}]
and storage keys for optional authentication are imgtrue_uid and imgtrue_password.

Known issues:
- Progress meter for locally sourced uploads doesn't work on new browsers, which is kind of Tampermonkey limitation or bug.