Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19d3493322 | ||
|
|
a56b432fba | ||
|
|
414cf25ae8 | ||
|
|
1523b51108 | ||
|
|
20d6ff15ea | ||
|
|
036de69acd |
6 changed files with 29 additions and 28 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -110,7 +110,7 @@ jobs:
|
||||||
tag_name: ${{ steps.release_info.outputs.release_tag }}
|
tag_name: ${{ steps.release_info.outputs.release_tag }}
|
||||||
name: ${{ steps.release_info.outputs.release_name }}
|
name: ${{ steps.release_info.outputs.release_name }}
|
||||||
files: |
|
files: |
|
||||||
dist/shiggycord.js
|
dist/gooncord.js
|
||||||
dist/shiggycord.min.js
|
dist/gooncord.min.js
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
23
README.md
23
README.md
|
|
@ -1,39 +1,40 @@
|
||||||
# ShiggyCord [](https://discord.gg/nQykFF9Ud6)
|
# GoonCord [](https://discord.gg/nQykFF9Ud6)
|
||||||
|
|
||||||
Bundle based on Kettu, made just for fun
|
An unofficial fork of ShiggyGord, made just for fun
|
||||||
|
Idea taken from me
|
||||||
|
|
||||||
## Installing
|
## Installing
|
||||||
|
|
||||||
### Android
|
### Android
|
||||||
|
|
||||||
- Rooted: [Shiggy Xposed](https://github.com/kmmiio99o/ShiggyXposed)
|
- Rooted: [Goon Xposed](https://github.com/OTKUSteyler/GoonXposed)
|
||||||
|
|
||||||
- Non-Rooted: [Shiggy Manager](https://github.com/kmmiio99o/ShiggyManager)
|
- Non-Rooted: [Goon Manger](https://github.com/OTKUSteyler/GoonManager)
|
||||||
|
|
||||||
### Android/iOS
|
### Android/iOS
|
||||||
- **Injecting bundle:**
|
- **Injecting bundle:**
|
||||||
```url
|
```url
|
||||||
https://github.com/kmmiio99o/ShiggyCord/releases/latest/download/shiggycord.js
|
https://github.com/OTKUSteyler/GoonCord/releases/latest/download/gooncord.js
|
||||||
```
|
```
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
1. Install a ShiggyCord loader with loader config support (any mentioned in the [Installing](#installing) section).
|
1. Install a GoonCord loader with loader config support (any mentioned in the [Installing](#installing) section).
|
||||||
1. Go to Settings > General and enable Developer Settings.
|
1. Go to Settings > General and enable Developer Settings.
|
||||||
1. Clone the repo:
|
1. Clone the repo:
|
||||||
```
|
```
|
||||||
git clone https://github.com/kmmiio99o/Shiggycord.git
|
git clone https://github.com/OTKUSteyler/GoonCord.git
|
||||||
```
|
```
|
||||||
1. Install dependencies:
|
1. Install dependencies:
|
||||||
```
|
```
|
||||||
bun i
|
bun i
|
||||||
```
|
```
|
||||||
1. Build ShiggyCord's code:
|
1. Build GoonCord's code:
|
||||||
```
|
```
|
||||||
bun run build
|
bun run build
|
||||||
```
|
```
|
||||||
1. In the newly created `dist` directory, run a HTTP server. I recommend [http-server](https://www.npmjs.com/package/http-server).
|
1. In the newly created `dist` directory, run a HTTP server. I recommend [http-server](https://www.npmjs.com/package/http-server).
|
||||||
1. Go to Settings > Developer enabled earlier. Enable `Load from custom url` and input the IP address and port of the server (e.g. `http://192.168.1.236:4040/shiggycord.js`) in the new input box labelled `ShiggyCord URL`.
|
1. Go to Settings > Developer enabled earlier. Enable `Load from custom url` and input the IP address and port of the server (e.g. `http://192.168.1.236:4040/gooncord.js`) in the new input box labelled `GoonCord URL`.
|
||||||
1. Restart Discord. Upon reload, you should notice that your device will download ShiggyCord's bundled code from your server, rather than GitHub.
|
1. Restart Discord. Upon reload, you should notice that your device will download GoonCord's bundled code from your server, rather than GitHub.
|
||||||
1. Make your changes, rebuild, reload, go wild!
|
1. Make your changes, rebuild, reload, go wild!
|
||||||
|
|
||||||
Alternatively, you can directly *serve* the bundled code by running `bun run serve`. `shiggycord.js` will be served on your local address under the port 4040. You will then insert `http://<local ip address>:4040/shiggycord.js` as a custom url and reload. Whenever you restart your mobile client, the script will rebuild the bundle as your client fetches it.
|
Alternatively, you can directly *serve* the bundled code by running `bun run serve`. `gooncord.js` will be served on your local address under the port 4040. You will then insert `http://<local ip address>:4040/gooncord.js` as a custom url and reload. Whenever you restart your mobile client, the script will rebuild the bundle as your client fetches it.
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ let context = null;
|
||||||
const config = {
|
const config = {
|
||||||
entryPoints: ["src/entry.ts"],
|
entryPoints: ["src/entry.ts"],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
outfile: "dist/shiggycord.js",
|
outfile: "dist/gooncord.js",
|
||||||
format: "iife",
|
format: "iife",
|
||||||
splitting: false,
|
splitting: false,
|
||||||
// Enable minification by default for release builds (when a release-branch is provided).
|
// Enable minification by default for release builds (when a release-branch is provided).
|
||||||
|
|
@ -75,7 +75,7 @@ const config = {
|
||||||
constModules: {
|
constModules: {
|
||||||
globals: {
|
globals: {
|
||||||
"bunny-build-info": {
|
"bunny-build-info": {
|
||||||
version: `"Jolly 1.4"`,
|
version: `"1.1.11"`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import { messageUtil } from "@metro/common";
|
||||||
|
|
||||||
export default () =>
|
export default () =>
|
||||||
<ApplicationCommand>{
|
<ApplicationCommand>{
|
||||||
name: "debug",
|
name: "Goon",
|
||||||
description: Strings.COMMAND_DEBUG_DESC,
|
description: Strings.COMMAND_DEBUG_DESC,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
|
|
@ -20,8 +20,8 @@ export default () =>
|
||||||
execute([ephemeral], ctx) {
|
execute([ephemeral], ctx) {
|
||||||
const info = getDebugInfo();
|
const info = getDebugInfo();
|
||||||
const content = [
|
const content = [
|
||||||
"**ShiggyCord Debug Info**",
|
"**GoonCord Debug Info**",
|
||||||
`> ShiggyCord: ${info.bunny.version} (${info.bunny.loader.name} ${info.bunny.loader.version})`,
|
`> GoonCord: ${info.bunny.version} (${info.bunny.loader.name} ${info.bunny.loader.version})`,
|
||||||
`> Discord: ${info.discord.version} (${info.discord.build})`,
|
`> Discord: ${info.discord.version} (${info.discord.build})`,
|
||||||
`> React: ${info.react.version} (RN ${info.react.nativeVersion})`,
|
`> React: ${info.react.version} (RN ${info.react.nativeVersion})`,
|
||||||
`> Hermes: ${info.hermes.version} (bcv${info.hermes.bytecodeVersion})`,
|
`> Hermes: ${info.hermes.version} (bcv${info.hermes.bytecodeVersion})`,
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
"AUTO_DEVTOOLS": "Automatically connect to Devtools",
|
"AUTO_DEVTOOLS": "Automatically connect to Devtools",
|
||||||
"ASSET_BROWSER": "Asset Browser",
|
"ASSET_BROWSER": "Asset Browser",
|
||||||
"BRAND": "Brand",
|
"BRAND": "Brand",
|
||||||
"SHIGGYCORD": "ShiggyCold",
|
"SHIGGYCORD": "GoonCord",
|
||||||
"SHIGGYCORD_URL": "ShiggyCold URL",
|
"SHIGGYCORD_URL": "GoonCord URL",
|
||||||
"BROWSER": "Browser",
|
"BROWSER": "Browser",
|
||||||
"BYTECODE": "Bytecode",
|
"BYTECODE": "Bytecode",
|
||||||
"CANCEL": "Cancel",
|
"CANCEL": "Cancel",
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
"CLEAR_DATA_SUCCESSFUL": "Cleared data for {name}",
|
"CLEAR_DATA_SUCCESSFUL": "Cleared data for {name}",
|
||||||
"CODEBERG": "Codeberg",
|
"CODEBERG": "Codeberg",
|
||||||
"CODENAME": "Codename",
|
"CODENAME": "Codename",
|
||||||
"COMMAND_DEBUG_DESC": "Send ShiggyCord debug info.",
|
"COMMAND_DEBUG_DESC": "Send GoonCord debug info.",
|
||||||
"COMMAND_DEBUG_OPT_EPHEMERALLY": "Send debug info ephemerally.",
|
"COMMAND_DEBUG_OPT_EPHEMERALLY": "Send debug info ephemerally.",
|
||||||
"COMMAND_EVAL_DESC": "Evaluate JavaScript code.",
|
"COMMAND_EVAL_DESC": "Evaluate JavaScript code.",
|
||||||
"COMMAND_EVAL_OPT_ASYNC": "Whether to support 'await' in code. Must explicitly return for result (default: false)",
|
"COMMAND_EVAL_OPT_ASYNC": "Whether to support 'await' in code. Must explicitly return for result (default: false)",
|
||||||
|
|
@ -67,9 +67,9 @@
|
||||||
"LABEL_EXTRACT_FONTS_FROM_THEME": "Extract font from theme",
|
"LABEL_EXTRACT_FONTS_FROM_THEME": "Extract font from theme",
|
||||||
"LINKS": "Links",
|
"LINKS": "Links",
|
||||||
"LOAD_FROM_CUSTOM_URL": "Load from custom URL",
|
"LOAD_FROM_CUSTOM_URL": "Load from custom URL",
|
||||||
"LOAD_FROM_CUSTOM_URL_DEC": "Load ShiggyCord from a custom endpoint.",
|
"LOAD_FROM_CUSTOM_URL_DEC": "Load GoonCord from a custom endpoint.",
|
||||||
"LOAD_REACT_DEVTOOLS": "Load React DevTools",
|
"LOAD_REACT_DEVTOOLS": "Load React DevTools",
|
||||||
"SHIGGY_URL": "ShiggyCord URL",
|
"SHIGGY_URL": "GoonCord URL",
|
||||||
"LOADER": "Loader",
|
"LOADER": "Loader",
|
||||||
"MACHINE_ID": "Machine ID",
|
"MACHINE_ID": "Machine ID",
|
||||||
"MANUFACTURER": "Manufacturer",
|
"MANUFACTURER": "Manufacturer",
|
||||||
|
|
@ -91,7 +91,7 @@
|
||||||
"PLUGINS": "Plugins",
|
"PLUGINS": "Plugins",
|
||||||
"REFETCH": "Refetch",
|
"REFETCH": "Refetch",
|
||||||
"RELOAD": "Reload",
|
"RELOAD": "Reload",
|
||||||
"RELOAD_DISCORD": "Reshiggy your Discord",
|
"RELOAD_DISCORD": "ReGoon your Discord",
|
||||||
"RELOAD_IN_NORMAL_MODE": "Reload in Normal Mode",
|
"RELOAD_IN_NORMAL_MODE": "Reload in Normal Mode",
|
||||||
"RELOAD_IN_NORMAL_MODE_DESC": "Safe mode currently enabled, tap to reload in normal mode",
|
"RELOAD_IN_NORMAL_MODE_DESC": "Safe mode currently enabled, tap to reload in normal mode",
|
||||||
"RELOAD_IN_SAFE_MODE": "Reload in Safe Mode",
|
"RELOAD_IN_SAFE_MODE": "Reload in Safe Mode",
|
||||||
|
|
@ -120,7 +120,7 @@
|
||||||
"UH_OH": "Uh Oh",
|
"UH_OH": "Uh Oh",
|
||||||
"UNINSTALL": "Uninstall",
|
"UNINSTALL": "Uninstall",
|
||||||
"UNINSTALL_TITLE": "Uninstall {title}",
|
"UNINSTALL_TITLE": "Uninstall {title}",
|
||||||
"URL_PLACEHOLDER": "https://github.com/kmmiio99o/ShiggyCord",
|
"URL_PLACEHOLDER": "https://github.com/OTKUSteyler/GoonCord",
|
||||||
"VERSION": "Version",
|
"VERSION": "Version",
|
||||||
"VERSIONS": "Versions"
|
"VERSIONS": "Versions"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,19 +42,19 @@ function transformLinks(content: string, config: FixEmbedSettings): string {
|
||||||
if (config.instagram) {
|
if (config.instagram) {
|
||||||
result = result.replace(
|
result = result.replace(
|
||||||
/https?:\/\/(?:www\.)?instagram\.com(\/[^\s]+)/gi,
|
/https?:\/\/(?:www\.)?instagram\.com(\/[^\s]+)/gi,
|
||||||
"https://uuinstagram.com$1",
|
"https://kkinstagram.com$1",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// TikTok: Replace domain, keep path
|
// TikTok: Replace domain, keep path
|
||||||
if (config.tiktok) {
|
if (config.tiktok) {
|
||||||
result = result.replace(
|
result = result.replace(
|
||||||
/https?:\/\/(?:www\.)?tiktok\.com(\/[^\s]+)/gi,
|
/https?:\/\/(?:www\.)?tiktok\.com(\/[^\s]+)/gi,
|
||||||
"https://tnktok.com$1",
|
"https://tiktokez.com$1",
|
||||||
);
|
);
|
||||||
// TikTok short links (vm.tiktok.com)
|
// TikTok short links (vm.tiktok.com)
|
||||||
result = result.replace(
|
result = result.replace(
|
||||||
/https?:\/\/vm\.tiktok\.com\/([A-Za-z0-9]+)\/?/gi,
|
/https?:\/\/vm\.tiktok\.com\/([A-Za-z0-9]+)\/?/gi,
|
||||||
"https://vm.tnktok.com/$1",
|
"https://vm.tiktokez.com/$1",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// Reddit: Replace domain, keep path
|
// Reddit: Replace domain, keep path
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue