Image Host Helper

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

< Feedback on Image Host Helper

Review: Good - script works

§
Posted: 2024-12-28

Alway falling back to IMGBB when ptpimg not working.
I've replaced imgbb with jerking in 2 places like this:
const generalImgHosts = [
'Jerking', 'PixHost', 'ImgBox', 'Slowpoke', 'PostImage', 'Gifyu',
'Ra', 'Abload', 'VgyMe', 'GeekPic', 'LightShot', 'ImgURL', 'Radikal', 'Z4A', 'PicaBox', 'PimpAndHost', 'SMMS',
'PomfCat', 'CasImages', 'CubeUpload', 'GooPics', 'ImageBan', 'UuploadIr', 'LinkPicture',
'Imgur', 'Catbox', 'ImageVenue', 'GetaPic', 'FastPic', 'SVGshare',
];
['upload_hosts', 'rehost_hosts'].forEach(propName => { if (!GM_getValue(propName))
GM_setValue(propName, ['PTPimg'].concat(generalImgHosts).join(', ')) });
[
['passthepopcorn.me', [
'PTPimg', 'Jerking', 'PixHost', 'ImgBox', 'Slowpoke', 'Gifyu',
'Ra', 'Abload', 'VgyMe', 'GeekPic', 'LightShot', 'ImgURL', 'Radikal', 'Z4A', 'PicaBox', 'PimpAndHost', 'SMMS',
'PomfCat', 'CasImages', 'CubeUpload', 'GooPics', 'ImageBan', 'UuploadIr',
'Catbox', 'ImageVenue', 'GetaPic',

AnakundaAuthor
§
Posted: 2024-12-28

If you try to replace the orders directly in code it might not work as the script stores it's global and site config in storage. You may need to edit the respective key in storage:

{
...
"yoursite.com": "PTPimg, Jerking, ImgBB, {...all the other fallbacks}",
...
}

Post reply

Sign in to post a reply.