-
Notifications
You must be signed in to change notification settings - Fork 28
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
The userscript won't work on firefox with greasemonkey. #8
Comments
感谢提供信息,已修改代码,使用 上面代码中 如有其他问题欢迎反馈。 @DreamOfIce 谢谢。 |
GreasyFork邀请发了 |
谢谢,已更新脚本代码。 |
@PipecraftNet
I haven't investigate if it works or not yet. Howver I think you should consider this broken on firefox since unlike chrome, the little cuty fox won't give you a chance on this. |
It seems that it's my mistake, this URL returns: |
The problem should have been solved, can you try again? Here are the reasons for the error: I've used njs to decode all request URIs, if there are any other issues, feel free to ask! |
Now firefox is giving you headaches.
|
Consider trying with unsafeWindow or override CSP with some magic. |
Or consider using API provided by userscript manager like "GM_addElement" 佛 |
这个脚本对 CSP 严格的网站无能为力,所以一开始就放弃支持这些网站了。 刚刚尝试了使用 “GM_addElement” 添加元素。用它确实可以成功添加元素,但是当改变 script, style, img 元素的 href 或 src 属性值时,依然会报 CSP 错误。 “GM_addElement” 至少有些帮助,所以用上它发布了 0.2.4 版本。 还有,Greasemonkey 不支持 “GM_addElement” API。 |
那还挺恐怖的😂 实际上我用的是violentmonkey🌚 |
Due to how firefox handle document-start,the test facility of the script won't work.
See greasemonkey/greasemonkey#2515
Here my own modified one that currently works.
The text was updated successfully, but these errors were encountered: