PageSourceSearch

https://www.mcsweeneys.net/assets/copy_to_clipboard-8dd919f955342e…e9f6c709efc860676c7f52b0a641f43f99b328f0.js

js mcsweeneys.net collected 2026-10-01 08:53:52 UTC 518 bytes, 1 lines download raw bytes

1import ClipboardJS from"clipboard";let clipboard;document.addEventListener("turbo:load",()=>{clipboard&&(clipboard.destroy(),clipboard=null),document.querySelector(".clipboard-share")&&(clipboard=new ClipboardJS(".clipboard-share"),clipboard.on("success",()=>{const e=document.querySelector(".copied-status");if(e){const r=document.createElement("small");r.className="copied",r.innerHTML="Copied!",e.replaceChildren(r)}}),document.querySelector(".clipboard-share").addEventListener("click",e=>{e.preventDefault()}))});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.