initial commit

This commit is contained in:
2025-01-18 07:47:59 +00:00
commit 1feefe0397
15 changed files with 6724 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<body>
<h1>Redirecting...</h1>
</body>
<script>
const searchParams=new URLSearchParams(location.search)
if(searchParams.has('client_id')){
searchParams.set('response_type','code')
const url=new URL('https://id.twitch.tv/oauth2/authorize')
url.search=searchParams
location.assign(url.href+'&redirect_uri='+location.origin.replace('127.0.0.1','localhost')+location.pathname)
}else{
opener.postMessage(Object.fromEntries(searchParams),'*')
close()
}
</script>