The name explained it
< 脚本Show and reload broken images的反馈
This script can only affect Firefox (See https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-force-broken-image-icon), so if something goes wrong in Chrome, it probably is not caused by this script.
Can you make it compatible for chrome as well?
Thanks for sharing. I hope it will be helpful for too many people that are searching for this topic.website content writing services india
Chrome doesn't provide a way to show broken icon. There is already an open issue for this.
Before the bug is fixed in chrome, I suggest to apply this CSS style with userstyle manager (e.g. stylus):
img {font-size: 0;}
img:before {
content: "Broken Image";
font-size: 16px;
border: 1px solid;
}
Demo.
Or, apply this to match Firefox behavior:
img:not([alt]):before {
content: "Broken Image";
font-size: 16px;
border: 1px solid;
}
Demo.
Thank you. This is better than nothing.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
Not working on chromium
It stopped working on chromium (61.0.3163.100) recently. The placeholder doesn't show up anymore.