let urlList= `
https://kawiesh.eu.org/tools/text-extractor.html
https://kawiesh.eu.org/tools/text-merger.html
https://kawiesh.eu.org/tools/text-modifier.html
https://kawiesh.eu.org/tools/text-numbering.html
https://kawiesh.eu.org/tools/text-replacer.html
https://kawiesh.eu.org/tools/notepad.html
https://kawiesh.eu.org/tools/bookmarklet-maker.html
https://kawiesh.eu.org/tools/html-editor.html
https://kawiesh.eu.org/tools/link-lister.html
https://kawiesh.eu.org/tools/text-to-link.html
https://kawiesh.eu.org/tols/table-generator.html
https://kawiesh.eu.org/about.html
https://kawiesh.eu.org/sitemap.html
`.trim().split("\n");


let success= {};

let req= urlList.map(i=> fetch(i).then(r=> r.text()));
Promise.all(req).then(resp=>{
resp.forEach((i,x)=>getData(i,x));
kdoutput1.value= JSON.stringify(success,null,1);
}).catch(x=> kdoutput2.value= x);



function getData(str,index){
let doc= new DOMParser().parseFromString(str,"text/html");
let title= doc.title;
success[urlList[index]]= title||"NOT FOUND";
}
