-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
348 lines (346 loc) · 15.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Twitch Fast Auth</title>
<link rel="stylesheet" href="pico.violet.min.css">
</head>
<body>
<main class="container">
<h1>Быстрая авторизация Twitch</h1>
<hr>
<p>Если авторизация происходит на стриме - <strong>ОБЯЗАТЕЛЬНО</strong> скройте экран.</p>
<article>
<header>Scopes</header>
<fieldset>
<label>
<input type="checkbox" id="analytics:read:extensions" class="scope" title="View analytics data for the Twitch Extensions owned by the authenticated account.">
analytics:read:extensions
</label>
<label>
<input type="checkbox" id="analytics:read:games" class="scope" title="View analytics data for the games owned by the authenticated account.">
analytics:read:games
</label>
<label>
<input type="checkbox" id="bits:read" class="scope" title="View Bits information for a channel.">
bits:read
</label>
<label>
<input type="checkbox" id="channel:bot" class="scope" title="Joins your channelâs chatroom as a bot user, and perform chat-related actions as that user.">
channel:bot
</label>
<label>
<input type="checkbox" id="channel:manage:ads" class="scope" title="Manage ads schedule on a channel.">
channel:manage:ads
</label>
<label>
<input type="checkbox" id="channel:read:ads" class="scope" title="Read the ads schedule and details on your channel.">
channel:read:ads
</label>
<label>
<input type="checkbox" id="channel:manage:broadcast" class="scope" title="Manage a channelâs broadcast configuration, including updating channel configuration and managing stream markers and stream tags.">
channel:manage:broadcast
</label>
<label>
<input type="checkbox" id="channel:read:charity" class="scope" title="Read charity campaign details and user donations on your channel.">
channel:read:charity
</label>
<label>
<input type="checkbox" id="channel:edit:commercial" class="scope" title="Run commercials on a channel.">
channel:edit:commercial
</label>
<label>
<input type="checkbox" id="channel:read:editors" class="scope" title="View a list of users with the editor role for a channel.">
channel:read:editors
</label>
<label>
<input type="checkbox" id="channel:manage:extensions" class="scope" title="Manage a channelâs Extension configuration, including activating Extensions.">
channel:manage:extensions
</label>
<label>
<input type="checkbox" id="channel:read:goals" class="scope" title="View Creator Goals for a channel." checked>
channel:read:goals
</label>
<label>
<input type="checkbox" id="channel:read:guest_star" class="scope" title="Read Guest Star details for your channel.">
channel:read:guest_star
</label>
<label>
<input type="checkbox" id="channel:manage:guest_star" class="scope" title="Manage Guest Star for your channel.">
channel:manage:guest_star
</label>
<label>
<input type="checkbox" id="channel:read:hype_train" class="scope" title="View Hype Train information for a channel.">
channel:read:hype_train
</label>
<label>
<input type="checkbox" id="channel:manage:moderators" class="scope" title="Add or remove the moderator role from users in your channel.">
channel:manage:moderators
</label>
<label>
<input type="checkbox" id="channel:read:polls" class="scope" title="View a channelâs polls." checked>
channel:read:polls
</label>
<label>
<input type="checkbox" id="channel:manage:polls" class="scope" title="Manage a channelâs polls.">
channel:manage:polls
</label>
<label>
<input type="checkbox" id="channel:read:predictions" class="scope" title="View a channelâs Channel Points Predictions." checked>
channel:read:predictions
</label>
<label>
<input type="checkbox" id="channel:manage:predictions" class="scope" title="Manage of channelâs Channel Points Predictions">
channel:manage:predictions
</label>
<label>
<input type="checkbox" id="channel:manage:raids" class="scope" title="Manage a channel raiding another channel.">
channel:manage:raids
</label>
<label>
<input type="checkbox" id="channel:read:redemptions" class="scope" title="View Channel Points custom rewards and their redemptions on a channel." checked>
channel:read:redemptions
</label>
<label>
<input type="checkbox" id="channel:manage:redemptions" class="scope" title="Manage Channel Points custom rewards and their redemptions on a channel.">
channel:manage:redemptions
</label>
<label>
<input type="checkbox" id="channel:manage:schedule" class="scope" title="Manage a channelâs stream schedule.">
channel:manage:schedule
</label>
<label>
<input type="checkbox" id="channel:read:stream_key" class="scope" title="View an authorized userâs stream key.">
channel:read:stream_key
</label>
<label>
<input type="checkbox" id="channel:read:subscriptions" class="scope" title="View a list of all subscribers to a channel and check if a user is subscribed to a channel." checked>
channel:read:subscriptions
</label>
<label>
<input type="checkbox" id="channel:manage:videos" class="scope" title="Manage a channelâs videos, including deleting videos.">
channel:manage:videos
</label>
<label>
<input type="checkbox" id="channel:read:vips" class="scope" title="Read the list of VIPs in your channel.">
channel:read:vips
</label>
<label>
<input type="checkbox" id="channel:manage:vips" class="scope" title="Add or remove the VIP role from users in your channel.">
channel:manage:vips
</label>
<label>
<input type="checkbox" id="channel:moderate" class="scope" title="Perform moderation actions in a channel.">
channel:moderate
</label>
<label>
<input type="checkbox" id="clips:edit" class="scope" title="Manage Clips for a channel.">
clips:edit
</label>
<label>
<input type="checkbox" id="moderation:read" class="scope" title="View a channelâs moderation data including Moderators, Bans, Timeouts, and Automod settings.">
moderation:read
</label>
<label>
<input type="checkbox" id="moderator:manage:announcements" class="scope" title="Send announcements in channels where you have the moderator role.">
moderator:manage:announcements
</label>
<label>
<input type="checkbox" id="moderator:manage:automod" class="scope" title="Manage messages held for review by AutoMod in channels where you are a moderator.">
moderator:manage:automod
</label>
<label>
<input type="checkbox" id="moderator:read:automod_settings" class="scope" title="View a broadcasterâs AutoMod settings.">
moderator:read:automod_settings
</label>
<label>
<input type="checkbox" id="moderator:manage:automod_settings" class="scope" title="Manage a broadcasterâs AutoMod settings.">
moderator:manage:automod_settings
</label>
<label>
<input type="checkbox" id="moderator:read:banned_users" class="scope" title="Read the list of bans or unbans in channels where you have the moderator role.">
moderator:read:banned_users
</label>
<label>
<input type="checkbox" id="moderator:manage:banned_users" class="scope" title="Ban and unban users.">
moderator:manage:banned_users
</label>
<label>
<input type="checkbox" id="moderator:read:blocked_terms" class="scope" title="View a broadcasterâs list of blocked terms.">
moderator:read:blocked_terms
</label>
<label>
<input type="checkbox" id="moderator:read:chat_messages" class="scope" title="Read deleted chat messages in channels where you have the moderator role.">
moderator:read:chat_messages
</label>
<label>
<input type="checkbox" id="moderator:manage:blocked_terms" class="scope" title="Manage a broadcasterâs list of blocked terms.">
moderator:manage:blocked_terms
</label>
<label>
<input type="checkbox" id="moderator:manage:chat_messages" class="scope" title="Delete chat messages in channels where you have the moderator role">
moderator:manage:chat_messages
</label>
<label>
<input type="checkbox" id="moderator:read:chat_settings" class="scope" title="View a broadcasterâs chat room settings.">
moderator:read:chat_settings
</label>
<label>
<input type="checkbox" id="moderator:manage:chat_settings" class="scope" title="Manage a broadcasterâs chat room settings.">
moderator:manage:chat_settings
</label>
<label>
<input type="checkbox" id="moderator:read:chatters" class="scope" title="View the chatters in a broadcasterâs chat room.">
moderator:read:chatters
</label>
<label>
<input type="checkbox" id="moderator:read:followers" class="scope" title="Read the followers of a broadcaster.">
moderator:read:followers
</label>
<label>
<input type="checkbox" id="moderator:read:guest_star" class="scope" title="Read Guest Star details for channels where you are a Guest Star moderator.">
moderator:read:guest_star
</label>
<label>
<input type="checkbox" id="moderator:manage:guest_star" class="scope" title="Manage Guest Star for channels where you are a Guest Star moderator.">
moderator:manage:guest_star
</label>
<label>
<input type="checkbox" id="moderator:read:moderators" class="scope" title="Read the list of moderators in channels where you have the moderator role.">
moderator:read:moderators
</label>
<label>
<input type="checkbox" id="moderator:read:shield_mode" class="scope" title="View a broadcasterâs Shield Mode status.">
moderator:read:shield_mode
</label>
<label>
<input type="checkbox" id="moderator:manage:shield_mode" class="scope" title="Manage a broadcasterâs Shield Mode status.">
moderator:manage:shield_mode
</label>
<label>
<input type="checkbox" id="moderator:read:shoutouts" class="scope" title="View a broadcasterâs shoutouts.">
moderator:read:shoutouts
</label>
<label>
<input type="checkbox" id="moderator:manage:shoutouts" class="scope" title="Manage a broadcasterâs shoutouts.">
moderator:manage:shoutouts
</label>
<label>
<input type="checkbox" id="moderator:read:suspicious_users" class="scope" title="Read chat messages from suspicious users and see users flagged as suspicious in channels where you have the moderator role.">
moderator:read:suspicious_users
</label>
<label>
<input type="checkbox" id="moderator:read:unban_requests" class="scope" title="View a broadcasterâs unban requests.">
moderator:read:unban_requests
</label>
<label>
<input type="checkbox" id="moderator:manage:unban_requests" class="scope" title="Manage a broadcasterâs unban requests.">
moderator:manage:unban_requests
</label>
<label>
<input type="checkbox" id="moderator:read:vips" class="scope" title="Read the list of VIPs in channels where you have the moderator role.">
moderator:read:vips
</label>
<label>
<input type="checkbox" id="moderator:read:warnings" class="scope" title="Read warnings in channels where you have the moderator role.">
moderator:read:warnings
</label>
<label>
<input type="checkbox" id="moderator:manage:warnings" class="scope" title="Warn users in channels where you have the moderator role.">
moderator:manage:warnings
</label>
<label>
<input type="checkbox" id="user:bot" class="scope" title="Join a specified chat channel as your user and appear as a bot, and perform chat-related actions as your user.">
user:bot
</label>
<label>
<input type="checkbox" id="user:edit" class="scope" title="Manage a user object.">
user:edit
</label>
<label>
<input type="checkbox" id="user:edit:broadcast" class="scope" title="View and edit a userâs broadcasting configuration, including Extension configurations.">
user:edit:broadcast
</label>
<label>
<input type="checkbox" id="user:read:blocked_users" class="scope" title="View the block list of a user.">
user:read:blocked_users
</label>
<label>
<input type="checkbox" id="user:manage:blocked_users" class="scope" title="Manage the block list of a user.">
user:manage:blocked_users
</label>
<label>
<input type="checkbox" id="user:read:broadcast" class="scope" title="View a userâs broadcasting configuration, including Extension configurations.">
user:read:broadcast
</label>
<label>
<input type="checkbox" id="user:read:chat" class="scope" title="Receive chatroom messages and informational notifications relating to a channelâs chatroom." checked>
user:read:chat
</label>
<label>
<input type="checkbox" id="user:manage:chat_color" class="scope" title="Update the color used for the userâs name in chat.">
user:manage:chat_color
</label>
<label>
<input type="checkbox" id="user:read:email" class="scope" title="View a userâs email address.">
user:read:email
</label>
<label>
<input type="checkbox" id="user:read:emotes" class="scope" title="View emotes available to a user">
user:read:emotes
</label>
<label>
<input type="checkbox" id="user:read:follows" class="scope" title="View the list of channels a user follows.">
user:read:follows
</label>
<label>
<input type="checkbox" id="user:read:moderated_channels" class="scope" title="Read the list of channels you have moderator privileges in.">
user:read:moderated_channels
</label>
<label>
<input type="checkbox" id="user:read:subscriptions" class="scope" title="View if an authorized user is subscribed to specific channels.">
user:read:subscriptions
</label>
<label>
<input type="checkbox" id="user:read:whispers" class="scope" title="Receive whispers sent to your user.">
user:read:whispers
</label>
<label>
<input type="checkbox" id="user:manage:whispers" class="scope" title="Receive whispers sent to your user, and send whispers on your userâs behalf.">
user:manage:whispers
</label>
<label>
<input type="checkbox" id="user:write:chat" class="scope" title="Send chat messages to a chatroom.">
user:write:chat
</label>
<label>
<input type="checkbox" id="chat:edit" class="scope" title="Send chat messages to a chatroom using an IRC connection.">
chat:edit
</label>
<label>
<input type="checkbox" id="chat:read" class="scope" title="View chat messages sent in a chatroom using an IRC connection." checked>
chat:read
</label>
<label>
<input type="checkbox" id="whispers:read" class="scope" title="Receive whisper messages for your user using PubSub.">
whispers:read
</label>
</fieldset>
<footer><button onclick="auth()">Авторизация</button></footer>
</article>
<article>
<header>access_token</header>
<input id="access-token" type="password" readonly>
<footer><button onclick="copy()" id="copy" disabled>Скопировать</button></footer>
</article>
<hr>
<small>
<a href="https://dev.twitch.tv/docs/" target="_blank">Документация Twitch API</a><br>
<a href="https://github.com/declider/twitch-auth" target="_blank">GitHub</a><br>
client_id - aiyysqyzzy8is6gwt4125y1603uwi8
</small>
</main>
<script src="script.js"></script>
</body>
</html>