Fix OpenInApp

main
Vendicated 1 year ago
parent 8f0009778a
commit 685f44d40f
No known key found for this signature in database
GPG Key ID: D66986BAF75ECF18

@ -53,10 +53,10 @@ export default definePlugin({
patches: [ patches: [
{ {
find: '"MaskedLinkStore"', find: "trackAnnouncementMessageLinkClicked({",
replacement: { replacement: {
match: /return ((\i)\.apply\(this,arguments\))(?=\}function \i.{0,250}\.trusted)/, match: /(?<=handleClick:function\(\)\{return (\i)\}.+?)async function \1\(.+?\)\{/,
replace: "return $self.handleLink(...arguments).then(handled => handled||$1)" replace: "$& if(await $self.handleLink(...arguments)) return;"
} }
}, },
// Make Spotify profile activity links open in app on web // Make Spotify profile activity links open in app on web
@ -71,7 +71,7 @@ export default definePlugin({
{ {
find: ".CONNECTED_ACCOUNT_VIEWED,", find: ".CONNECTED_ACCOUNT_VIEWED,",
replacement: { replacement: {
match: /(?<=href:\i,onClick:function\(\i\)\{)(?=\i=(\i)\.type,.{0,50}CONNECTED_ACCOUNT_VIEWED)/, match: /(?<=href:\i,onClick:\i=>\{)(?=.{0,10}\i=(\i)\.type,.{0,100}CONNECTED_ACCOUNT_VIEWED)/,
replace: "$self.handleAccountView(arguments[0],$1.type,$1.id);" replace: "$self.handleAccountView(arguments[0],$1.type,$1.id);"
} }
} }

Loading…
Cancel
Save