so... is there a simple method to remove all tinypic bbcodes from the post content through the forum! a sample code is like this:
again, proceed with cautionpsa. i wouldn't run this command right now because ios and macos users do not yet have the ability to see webp images. but they would in a few months (at least for the ones who upgrade to latest versions which basically means 99.99% of the few of my apple device users). so i am just looking for the code to save to run sometime later this year.
imgur basically keeps a webp version of all images hosted on their platform. webp images are much smaller in size compared to PNGs and also JPEGs. so i can basically shrink most (non-GIF) hotlinked image from their platform with just one command. xenforo proxy also does not support webp, so this only works if you have that disabled (or supported is added in one of the 2.2.x series in future).
one issue here is that imgur file name length has increased over the years. i think early on it was five character long. now it is seven. plus there are variants for different dimensions so... the file name is not fixed. could range from 5 characters to 8.
also of course, another unanswered query of mine from previous page is whether this tool can be used to remove all tinypic images because they are all dead now. same with imageshack i assume. thanks all!
Replace with: [img]https://i.imgur.com/\1.webp[/img]
i have tested some of the oldest images and all of them work with webp. i mean they are being generated on the fly for display on their frontend on compatible browsers. i have seen their homepage load webp while the actual image pages load the regular version.Are you sure all jpg/png's have webp equivalents ?
i have tested some of the oldest images and all of them work with webp. i mean they are being generated on the fly for display on their frontend on compatible browsers. i have seen their homepage load webp while the actual image pages load the regular version.
View attachment 230484
it is a safe gamble in any case because i can rename the files back to jpegs and they would load just fine. (all images work with jpg/gif/png/webp extensions on imgur!)
this shows preview as expected! thanks. would probably do jpg and png separately because of the sheer number of files. would use the regex editor to modify this code. thanks again!/\[img\]https:\/\/i\.imgur\.com\/(.*?)\.(jpg|png)\[\/img\]/i
[video=youtube;XXXXXXXXXX]. how do i clean this up! thanks.
/\[video\=youtube\;(.*?)\]/iseems to work 🙏
For our big board, i can search and see the results perfectly.