Image Host Helper

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

< 腳本Image Host Helper的回應

評論:正評 - 腳本一切正常

§
發表於: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',

Anakunda作者
§
發表於: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}",
...
}

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址