Sv443 / BetterYTM

Userscript that improves YouTube Music and YouTube with tons of quality of life features such as auto-liking, better lyrics lookup, finer volume control and lots more layout and usability improvements
GNU Affero General Public License v3.0
39 stars 0 forks source link

"This document requires 'TrustedHTML' assignment" error on Chromium browsers #104

Closed Sv443 closed 1 month ago

Sv443 commented 2 months ago

I guess Chromium is just more strict when it comes to the CSP and assigning stuff to the innerHTML property?

https://greasyfork.org/en/discussions/development/220765-this-document-requires-trustedhtml-assignment
https://developer.mozilla.org/en-US/docs/Web/API/TrustedHTML

The library DOMPurify could be used to fix this without having to manually implement the TrustedHTML API which isn't supported in Firefox and Safari yet.

Sv443 commented 2 months ago

This issue is now fixed in BYTM but still needs to be implemented in UserUtils: https://github.com/Sv443-Network/UserUtils/issues/53