Created
September 6, 2024 09:03
-
-
Save TypeA2/4e1a78a5f2f3a8457a866acae089cc64 to your computer and use it in GitHub Desktop.
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
| /* Initial version: 2024-09-06 | |
| * Current version: 2024-09-06 | |
| */ | |
| javascript:void(async () => { | |
| let text = ""; | |
| for (const e of document.querySelector("h2 + div > h1").childNodes) { | |
| console.log(e.nodeName) | |
| switch (e.nodeName) { | |
| case "A": { | |
| const linked = e.textContent.substring(1); | |
| text += `"#${linked}":[https://www.instagram.com/explore/tags/girlsbandcry/${linked}/]`; | |
| break; | |
| } | |
| case "BR": | |
| text += "\n"; | |
| break; | |
| case "#text": | |
| text += e.textContent; | |
| } | |
| } | |
| navigator.clipboard.writeText(text); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment