Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add replacement implementation stores for client mods that don't have specific functions #8

Merged
merged 26 commits into from
Jun 25, 2024

Conversation

Davilarek
Copy link
Member

As of time of writing (15.02.2024) the code is really messy and I probably haven't seen worse in past 2 years

window.webpackChunkdiscord_app.push(
[[Symbol()],
{},
(r: { c: any; }) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, very readable

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's how every discord mod does it I guess

package.json Outdated Show resolved Hide resolved
src/common/Webpack.ts Outdated Show resolved Hide resolved
src/common/index.ts Outdated Show resolved Hide resolved
src/utils.ts Outdated Show resolved Hide resolved
Davilarek and others added 2 commits February 17, 2024 01:14
Replugged uses Zerebos (BdApi) findInTree and I just remade it.

Go me :3
src/utils.ts Outdated Show resolved Hide resolved
src/utils.ts Outdated Show resolved Hide resolved
src/utils.ts Outdated Show resolved Hide resolved
}
// [key: string]: string,
} = {};
for (const key in implementationStores) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too much nesting

src/utils.ts Outdated Show resolved Hide resolved
@Davilarek
Copy link
Member Author

I think this is almost ready. Awaiting review now.

@Davilarek Davilarek marked this pull request as ready for review June 24, 2024 23:12
src/utils.ts Outdated Show resolved Hide resolved
src/utils.ts Outdated Show resolved Hide resolved
tree: Tree,
searchFilter: TreeFilter,
args: { walkable?: string[]; ignore?: string[]; maxRecursion: number } = { maxRecursion: 100 },
): Tree | null | undefined {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there an explaination on why u returing or null or undefined and not just undefined?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know, this isn't my code

src/utils.ts Outdated Show resolved Hide resolved
@Davilarek Davilarek requested a review from JustOptimize June 24, 2024 23:56
Copy link
Contributor

@JustOptimize JustOptimize left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only code that is worse is the code from dolibarr

@Davilarek
Copy link
Member Author

what?

Copy link
Member

@zrodevkaan zrodevkaan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Davilarek Davilarek merged commit 548bd0a into main Jun 25, 2024
2 checks passed
@Davilarek Davilarek deleted the feat-code-injection branch June 25, 2024 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants