()
| 52 | // document.querySelectorAll("pre") |
| 53 | |
| 54 | export const getOverlayAnchorList: PlasmoGetOverlayAnchorList = async () => { |
| 55 | const preList = document.querySelectorAll("pre") |
| 56 | |
| 57 | const anchors = [] as any |
| 58 | Array.from(preList).map((pre) => { |
| 59 | const classList = pre.classList |
| 60 | if (pre.textContent && !classList.contains("CodeMirror-line")) |
| 61 | anchors.push(pre) |
| 62 | }) |
| 63 | |
| 64 | return anchors |
| 65 | } |
| 66 | |
| 67 | const PlasmoOverlay: FC<PlasmoCSUIProps> = ({ anchor }) => { |
| 68 | const [copyCode] = useStorage("config-copyCode", true) |
nothing calls this directly
no outgoing calls
no test coverage detected