Post
Topic
Board Meta
Merits 1 from 1 user
Re: [Script] Imgur to TalkImg - automatically fix your broken images
by
TryNinja
on 22/05/2023, 06:24:05 UTC
⭐ Merited by joker_josue (1)
Imagine that I have images on Imgbb and I want to transfer them to TalkImg, is it possible?
Forgot to reply this one, sorry.

Yes, you can. I've added a imageLinkRegex variable at the top. It currently matches only imgur links ending with png, jpg, jpeg.

If you want to match ONLY imgbb images, you can use:

Code:
/https:\/\/i\.ibb\.co\/.*?\.(png|jpg|jpeg)/gi

If you want to match BOTH imgbb and imgur images:

Code:
https:\/\/i\.ibb\.co\/.*?\.(png|jpg|jpeg)|https:\/\/i\.imgur\.com\/.*?\.(png|jpg|jpeg)