The web extension to make Lightcord work.
The Cloudflare configuration for the domain discord.com
now blocks out requests that do not have the proper user agent. Since browsers are strict and do not allow the modification of user agents from inside a page, this extension sets the user agent for outgoing requests from Lightcord. (and does not require the use of a backend)
Before then the CloudFlare configuration for discordapp.com
did not actively block requests with the incorrect user agents, but since the use of API requests to that domain is being deprecated, this extension is now required for future versions of Lightcord.
- For every request being created for
discord.com
from Lightcord, theUser-Agent
header is replaced withDiscordBot (https://lightcord.js.org 1.0.0)
- All requests to
discordapp.com
from Lightcord will be redirected todiscord.com
. - The
Access-Control-Allow-Headers
header in every response from Discord will haveuser-agent
appended to it, since Firefox requires it in the CORS preflight. - This extension also allows any request to
discord.com
from projects in GitHub Codespaces to work. (Since Lightcord development use GitHub Codespaces)
Google Chrome
- Download the repo and extract the folder somewhere for later. (you can also clone it)
- Type
chrome://extensions
in the URL bar. - Turn on Developer Mode (top right) and click
Load unpacked
. (top left) - Select the
src
folder inside the extracted folder. - Reload Lightcord.
Firefox
- Download the repo and extract the folder somewhere for later. (you can also clone it)
- Type
about:debugging#/runtime/this-firefox
in the URL bar. - Click
Load Temporary Add-on...
. - Select the
src
folder inside the extracted folder. - Reload Lightcord.
Opera
- Download the repo and extract the folder somewhere for later. (you can also clone it)
- Type
opera://extensions
in the URL bar. - Turn on Developer Mode (top right) and click
Load unpacked
. (top left) - Select the
src
folder inside the extracted folder. - Reload Lightcord.
Microsoft Edge
- Download the repo and extract the folder somewhere for later. (you can also clone it)
- Type
edge://extensions
in the URL bar. - Turn on Developer Mode (bottom left) and click
Load unpacked
. - Select the
src
folder inside the extracted folder. - Reload Lightcord.