Skip to content
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

userscript script breaks threads.net #158

Open
write3371 opened this issue Jul 10, 2024 · 2 comments
Open

userscript script breaks threads.net #158

write3371 opened this issue Jul 10, 2024 · 2 comments

Comments

@write3371
Copy link

userscript of kiss-translator breaks threads.net
disabling it makes the site works again

@fishjar
Copy link
Owner

fishjar commented Jul 14, 2024

我试了一下,虽然页面没有崩溃,但是出现了一行错误导致无法工作:
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 .

@write3371
Copy link
Author

Thanks for the reply!

I think there are many other sites setting TrustedHTML though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants