-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scriptlets remove-node-text.js and trusted-replace-node-text.js destroy DOM elements #3492
Comments
Seems fine for IDK possibly repair for |
Try using (Cannot test on your example - racing.) |
This is the expected behavior: replace the Additionally, the text on that page is added dynamically, whereas In any case, even the following filter accomplishes nothing on my side:
How did you make it work at all? I can't even cause the breakage. |
Ok it's because For the purpose of replacing text on a web page, it's best to add a procedural cosmetic Closing as |
Prerequisites
I tried to reproduce the issue when...
Description
For example we have part of HTML:
<p><span class="regin0.xxxx">Please contact us at contact@example.com if you see this on another site.</span><a name="L6"></a> 「Hey, Jig, Shiasha-san. Good work」<span class="eloun0.xxxx">Several dragons looked at the human girl in amazement.</span></p>
And we have following rule:
example.com##+js(replace-node-text,p,「,- )
A specific URL where the issue occurs.
https://www.foxteller.com/novel/643/33/the-witch-and-the-mercenary/033
Steps to Reproduce
Expected behavior
HTML becomes like this:
<p><span class="regin0.xxxx">Please contact us at contact@example.com if you see this on another site.</span><a name="L6"></a> - Hey, Jig, Shiasha-san. Good work」<span class="eloun0.xxxx">Several dragons looked at the human girl in amazement.</span></p>
Actual behavior
HTML becomes like this:
<p>Please contact us at contact@example.com if you see this on another site. - Hey, Jig, Shiasha-san. Good work」Several dragons looked at the human girl in amazement.</p>
uBO version
1.61.2
Browser name and version
Firefox 133.0.3
Operating System and version
Windows 11 24H2
The text was updated successfully, but these errors were encountered: