userscript script breaks threads.net
write3371 opened this issue · 2 comments
userscript of kiss-translator breaks threads.net
disabling it makes the site works again
我试了一下,虽然页面没有崩溃,但是出现了一行错误导致无法工作:
TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment.
这是由于该网站的CSP策略设置了TrustedHTML
引起的,也许有办法可以修复这个问题,但我不肯定。由于时间关系,非普遍现象的bug不会紧急修复更新,所以建议使用插件版本,而不是油猴脚本。
I tried, and while the page didn't crash, I got a line error that didn't work:
TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment.
This is caused by the site's CSP policy setting 'TrustedHTML', maybe there's a way to fix this, but I'm not sure. Due to time constraints, non-common bugs will not be urgently fixed and updated, so it is recommended to use the extension instead of the userscript .
Thanks for the reply!
I think there are many other sites setting TrustedHTML though.