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
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.
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.