|
javascript:!function(){var e=prompt("Please enter your selector",""),t=prompt("Would you like to label headings? (Y/N)"),o=prompt("Would you like lists hyphenated? (Y/N)"),l=prompt("Would you like to format tables as markdown? (Y/N)"),n=prompt("Would you like to inject link sources into the text? {Y/N)");null!=e&&function e(r){let a=document.querySelector(r);if(a&&window.open(document.location.href),!a){console.log("No element found with the provided selector.");return}document.querySelectorAll("script, img, picture, canvas, figure, video, iframe, embed, object, map, audio, button, svg, head, link, header, footer, google-cast-launcher, select, textarea, input, form, label, datalist, fieldset, legend, meter, optgroup, option, output, progress").forEach(e=>{"header"===e.tagName.toLowerCase()&&a.contains(e)||e.parentNode.removeChild(e)});let i=a.cloneNode(!0);document.body.innerHTML="",document.body.appendChild(i);let d=document.getElementsByTagName("*");for(let s=0;s<d.length;s++)if("a"===d[s].tagName.toLowerCa |