From 7e39d936aee880141fded9a7e5b1714efbe160e7 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Fri, 10 Feb 2023 17:48:28 -0800 Subject: Add more js Bundle options --- static/abridge-bundle-noswitchernosearch.min.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 static/abridge-bundle-noswitchernosearch.min.js (limited to 'static/abridge-bundle-noswitchernosearch.min.js') diff --git a/static/abridge-bundle-noswitchernosearch.min.js b/static/abridge-bundle-noswitchernosearch.min.js new file mode 100644 index 0000000..57d4004 --- /dev/null +++ b/static/abridge-bundle-noswitchernosearch.min.js @@ -0,0 +1 @@ +const items=document.querySelectorAll(".preStyle");items.forEach(e=>{e.rel="stylesheet"}),function(){for(var e=document.getElementsByClassName("m-protected"),t=0;tasync function(e,t){var n=t.querySelectorAll("table")["length"];let r="";0 tr > td:last-child").forEach(e=>{r+=e.innerText}):r=t.querySelector(":last-child > code").innerText;try{"granted"==(result=await navigator.permissions.query({name:"clipboard-write"})).state||"prompt"==result.state?await navigator.clipboard.writeText(r):a(r,t)}catch(e){a(r,t)}finally{e.innerHTML="Copied",setTimeout(function(){e.innerHTML="Copy"},2e3)}}(t,e));var n=document.createElement("div");n.className="ccw",n.appendChild(t),e.parentNode.insertBefore(n,e),n.appendChild(e)}function a(e,t){var n=document.createElement("textArea"),e=(n.contentEditable="true",n.readOnly="false",n.className="copyable-text-area",n.value=e,t.insertBefore(n,t.firstChild),document.createRange()),r=(e.selectNodeContents(n),window.getSelection());r.removeAllRanges(),r.addRange(e),n.setSelectionRange(0,999999),document.execCommand("copy"),t.removeChild(n)}document.querySelectorAll("pre").forEach(e=>t(e))}(); \ No newline at end of file -- cgit v1.3.1