Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'vencord/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
verticalsync committed Jul 25, 2024
2 parents f445680 + bc80185 commit 7643f25
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/plugins/clientTheme/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function onPickColor(color: number) {
updateColorVars(hexColor);
}

const saveClientTheme = findByCodeLazy('type:"UNSYNCED_USER_SETTINGS_UPDATE",settings:{useSystemTheme:"system"===');
const saveClientTheme = findByCodeLazy('type:"UNSYNCED_USER_SETTINGS_UPDATE', '"system"===');

function setTheme(theme: string) {
saveClientTheme({ theme });
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/imageZoom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default definePlugin({
find: ".handleImageLoad)",
replacement: [
{
match: /placeholderVersion:\i,/,
match: /placeholderVersion:\i,(?=.{0,50}children:)/,
replace: "...$self.makeProps(this),$&"
},

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/spotifyControls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default definePlugin({
},
patches: [
{
find: '"AccountConnected"',
find: "this.isCopiedStreakGodlike",
replacement: {
// react.jsx)(AccountPanel, { ..., showTaglessAccountPanel: blah })
match: /(?<=\i\.jsxs?\)\()(\i),{(?=[^}]*?userTag:\i,hidePrivateData:)/,
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/viewIcons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ export default definePlugin({
replacement: {
match: /avatarSrc:(\i),eventHandlers:(\i).+?"div",{...\2,/,
replace: "$&style:{cursor:\"pointer\"},onClick:()=>{$self.openImage($1)},"
}
},
all: true
},
// Old Profiles Modal pfp
{
Expand Down
4 changes: 4 additions & 0 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,10 @@ export const Devs = /* #__PURE__*/ Object.freeze({
name: "Fafa",
id: 428188716641812481n,
},
Joona: {
name: "Joona",
id: 297410829589020673n,
},
} satisfies Record<string, Dev>);

export const SuncordDevs = /* #__PURE__*/ Object.freeze({
Expand Down

0 comments on commit 7643f25

Please sign in to comment.