Greasy Fork is available in English.

Discussions » Development

[Concept] Image testing

§
Posted: 23-03-2021

Just was wondering if it is possible in JS to find in a txt box image links (Jpg/jpeg/png) and test if they are dead or not and have them removed along with the bbcode?

§
Posted: 23-03-2021

if it is possible in JS to find in a txt box image links (Jpg/jpeg/png) and test if they are dead or not

Yes

and have them removed along with the bbcode

Did not understand that part

§
Posted: 23-03-2021

Well in BBCode you have [img] url link [/img]

So JS test said link and finds it dead it removes the link and the BBCode so that it all is gone.

Asking as I work on a website that deals with images that die off and trying to test each link when you have say 20 and six are dead it is a pain to test each one by hand.

§
Posted: 23-03-2021

Possible

§
Posted: 23-03-2021

OK. Will ask in script creation forum then.

Thanks for letting me know this is something that could work in JS.

Post reply

Sign in to post a reply.