Greasy Fork is available in English.

Discussioni » Sviluppo

[Concept] Image testing

§
Pubblicato: 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?

§
Pubblicato: 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

§
Pubblicato: 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.

§
Pubblicato: 23/03/2021

Possible

§
Pubblicato: 23/03/2021

OK. Will ask in script creation forum then.

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

Pubblica risposta

Accedi per pubblicare una risposta.