- Fork this repo in your GitHub account.
- Clone your fork into your computer.
- Make a copy of
en-US.js
(you can find it inside thei18n
folder) and start translating all the strings to your language using your favorite text editor. - When you finish, save it with your locale as name (e.g.
fr-FR.js
if you are working on a french translation) inside that folder. - Open the
i18n.js
file. - Look for
else langObj = enUS;
and add your locale in this format right before it:
else if (lang === "your-locale")
langObj = yourLocale;
- Finally open
index.html
and look for this line:
<script src="./i18n.js"></script>
- Add a reference to your file before the previous line in this format:
<script src="./i18n/your-locale.js"></script>
- Now you're done, upload your changes to your fork in GitHub and make a pull request.
Payloads are now standard binaries, there's no need to convert them to byte arrays anymore, so adding them is now easier.
- Fork this repo in your GitHub account.
- Clone your fork into your computer.
- Copy the payload you want to add to the
payloads
folder. - Inside the file
payloads/payloads.json
add a new object to the payloads array in the following format:
{
"name": "Your Payload Name",
"version": "the-payload-version",
"path": "payloads/payload_with-the-payload-version.bin"
}
- To update the payload automatically you should add these things to the
extras/update-payloads.sh
script:
- Detect which version of the payload do we have on the repo and which is the latest one.
- Use the
payloads.json
file for this and (if the payload you're adding is hosted on GitHub) the GitHub API just like the other payloads (make sure the version string format matchs whatever format is used on the source).
- Use the
- Add the steps to download and copy the payload to the corresponding folder.
- Reflect the version change on the
payloads.json
file.
I know the updater script is kinda ugly, so if you want to write a cleaner, better one (preferably made in Python) PR's are always welcome! 6. Finally, upload your changes to your fork in GitHub and make a pull request.
If you want to confirm that your changes work before suggesting them follow these steps:
- Make sure all your changes are successfully uploaded to your fork in GitHub.
- Go to your repo settings.
- Go down to GitHub Pages and select master branch in Source.
- Click Save and wait a few seconds.
- Now, you should see your site at https://YourGitHubUsername.github.io/web-cfw-loader/.
- If everything is alright, now is the time to make a pull request.