Skip to content

Instantly share code, notes, and snippets.

@KisaragiEffective
Created November 26, 2023 14:17
Show Gist options
  • Save KisaragiEffective/e3788d4b134894b87f5bd2ef686e93a0 to your computer and use it in GitHub Desktop.
Save KisaragiEffective/e3788d4b134894b87f5bd2ef686e93a0 to your computer and use it in GitHub Desktop.
BOOTHの商品決済完了画面でTwitterのリンクから全ての内容を結合したテキストを生成するスクリプト
/*
SPDX-License-Identifier: CC0-1.0
SPDX-FileCopyrightText: 2023 Kisaragi Marine <kisaragi.effective@gmail.com>
*/
[...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