Created
April 23, 2026 12:19
-
-
Save paulera/fe0402f3fc196c9d1da864e88d87a510 to your computer and use it in GitHub Desktop.
Hoppscotch tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // If invitations are not being sent via e-mail, open the sent invitations modal and run this function | |
| // Output: tab separated list of emails and invitation link in the console./ | |
| // Built by ClaudeAI / Anthropic | |
| function getInvitationLinks() { | |
| const origWrite = navigator.clipboard.writeText; | |
| const results = []; | |
| const inputs = document.querySelectorAll('input[name^="param"]'); | |
| inputs.forEach(input => { | |
| const name = input.getAttribute('name'); | |
| if (!/^param\d+$/.test(name)) return; | |
| const email = input.value; | |
| const row = input.parentElement; | |
| const copyBtn = row.querySelector('div.flex > button[aria-label="button"]'); | |
| if (!copyBtn) return; | |
| let link = null; | |
| navigator.clipboard.writeText = (text) => { link = text; return Promise.resolve(); }; | |
| copyBtn.click(); | |
| navigator.clipboard.writeText = origWrite; | |
| results.push(email + '\t' + link); | |
| }); | |
| return results.join('\n'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment