Using trusted-replace-node-text · uBlockOrigin/uAssets · Discussion #23769 (original) (raw)

Is it possible to replace multiple places in a script at the same time? I want to merge

pks.raenonx.cc##+js(trusted-rpnt, script, /AdGuard.*?\\/, \)
pks.raenonx.cc##+js(trusted-rpnt, script, /Please.*?"/, \")

as using the both causes the site not to load. The target is this inline-script:

self.__next_f.push([1,"Ldd\",null,{\"src\":\"/images/generic/globe.png\",\"alt\":\"About\",\"fill\":true,\"title\":\"About\",\"sizes\":\"(max-width: 768px) 10vw, 5vw\",\"className\":\"object-cover invert-hoverable\"}]}],[\"$\",\"div\",null,{\"className\":\"text-lg\",\"children\":\"About\"}]]}]\ndb:[\"$\",\"$Ldc\",null,{\"locale\":\"en\",\"localePrefix\":\"$undefined\",\"href\":\"https://discord.gg/eeveesleep\",\"prefetch\":false,\"className\":\"flex flex-row place-content-center place-items-center items-center text-center group button-clickable-glow size-12 shrink-0 self-end p-1\",\"target\":\"_blank\",\"children\":[\"$\",\"svg\",null,{\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 127.14 96.36\",\"className\":\"invert-hoverable scale-75\",\"children\":[\"$\",\"path\",null,{\"fill\":\"#fff\",\"d\":\"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z\"}]}]}]\n3d:[\"$\",\"$L35\",null,{\"locale\":\"en\",\"now\":\"$D2024-05-30T10:48:02.646Z\",\"timeZone\":\"UTC\",\"messages\":{\"UI\":{\"Subscription\":\"$37\",\"Root\":{\"#Comments\":[\"TODO: Add comments\"],\"Help\":\"Help / Documentations\"}}},\"children\":[\"$\",\"$Lde\",null,{\"locale\":\"en\"}]}]\n3e:[\"$\",\"$Ldf\",null,{\"announcements\":[{\"uuid\":\"f31ea303-726d-4cb6-8001-b5042389eb22\",\"message\":\"AdGuard needs to be disabled to make the website function properly, regardless ads-free or not.\",\"locale\":[\"en\"],\"level\":\"alert\",\"order\":30,\"expiry\":null},{\"uuid\":\"732e1024-3b06-4f69-b7bb-430c4684526b\",\"message\":\"Please do not report us to ad blockers. For details, please check [this doc](https://pks.raenonx.cc/en/docs/vi"])