Greasy Fork is available in English.

Image Host Helper

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

Version au 07/07/2020. Voir la dernière version.

Auteur
Anakunda
Notes
0 0 0
Version
1.076
Créé
22/04/2020
Mis à jour
07/07/2020
Licence
N/A
S'applique à

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
Vgy.me: vgyme_user_key (https://vgy.me/account/details#userkeys)
Gifyu: gifyu_uid, gifyu_password
Slowpoke Pics: slowpoke_uid, slowpoke_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.

Mouse drop keyboard modifiers:
Ctrl - don't append at the end but rather try to insert at mouse position (doesn't seem to work correctly on some browsers)
Shift - bypass Image Host Helper, do browser's default

Thumbnailed format of images is enabled for all multiline text fields (assumed support of phpBB). For choosing thumbnailed form, hold Alt key while dropping/pasting the content. Available for all Chevereto based paltforms, PixHost, ImgBox, Abload, PimpAndHost, PicaBox at the moment, the list will likely expand later. Not available for PTPimg, Catbox and other sites that don't auto-generate thumbnails (for these full size tags are always generated regardless of Alt key).

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 serialized 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. As last step insert Imgtrue to upload_hosts, rehost_hosts or site custom chain.

Experimental support of native API for Chevereto sites: define <imagehost alias>_api_key local storage entry.
Supported sites: ImgBB.com
Applies to local uploads only; priority flow: api key > user llogin > anonymous

Known issues:
- Progress meter for locally sourced uploads doesn't work on new browsers, which is kind of Tampermonkey limitation or bug.
- Google Drive as a service not auto-added to default chains due to existing shortcommings: their API asks for confirming account every new session, doesn't work if automatic popup blocking is active for current site, and direct image links seem not be shown in phpBB code.
- Violentmonkey has problems with names hoisting from external sources, I might try to resolve it on demand, but now not on priority list