Fix patches with duplicate finds

This commit is contained in:
Nuckyz 2025-01-22 22:44:52 -03:00
parent ed99ae7f23
commit 30647b6bd9
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
6 changed files with 7 additions and 7 deletions

View file

@ -108,7 +108,7 @@ export default definePlugin({
patches: [
{
find: "#{intl::MESSAGE_ACTIONS_MENU_LABEL}",
find: "#{intl::MESSAGE_ACTIONS_MENU_LABEL}),shouldHideMediaOptions:",
replacement: {
match: /favoriteableType:\i,(?<=(\i)\.getAttribute\("data-type"\).+?)/,
replace: (m, target) => `${m}reverseImageSearchType:${target}.getAttribute("data-role"),`