Skip to content

Instantly share code, notes, and snippets.

@hinaloe
Created August 3, 2020 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hinaloe/25709e9d86be138778ff426a6179fffd to your computer and use it in GitHub Desktop.
Save hinaloe/25709e9d86be138778ff426a6179fffd to your computer and use it in GitHub Desktop.
VRChatで自分にフレリクを送るブックマークレット

VRChat web上で(ログイン状態で)このスクリプトをブックマークレットとして実行する(あるいはコンソールに流し込む)と自分宛てにフレンドリクエストが送信されます1

でも意味があるかは知らない……

Footnotes

  1. VRChat webではAPIはクエリにAPIキーと認証キーをつけてリクエストしていますが,Cookieに同じ値が入るようになっているので省略できます.なんでやねん.

javascript:fetch('/api/1/auth/user').then(res=>res.json()).then(d=>fetch(`/api/1/user/${d.id}/friendRequest`,{method:'POST'}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment