Revert "Fixes"

This reverts commit 6fc7fc9f97.
This commit is contained in:
thororen1234 2024-10-22 14:45:56 -04:00
parent a7a722dab9
commit 2837028793
8 changed files with 47 additions and 51 deletions

View file

@ -156,14 +156,14 @@ export default definePlugin({
patches: [
{
find: ".contain,SCALE_DOWN:",
find: "Messages.OPEN_IN_BROWSER",
replacement: {
// there are 2 image thingies. one for carosuel and one for the single image.
// so thats why i added global flag.
// also idk if this patch is good, should it be more specific?
// https://regex101.com/r/xfvNvV/1
match: /\.slide,\i\),/g,
replace: `$&id:"${ELEMENT_ID}",`
match: /return.{1,200}\.wrapper.{1,200}src:\i,/g,
replace: `$&id: '${ELEMENT_ID}',`
}
},