HTML filter cannot remove attributes when string was divided
I found one site not work even with 'HTML filter' option on
- The main problem is that the website cannot be displayed without jQuery.
- jQuery is embedded with crossorigin and integrity attributes.
- The HTML filter cannot remove these attributes because the string (HTML source code) has been split into two parts by filterResponseData() exactly at the point where jQuery is embedded.
- Collect data in a string array first and change it only just before writing it back.
Interested users can install LocalCDN as a temporary extension to test it: https://codeberg.org/nobody/LocalCDN/wiki/Home#5-you-recently-changed-something-in-the-code-and-i-would-like-to-test-it-how-can-i-do-that
Thanks for testing 👍
Glad to hear that everything is working 😊 Feel free to reopen the issue if there are any problems.
I'll probably deploy an update next weekend.
Deleting a branch is permanent. It CANNOT be undone. Continue?