-
-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #455 from victornpb/next
Undiscord 5.1
- Loading branch information
Showing
22 changed files
with
3,832 additions
and
19,424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,55 @@ | ||
# Contributing | ||
|
||
Please do not make changes to the .js files at the root directory! | ||
Only make changes to the change the files inside the `src/` folder, otherwise I can't merge your changes back to the project. | ||
# Before making any changes ✋ | ||
## Do not edit files at top | ||
|
||
If you're unfamilliar with compiled Javascript: | ||
Please do not make changes to the `.js` files in the top directory! | ||
Only make changes to the files inside the `src/` folder, otherwise I can't merge your changes back to the project. | ||
|
||
Also, do not commit changes to the `deleteDiscordMessages.user.js` file! | ||
|
||
Do not alter the version, because I may have to change this depending on the order of things that get merged into main. So please leave it as is to avoid conflicts. | ||
|
||
## Oddities about this project | ||
|
||
> This is NOT your typical javascript App, so this project has a few oddities: | ||
- Do NOT add external dependencies or libraries. | ||
The only allowed dependencies are related things that run during build and testing. | ||
The script itself should't import or load anything external. | ||
The reason for this is security, if the user has to audit external packages we're doomed. | ||
|
||
- Do NOT use Prettier. | ||
This project has to stay fairly short in order to be auditable in a short amount of time. | ||
For that reason some parts of the code favor compactness instead of consistency of indentation. | ||
|
||
|
||
------------------------------------------------------------------------------- | ||
|
||
# Building the project | ||
# Now that you read that, this is what you do | ||
|
||
#### Click to watch video (45 seconds): | ||
[![Video Instructions](https://img.youtube.com/vi/AKTCvzvcPig/0.jpg)](https://www.youtube.com/watch?v=AKTCvzvcPig) | ||
https://www.youtube.com/watch?v=AKTCvzvcPig | ||
|
||
|
||
If you're unfamilliar with compiled Javascript, this is how you do it: | ||
|
||
1. Clone the repository to your computer | ||
2. Open the terminal inside the cloned directory | ||
3. Run `npm i` to download the project dependencies | ||
4. Run `npm start` it will automatically compile the project, when you make changes | ||
|
||
## Testing locally | ||
|
||
Open the URL that shows up in your console when you run `npm start` it will ask you to install a development version of Undiscord. | ||
You need to click the update button every time you make changes in TamperMonkey, or reinstall it by opening the URL again. | ||
|
||
You can alternatively test manually: | ||
|
||
Copy the contents of the `deleteDiscordMessages.user.js` at the top of the repository, | ||
and paste it directly into your browser console. | ||
|
||
---------------------------------------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.