//js code to copy image and pdf files ek sath (() => { const text1 = Array.from(document.querySelectorAll(".tab-content img")) .filter(img => img.src) .map(img => img.src.split("/").pop()) .filter(name => !/call|mobile|email/i.test(name)) .join("\n"); const text2 = Array.from( document.querySelectorAll(".tab-content .map-wrapper > a") ) .filter(a => a.href) .map(a => a.href.split("/").pop()) .filter(name => /\.pdf$/i.test(name)) // sirf PDF files .join("\n"); const data = "Images" + "\n" +"-----------------" + "\n\n" + text1 + "\n\n" + "pdf files" + "\n\n" + "-----------------" + "\n\n" + text2; const textarea = document.createElement("textarea"); textarea.value = data; document.body.appendChild(textarea); textarea.select(); document.execCommand("copy"); document.body.removeChild(textarea); alert("Image file names clipboard me copy ho gaye hai"); })();