sadan pr fixes

Co-Authored-By: sadan4 <117494111+sadan4@users.noreply.github.com>
Co-Authored-By: prism <69634294+imjustprism@users.noreply.github.com>
This commit is contained in:
thororen1234 2026-04-29 19:02:50 -04:00
parent 70cbd7db4d
commit 6c24a55d55
No known key found for this signature in database
6 changed files with 5 additions and 12 deletions

View file

@ -13,7 +13,7 @@ export default definePlugin({
authors: [Devs.thororen],
patches: [
{
find: "#{intl::XcTHmQ::raw}",
find: "#{intl::USER_PROFILE_FRIEND_REQUEST_TOAST}",
replacement: {
match: /user:\i,widgets:.{0,100}?\}\),/,
replace: "$&Vencord.Api.ProfileCollections.renderProfileCollections(arguments[0]),",

View file

@ -138,7 +138,7 @@ export default definePlugin({
{
find: "renderConnectionStatus(){",
replacement: {
match: /(lineClamp:1,children:)(\i)(?=,|}\))/,
match: /(renderConnectionStatus\(\).{0,1000}?,children:)(\i)(?=,|}\))/,
replace: "$1[$2,$self.renderConnectionTimer(this.props.channel.id)]"
}
}

View file

@ -96,7 +96,7 @@ export default definePlugin({
{
find: ".REQUEST_GUILD_MEMBERS,",
replacement: {
match: /\.send\(\i\.REQUEST_GUILD_MEMBERS,{/,
match: /\.send\(\i\.\i\.REQUEST_GUILD_MEMBERS,{/,
replace: "$&nonce:arguments[1].nonce,"
}
},

View file

@ -27,13 +27,6 @@ export default definePlugin({
settings,
patches: [
{
find: '"PLAINTEXT_PREVIEW":"OTHER"',
replacement: {
match: /return"IMAGE"===\i\|\|"VIDEO"===\i(?:\|\|("VISUAL_PLACEHOLDER"===\i)\|\|\i&&"CLIP"===\i)?/,
replace: (_, visualPlaceholderPred) => visualPlaceholderPred != null ? `return ${visualPlaceholderPred}` : "return false"
}
},
{
find: "renderAttachments(",
predicate: () => settings.store.inlineVideo,

View file

@ -168,7 +168,7 @@ export default definePlugin({
patches: [
{
// Same find as ReviewDB
find: "#{intl::XcTHmQ::raw}",
find: "#{intl::USER_PROFILE_FRIEND_REQUEST_TOAST}",
replacement: {
match: /userId:\i\.id,guild:\i\}\)(?=])/,
replace: "$&,$self.profilePopoutComponent(arguments[0])"

View file

@ -280,7 +280,7 @@ export default definePlugin({
settings,
patches: [
{
find: "#{intl::3XohGn::raw}",
find: "#{intl::PAUSE_VOICE_MESSAGE_A11Y_LABEL}",
replacement: {
match: /(?<=\i=)(?=\i\.memo\(.{0,50}?=1,onVolumeChange:[^}]+?waveform:[^}]+?playbackCacheKey:)/,
replace: "$self.VoiceMessage=",