Created
November 26, 2023 14:17
-
-
Save KisaragiEffective/e3788d4b134894b87f5bd2ef686e93a0 to your computer and use it in GitHub Desktop.
BOOTHの商品決済完了画面でTwitterのリンクから全ての内容を結合したテキストを生成するスクリプト
This file contains 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
/* | |
SPDX-License-Identifier: CC0-1.0 | |
SPDX-FileCopyrightText: 2023 Kisaragi Marine <[email protected]> | |
*/ | |
[...document.querySelectorAll('a[href^="https://twitter.com"]')].map(a => new URL(a.href)).map(url => url.searchParams).map(p => p.get("text") + " " + p.get("url") + " #" + p.get("hashtags")).join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment