Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| 'use strict' | |
| /** | |
| * Discord Console Self bot | |
| * | |
| * Open chrome console on Discord using Ctrl+shift+i | |
| * Go to the network tab, send a message and copy the 'Authorize' header sent by the app. | |
| * Paste it in authHeader below. | |
| * | |
| * Paste the entire script in the console. |
| $Path = $env:TEMP; $Installer = 'chrome_installer.exe'; Invoke-WebRequest -Uri 'http://dl.google.com/chrome/install/375.126/chrome_installer.exe' -OutFile $Path\$Installer; Start-Process -FilePath $Path\$Installer -Args '/silent /install' -Verb RunAs -Wait; Remove-Item -Path $Path\$Installer | |
| # Thank you, nicolaigj! |