1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-11 02:16:23 +00:00

fix: AlwaysTrust (#1868)

This commit is contained in:
redstonekasi 2023-10-25 17:29:07 +02:00 committed by Luna
parent a4e415f9fe
commit 2194172773

View file

@ -27,15 +27,15 @@ export default definePlugin({
{
find: ".displayName=\"MaskedLinkStore\"",
replacement: {
match: /\.isTrustedDomain=function\(.\){return.+?};/,
replace: ".isTrustedDomain=function(){return true};"
match: /(?<=isTrustedDomain\(\i\){)return \i\(\i\)/,
replace: "return true"
}
},
{
find: '"7z","ade","adp"',
find: "isSuspiciousDownload:",
replacement: {
match: /JSON\.parse\('\[.+?'\)/,
replace: "[]"
match: /function \i\(\i\){(?=.{0,60}\.parse\(\i\))/,
replace: "$&return null;"
}
}
]