Hi TryNinja,
I tried the script today and it works really well. After a quick check, it seems to have replaced all my old Imgur images with new TalkImg links.
I was wondering if there is a quick way to add new image hosts to the code? A few years ago, I used vgy.me for images in some of my threads. Perhaps the script could be used to automatically replace those links as well.
As far as I know, just change the host address and the result will be the same. Try adjusting this line:
const imageLinkRegex = /https:\/\/i\.imgur\.com\/.*?\.(png|jpg|jpeg|gif)/gi
New:
const imageLinkRegex = /https:\/\/i\.vgy\.me\/.*?\.(png|jpg|jpeg|gif)/gi
I don't know if it works on this host, but I know it worked on others. Try it.