Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In user-scripts, you can use the match directive multiple times.
So we match
/channels/*
since that's what we need for the web app anyway.We also match
/app
and/login
for when a user is being redirected to the web app from them, totherwise the user script won't be initialized.This prevents issues like the following on other parts of the website:
/robots.txt
Main Site (i.e.
/company
)I believe the only pages we'd want the button to appear on would be under
/channels
anyway, for example:We then need to cover these because of web app navigation:
I tested the password reset flow (https://discord.com/reset) and can confirm there's no need to match this. It redirects to
/app
which is already covered.There's no need to cover
/channels
itself because that's a 404.