WebContextMenus: implement context menu for text selection (#2577)

Co-authored-by: vee <vendicated@riseup.net>
This commit is contained in:
Masterjoona 2024-06-29 19:42:27 +03:00 committed by GitHub
parent 2d570a524b
commit 8a7c0d7e61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -200,6 +200,34 @@ export default definePlugin({
match: /supports\(\i\)\{switch\(\i\)\{(case (\i).\i)/, match: /supports\(\i\)\{switch\(\i\)\{(case (\i).\i)/,
replace: "$&.DISABLE_VIDEO:return true;$1" replace: "$&.DISABLE_VIDEO:return true;$1"
} }
},
{
find: ".Messages.SEARCH_WITH_GOOGLE",
replacement: {
match: /\i\.isPlatformEmbedded/,
replace: "true"
}
},
{
find: ".Messages.COPY,hint:",
replacement: [
{
match: /\i\.isPlatformEmbedded/,
replace: "true"
},
{
match: /\i\.\i\.copy/,
replace: "Vencord.Webpack.Common.Clipboard.copy"
}]
},
// Automod add filter words
{
find: '("interactionUsernameProfile',
replacement:
{
match: /\i\.isPlatformEmbedded(?=.{0,50}\.tagName)/,
replace: "true"
},
} }
], ],