From df7d165228846d51beba93aaf133809d8f4824d4 Mon Sep 17 00:00:00 2001 From: 1024x2 Date: Tue, 13 Aug 2024 21:08:35 +0100 Subject: Move patches into a folder --- vencord-patches/0001-Remove-donator-badges.patch | 150 ++++++++++++++++++++ vencord-patches/0002-Small-rebrand.patch | 152 +++++++++++++++++++++ .../0003-Experiments-Re-add-staging-banner.patch | 58 ++++++++ ...-t-prompt-for-updates-when-on-a-local-bra.patch | 30 ++++ ...SP-bypass-on-stock-discord-desktop-client.patch | 29 ++++ ...06-Updater-Disable-auto-update-by-default.patch | 25 ++++ ...er-Disable-running-arbitrary-code-snippet.patch | 46 +++++++ vencord-patches/0008-ReplaceGoogleSearch.patch | 29 ++++ 8 files changed, 519 insertions(+) create mode 100644 vencord-patches/0001-Remove-donator-badges.patch create mode 100644 vencord-patches/0002-Small-rebrand.patch create mode 100644 vencord-patches/0003-Experiments-Re-add-staging-banner.patch create mode 100644 vencord-patches/0004-Updater-don-t-prompt-for-updates-when-on-a-local-bra.patch create mode 100644 vencord-patches/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch create mode 100644 vencord-patches/0006-Updater-Disable-auto-update-by-default.patch create mode 100644 vencord-patches/0007-SupportHelper-Disable-running-arbitrary-code-snippet.patch create mode 100644 vencord-patches/0008-ReplaceGoogleSearch.patch (limited to 'vencord-patches') diff --git a/vencord-patches/0001-Remove-donator-badges.patch b/vencord-patches/0001-Remove-donator-badges.patch new file mode 100644 index 0000000..0498ead --- /dev/null +++ b/vencord-patches/0001-Remove-donator-badges.patch @@ -0,0 +1,150 @@ +From 5513b5fe92a7de00979a21e78741b1dc24241a5c Mon Sep 17 00:00:00 2001 +From: 1024x2 <2pow11@gmail.com> +Date: Wed, 24 Apr 2024 23:30:05 +0100 +Subject: [PATCH 1/8] Remove donator badges + +It makes a request to an API hosted by the Vencord developer, without +any option to turn it off. This raises privacy concerns. +It's easiest to just get rid of the feature entirely. +--- + src/api/Badges.ts | 3 +- + src/plugins/_api/badges/index.tsx | 95 ------------------------------- + 2 files changed, 1 insertion(+), 97 deletions(-) + +diff --git a/src/api/Badges.ts b/src/api/Badges.ts +index 7a041f1e..fefbd439 100644 +--- a/src/api/Badges.ts ++++ b/src/api/Badges.ts +@@ -90,8 +90,7 @@ export function _getBadges(args: BadgeUserArgs) { + : badges.push(...b); + } + } +- const donorBadges = (Plugins.BadgeAPI as unknown as typeof import("../plugins/_api/badges").default).getDonorBadges(args.userId); +- if (donorBadges) badges.unshift(...donorBadges); ++ void Plugins.BadgeAPI; // If I don't reference this everything breaks??? + + return badges; + } +diff --git a/src/plugins/_api/badges/index.tsx b/src/plugins/_api/badges/index.tsx +index 89a992ac..642769c8 100644 +--- a/src/plugins/_api/badges/index.tsx ++++ b/src/plugins/_api/badges/index.tsx +@@ -43,19 +43,6 @@ const ContributorBadge: ProfileBadge = { + onClick: (_, { userId }) => openContributorModal(UserStore.getUser(userId)) + }; + +-let DonorBadges = {} as Record>>; +- +-async function loadBadges(noCache = false) { +- DonorBadges = {}; +- +- const init = {} as RequestInit; +- if (noCache) +- init.cache = "no-cache"; +- +- DonorBadges = await fetch("https://badges.vencord.dev/badges.json", init) +- .then(r => r.json()); +-} +- + export default definePlugin({ + name: "BadgeAPI", + description: "API to add badges to users.", +@@ -119,20 +106,8 @@ export default definePlugin({ + } + ], + +- toolboxActions: { +- async "Refetch Badges"() { +- await loadBadges(true); +- Toasts.show({ +- id: Toasts.genId(), +- message: "Successfully refetched badges!", +- type: Toasts.Type.SUCCESS +- }); +- } +- }, +- + async start() { + Vencord.Api.Badges.addBadge(ContributorBadge); +- await loadBadges(); + }, + + getBadges(props: { userId: string; user?: User; guildId: string; }) { +@@ -152,74 +127,4 @@ export default definePlugin({ + const Component = badge.component!; + return ; + }, { noop: true }), +- +- +- getDonorBadges(userId: string) { +- return DonorBadges[userId]?.map(badge => ({ +- image: badge.badge, +- description: badge.tooltip, +- position: BadgePosition.START, +- props: { +- style: { +- borderRadius: "50%", +- transform: "scale(0.9)" // The image is a bit too big compared to default badges +- } +- }, +- onClick() { +- const modalKey = openModal(props => ( +- { +- closeModal(modalKey); +- VencordNative.native.openExternal("https://github.com/sponsors/Vendicated"); +- }}> +- +- +- +- +- +- Vencord Donor +- +- +- +- +- +- +- +- +-
+- +- This Badge is a special perk for Vencord Donors +- +- +- Please consider supporting the development of Vencord by becoming a donor. It would mean a lot!! +- +-
+-
+- +- +- +- +- +-
+-
+- )); +- }, +- })); +- } + }); +-- +2.45.2 + diff --git a/vencord-patches/0002-Small-rebrand.patch b/vencord-patches/0002-Small-rebrand.patch new file mode 100644 index 0000000..0c72f5c --- /dev/null +++ b/vencord-patches/0002-Small-rebrand.patch @@ -0,0 +1,152 @@ +From e5d50191a03a95601dae62aed9f192f242706009 Mon Sep 17 00:00:00 2001 +From: 1024x2 <2pow11@gmail.com> +Date: Sat, 8 Jun 2024 22:58:09 +0100 +Subject: [PATCH 2/8] Small rebrand + +There's a litevex in here! It's got my gun!!! AHHHHHHHH +--- + README.md | 48 ++++++++----------- + src/components/VencordSettings/VencordTab.tsx | 4 +- + src/plugins/vencordToolbox/index.tsx | 10 ++-- + 3 files changed, 28 insertions(+), 34 deletions(-) + +diff --git a/README.md b/README.md +index 61575d4b..995af92d 100644 +--- a/README.md ++++ b/README.md +@@ -1,20 +1,21 @@ +-# Vencord ++# Vexcord + + [![Codeberg Mirror](https://img.shields.io/static/v1?style=for-the-badge&label=Codeberg%20Mirror&message=codeberg.org/Vee/cord&color=2185D0&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAAKbUlEQVR4nNVae3AV5RX/nW/3Pva+b24e5HHzIICQKGoiYiW8NFBFgohaa6ctglpbFSujSGurzUinohWsOij/gGX6R2fqOK0d1FYTEZXaTrWCBbEikJCEyCvkeXNvkrunf+zdkJDkPnex/c3cmd29+53v/M6e73znnF2Cydj4Tntldzi6qrN/qKqzf2jy6b7BnL4B1dI7oMp9AyoR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MvOnzBw16bevIxR95JOj7DNKb1PqXWa+HMDtAGoBXII0lxq0N2OfAmgA8Hsi2muMhudgesHPzNkA5gKoADADwFRoS8UHQO+x9wLoBNAB4AsAnwM4AOADIjLVxf8L9kdXUOE0IskAAAAASUVORK5CYII=)](https://codeberg.org/Vee/cord) + +-The cutest Discord client mod ++The porniest Discord client mod + +-| ![image](https://github.com/Vendicated/Vencord/assets/45497981/706722b1-32de-4d99-bee9-93993b504334) | ++| ![image](https://media.tenor.com/BxmwtK6R-10AAAAC/litevex-litevx.gif) | + | :--------------------------------------------------------------------------------------------------: | +-| A screenshot of vencord showcasing the [vencord-theme](https://github.com/synqat/vencord-theme) | ++| A screenshot of vexcord showcasing the [pornliker](https://litevex.staropa.net/) | + + ## Features + +-- Super easy to install (Download Installer, open, click install button, done) ++- ![No anime](https://i.kym-cdn.com/photos/images/original/001/408/771/8e3.jpg) ++- Despite the questionable branding, no porn. + - 100+ plugins built in: [See a list](https://vencord.dev/plugins) + - Some highlights: SpotifyControls, MessageLogger, Experiments, GameActivityToggle, Translate, NoTrack, QuickReply, Free Emotes/Stickers, PermissionsViewer, CustomCommands, ShowHiddenChannels, PronounDB + - Fairly lightweight despite the many inbuilt plugins +-- Excellent Browser Support: Run Vencord in your Browser via extension or UserScript ++- Excellent Browser Support: Run Vexcord in your Browser via extension or UserScript + - Works on any Discord branch: Stable, Canary or PTB all work (though for the best experience I recommend stable!) + - Custom CSS and Themes: Inbuilt css editor with support to import any css files (including BetterDiscord themes) + - Privacy friendly, blocks Discord analytics & crash reporting out of the box and has no telemetry +@@ -22,46 +23,39 @@ The cutest Discord client mod + - Settings sync: Keep your plugins and their settings synchronised between devices / apps (optional) + + +-## Installing / Uninstalling ++## Installing + +-Visit https://vencord.dev/download ++Don't ++ ++## Uninstalling ++ ++Why did you install this + + ## Join our Support/Community Server + +-https://discord.gg/D9uwnFnqmd ++https://discord.gg/QKv6vwGBpk + + ## Sponsors + +-| **Thanks a lot to all Vencord [sponsors](https://github.com/sponsors/Vendicated)!!** | +-| :------------------------------------------------------------------------------------------: | +-| [![](https://meow.vendicated.dev/sponsors.png)](https://github.com/sponsors/Vendicated) | +-| *generated using [github-sponsor-graph](https://github.com/Vendicated/github-sponsor-graph)* | +- ++WHY WOULD YOU PAY MONEY FOR THIS?? + + ## Star History + +- +- +- +- +- Star History Chart +- +- ++![Star History Chart](https://media.tenor.com/t4_mbIafxxIAAAAC/litevex-litevx.gif) + + ## Disclaimer + + Discord is trademark of Discord Inc. and solely mentioned for the sake of descriptivity. + Mention of it does not imply any affiliation with or endorsement by Discord Inc. ++This is a fork of Vencord, which calls itself the "cutest" client mod. + +
+-Using Vencord violates Discord's terms of service ++Using Vexcord violates Discord's terms of service + + Client modifications are against Discord’s Terms of Service. + +-However, Discord is pretty indifferent about them and there are no known cases of users getting banned for using client mods! So you should generally be fine as long as you don’t use any plugins that implement abusive behaviour. But no worries, all inbuilt plugins are safe to use! +- +-Regardless, if your account is very important to you and it getting disabled would be a disaster for you, you should probably not use any client mods (not exclusive to Vencord), just to be safe +- +-Additionally, make sure not to post screenshots with Vencord in a server where you might get banned for it ++However, I do not care. + +
++ ++big big chungus big chungus big chungus +diff --git a/src/components/VencordSettings/VencordTab.tsx b/src/components/VencordSettings/VencordTab.tsx +index 97f82e77..675682e8 100644 +--- a/src/components/VencordSettings/VencordTab.tsx ++++ b/src/components/VencordSettings/VencordTab.tsx +@@ -35,8 +35,8 @@ import { SettingsTab, wrapTab } from "./shared"; + + const cl = classNameFactory("vc-settings-"); + +-const DEFAULT_DONATE_IMAGE = "https://cdn.discordapp.com/emojis/1026533090627174460.png"; +-const SHIGGY_DONATE_IMAGE = "https://media.discordapp.net/stickers/1039992459209490513.png"; ++const DEFAULT_DONATE_IMAGE = "https://i.kym-cdn.com/photos/images/original/001/442/330/d6a.jpg"; ++const SHIGGY_DONATE_IMAGE = "https://media.tenor.com/BxmwtK6R-10AAAAC/litevex-litevx.gif"; + + type KeysOfType = { + [K in keyof Object]: Object[K] extends Type ? K : never; +diff --git a/src/plugins/vencordToolbox/index.tsx b/src/plugins/vencordToolbox/index.tsx +index 00805fbd..7d935f4a 100644 +--- a/src/plugins/vencordToolbox/index.tsx ++++ b/src/plugins/vencordToolbox/index.tsx +@@ -86,10 +86,10 @@ function VencordPopout(onClose: () => void) { + ); + } + +-function VencordPopoutIcon(isShown: boolean) { ++function VexcordPopoutIcon() { + return ( +- +- ++ ++ + + ); + } +@@ -110,8 +110,8 @@ function VencordPopoutButton() { + setShow(v => !v)} +- tooltip={isShown ? null : "Vencord Toolbox"} +- icon={() => VencordPopoutIcon(isShown)} ++ tooltip={isShown ? null : "Vexcord Toolbox"} ++ icon={VexcordPopoutIcon} + selected={isShown} + /> + )} +-- +2.45.2 + diff --git a/vencord-patches/0003-Experiments-Re-add-staging-banner.patch b/vencord-patches/0003-Experiments-Re-add-staging-banner.patch new file mode 100644 index 0000000..bd2b002 --- /dev/null +++ b/vencord-patches/0003-Experiments-Re-add-staging-banner.patch @@ -0,0 +1,58 @@ +From 2eb6e109c85aa251904d7d7322ba6c80bd5503a2 Mon Sep 17 00:00:00 2001 +From: 1024x2 <2pow11@gmail.com> +Date: Thu, 13 Jun 2024 01:00:35 +0100 +Subject: [PATCH 3/8] Experiments: Re-add staging banner + +(it's funny) +--- + src/plugins/experiments/index.tsx | 18 +++++++++++++++++- + 1 file changed, 17 insertions(+), 1 deletion(-) + +diff --git a/src/plugins/experiments/index.tsx b/src/plugins/experiments/index.tsx +index 33c32b1a..2992807e 100644 +--- a/src/plugins/experiments/index.tsx ++++ b/src/plugins/experiments/index.tsx +@@ -21,16 +21,24 @@ import { disableStyle, enableStyle } from "@api/Styles"; + import ErrorBoundary from "@components/ErrorBoundary"; + import { ErrorCard } from "@components/ErrorCard"; + import { Devs } from "@utils/constants"; ++import { Logger } from "@utils/Logger"; + import { Margins } from "@utils/margins"; + import definePlugin, { OptionType } from "@utils/types"; + import { findByPropsLazy } from "@webpack"; +-import { Forms, React } from "@webpack/common"; ++import { Forms, React, UserStore } from "@webpack/common"; ++import { User } from "discord-types/general"; + + import hideBugReport from "./hideBugReport.css?managed"; + + const KbdStyles = findByPropsLazy("key", "combo"); + + const settings = definePluginSettings({ ++ forceStagingBanner: { ++ description: "Whether to force Staging banner under user area.", ++ type: OptionType.BOOLEAN, ++ default: false, ++ restartNeeded: true ++ }, + toolbarDevMenu: { + type: OptionType.BOOLEAN, + description: "Change the Help (?) toolbar button (top right in chat) to Discord's developer menu", +@@ -91,6 +99,14 @@ export default definePlugin({ + match: /\i\.isDM\(\)\|\|\i\.isThread\(\)/, + replace: "false", + } ++ }, ++ { ++ find: ".Messages.DEV_NOTICE_STAGING", ++ predicate: () => settings.store.forceStagingBanner, ++ replacement: { ++ match: /window\.GLOBAL_ENV\.RELEASE_CHANNEL/, ++ replace: "\"staging\"" ++ } + } + ], + +-- +2.45.2 + diff --git a/vencord-patches/0004-Updater-don-t-prompt-for-updates-when-on-a-local-bra.patch b/vencord-patches/0004-Updater-don-t-prompt-for-updates-when-on-a-local-bra.patch new file mode 100644 index 0000000..83bd402 --- /dev/null +++ b/vencord-patches/0004-Updater-don-t-prompt-for-updates-when-on-a-local-bra.patch @@ -0,0 +1,30 @@ +From 3bdfceda8ef7add84ddb39428c67e391d796c001 Mon Sep 17 00:00:00 2001 +From: 1024x2 <2pow11@gmail.com> +Date: Sat, 9 Mar 2024 08:00:55 +0000 +Subject: [PATCH 4/8] Updater: don't prompt for updates when on a local branch + +--- + src/main/updater/git.ts | 7 +------ + 1 file changed, 1 insertion(+), 6 deletions(-) + +diff --git a/src/main/updater/git.ts b/src/main/updater/git.ts +index 1955f7dc..0226565e 100644 +--- a/src/main/updater/git.ts ++++ b/src/main/updater/git.ts +@@ -49,12 +49,7 @@ async function getRepo() { + async function calculateGitChanges() { + await git("fetch"); + +- const branch = (await git("branch", "--show-current")).stdout.trim(); +- +- const existsOnOrigin = (await git("ls-remote", "origin", branch)).stdout.length > 0; +- if (!existsOnOrigin) return []; +- +- const res = await git("log", `HEAD...origin/${branch}`, "--pretty=format:%an/%h/%s"); ++ const res = await git("log", "HEAD..@{u}", "--pretty=format:%an/%h/%s"); + + const commits = res.stdout.trim(); + return commits ? commits.split("\n").map(line => { +-- +2.45.2 + diff --git a/vencord-patches/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch b/vencord-patches/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch new file mode 100644 index 0000000..3dd3dab --- /dev/null +++ b/vencord-patches/0005-Enable-CSP-bypass-on-stock-discord-desktop-client.patch @@ -0,0 +1,29 @@ +From d0191e9b6ab6e6ae44857ee97ba392e8fbca91fd Mon Sep 17 00:00:00 2001 +From: 1024x2 <2pow11@gmail.com> +Date: Wed, 27 Dec 2023 15:05:44 +0000 +Subject: [PATCH 5/8] Enable CSP bypass on stock discord desktop client + +--- + src/main/index.ts | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/main/index.ts b/src/main/index.ts +index 5519d47a..64e71c15 100644 +--- a/src/main/index.ts ++++ b/src/main/index.ts +@@ -24,10 +24,11 @@ import { RendererSettings } from "./settings"; + import { IS_VANILLA, THEMES_DIR } from "./utils/constants"; + import { installExt } from "./utils/extensions"; + +-if (IS_VESKTOP || !IS_VANILLA) { ++{ + app.whenReady().then(() => { + // Source Maps! Maybe there's a better way but since the renderer is executed + // from a string I don't think any other form of sourcemaps would work ++ if (IS_VESKTOP || !IS_VANILLA) + protocol.registerFileProtocol("vencord", ({ url: unsafeUrl }, cb) => { + let url = unsafeUrl.slice("vencord://".length); + if (url.endsWith("/")) url = url.slice(0, -1); +-- +2.45.2 + diff --git a/vencord-patches/0006-Updater-Disable-auto-update-by-default.patch b/vencord-patches/0006-Updater-Disable-auto-update-by-default.patch new file mode 100644 index 0000000..c22aa3b --- /dev/null +++ b/vencord-patches/0006-Updater-Disable-auto-update-by-default.patch @@ -0,0 +1,25 @@ +From c343fc737e26195eb7c5f4af4c1e506d73f46465 Mon Sep 17 00:00:00 2001 +From: 1024x2 <2pow11@gmail.com> +Date: Sun, 21 Apr 2024 21:22:25 +0100 +Subject: [PATCH 6/8] Updater: Disable auto-update by default + +--- + src/api/Settings.ts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/api/Settings.ts b/src/api/Settings.ts +index 88337a91..4473bc1c 100644 +--- a/src/api/Settings.ts ++++ b/src/api/Settings.ts +@@ -77,7 +77,7 @@ export interface Settings { + } + + const DefaultSettings: Settings = { +- autoUpdate: true, ++ autoUpdate: false, + autoUpdateNotification: true, + useQuickCss: true, + themeLinks: [], +-- +2.45.2 + diff --git a/vencord-patches/0007-SupportHelper-Disable-running-arbitrary-code-snippet.patch b/vencord-patches/0007-SupportHelper-Disable-running-arbitrary-code-snippet.patch new file mode 100644 index 0000000..eb08fe5 --- /dev/null +++ b/vencord-patches/0007-SupportHelper-Disable-running-arbitrary-code-snippet.patch @@ -0,0 +1,46 @@ +From 1ba374fb928b0706078ab293a7abdab2f45f1643 Mon Sep 17 00:00:00 2001 +From: 1024x2 <2pow11@gmail.com> +Date: Sat, 20 Jul 2024 00:21:22 +0100 +Subject: [PATCH 7/8] SupportHelper: Disable running arbitrary code snippets + +Why is this even a thing? +--- + src/plugins/_core/supportHelper.tsx | 22 ---------------------- + 1 file changed, 22 deletions(-) + +diff --git a/src/plugins/_core/supportHelper.tsx b/src/plugins/_core/supportHelper.tsx +index de8e37c7..7cb0044d 100644 +--- a/src/plugins/_core/supportHelper.tsx ++++ b/src/plugins/_core/supportHelper.tsx +@@ -300,28 +300,6 @@ export default definePlugin({ + + ); + } +- +- if (props.message.author.id === VENBOT_USER_ID) { +- const match = CodeBlockRe.exec(props.message.content || props.message.embeds[0]?.rawDescription || ""); +- if (match) { +- buttons.push( +- +- ); +- } +- } + } + + return buttons.length +-- +2.45.2 + diff --git a/vencord-patches/0008-ReplaceGoogleSearch.patch b/vencord-patches/0008-ReplaceGoogleSearch.patch new file mode 100644 index 0000000..7ad9608 --- /dev/null +++ b/vencord-patches/0008-ReplaceGoogleSearch.patch @@ -0,0 +1,29 @@ +From 3d0cd1cf306a8e010c7389e5b654ac7cd75d1623 Mon Sep 17 00:00:00 2001 +From: 1024x2 <2pow11@gmail.com> +Date: Sat, 20 Jul 2024 00:04:36 +0100 +Subject: [PATCH 8/8] =?UTF-8?q?ReplaceGoogleSearch:=20=E9=87=8D=E6=96=B0?= + =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=99=BE=E5=BA=A6=E6=94=AF=E6=8C=81?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +中华人民共和国万岁!!! 🇨🇳🇨🇳🇨🇳 +--- + src/plugins/replaceGoogleSearch/index.tsx | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/plugins/replaceGoogleSearch/index.tsx b/src/plugins/replaceGoogleSearch/index.tsx +index 43b0762a..f7d32397 100644 +--- a/src/plugins/replaceGoogleSearch/index.tsx ++++ b/src/plugins/replaceGoogleSearch/index.tsx +@@ -17,6 +17,7 @@ const DefaultEngines = { + Bing: "https://www.bing.com/search?q=", + Yahoo: "https://search.yahoo.com/search?p=", + Yandex: "https://yandex.com/search/?text=", ++ Baidu: "https://www.baidu.com/s?wd=", + GitHub: "https://github.com/search?q=", + Reddit: "https://www.reddit.com/search?q=", + Wikipedia: "https://wikipedia.org/w/index.php?search=", +-- +2.45.2 + -- cgit v1.2.3