(probe)
| 761 | cdp, |
| 762 | `(() => { |
| 763 | const normalize = (value) => (value || "").replace(/\\s+/g, " ").trim(); |
| 764 | const button = Array.from(document.querySelectorAll("button")).find( |
| 765 | (candidate) => |
| 766 | (normalize(candidate.getAttribute("aria-label")) === "Backgrounds and effects" || |
| 767 | normalize(candidate.textContent) === "Backgrounds and effects" || |
| 768 | normalize(candidate.textContent).startsWith("Backgrounds and effects")) && |
| 769 | !candidate.disabled |
| 770 | ); |
| 771 | if (!button) return false; |
| 772 | button.click(); |