Show and reload broken images

The name explained it

当前为 2021-02-17 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
eight
评分
0 0 0
版本
2.2.1
创建于
2014-05-11
更新于
2021-02-17
大小
1.0 KB
许可证
MIT
适用于
所有网站

Show and Reload Broken Images

This script will force Firefox to show broken image icon when image failed loading, wether the image has alt attribute. You can press Alt+R to reload the broken images.

這個Script會強制Firefox顯示圖片載入失敗的圖示,即使圖片有alt屬性。 按Alt+R會重新載入失敗的圖片。

Example

Image without alt. you should see the icon by default.
<img src="https://i.am.broken">

Image with blank alt. By the default, you will see nothing.
<img alt="" src="https://i.am.broken">

Image with alt attribute. You should see the text in alt attribute.
<img alt="There used to be a image, but now it is broken" src="https://i.am.broken">

before

After installing the script:

after

Bookmarklet

If you just want to reload broken images, you can use the following code as the bookmarklet:

javascript:void(!function()%7Bfor(const%20o%20of%20document.images)o.complete%26%26!o.matches(%22%5Bsrc%5D%3A-moz-broken%22)%7C%7C(o.src%2B%3D%22%23%22)%7D()%3B)

Changelog

  • 2.2.1 (Apr 4, 2016)
    • Hide icon if !image.src.