Perhaps you haven't noticed yet, but Gecko-Browsers like K-Meleon tend to
completely hide missing images from you, IF their dimensions are not given in the page code, so depending on your settings, you may not even get the idea you might be missing an image or anything at all there. This goes for example for all the images posted in this forum, and most other forums too, and normal sites too of course, but there it depends on the webmaster, if he has written the image size into the code or not.
Here is a fix, only for KM1.6!
This is basically a far smaller version of my macro for KM1.5.x, which just isn't quite finished yet. But in KM1.6 there is a new pseudo-class introduced by Gecko, which makes that no macro is needed anymore, only a bit of CSS code.
You may add this code either to your
AdBlock.css in your profile folder, that sheet can be toggled on/off while the browser keeps running.
If you prefer you can alternatively add that stuff to your userContent.css, but then changes require a browser restart, and I'm not sure at all if it still works there if you manually switch on the "Block-like placeholders" in the Preferences for images. Sounds paradox, but they should stay off for this fix.
Tested on these pages:
KM-Forum
https://bug58646.bugzilla.mozilla.org/attachment.cgi?id=72516
http://lab.gmtplusone.com/image-placeholder/
http://mrs260.fenfanfair.com/folder/scorpio.html
/* =============== BROKEN IMAGES - show all in KM1.6 (Gecko 1.9) =================
Recommended prefs in F2 > Page Display > Images: 1) Icons ON 3) Placeholders OFF!!
The "placeholder" pref decides whether you can see at least the Alt-Text, if an image has no size!
Add this code to Edit > Configuration > AdBlock Stylesheet.
Toggle AdBlock sheet on and off in Tools > Privacy. Test it on KM-forum or on these pages:
https://bug58646.bugzilla.mozilla.org/attachment.cgi?id=72516
http://lab.gmtplusone.com/image-placeholder/
http://mrs260.fenfanfair.com/folder/scorpio.html */
/* Image size is known from the page code? Show that real size as placeholder: */
img[width]:-moz-broken ,
img[width]:-moz-user-disabled {
-moz-force-broken-image-icon: 1 !important;
}
/* Image size unknown? Show no icon but Alt-Text. Put a little border around it as marker */
img:-moz-broken:not([width]),
img:-moz-user-disabled:not([width]) {
-moz-force-broken-image-icon: 0 !important;
border: 1px solid !important;
border-color: green gold orange blue !important;
}
/* Image size unknown, and no Alt-Text either? Show a 24px placeholder, keep border: */
img:-moz-broken:not([width]):not([alt]),
img:-moz-user-disabled:not([width]):not([alt]) ,
img[alt=""]:-moz-broken:not([width]) ,
img[alt=""]:-moz-user-disabled:not([width]) {
-moz-force-broken-image-icon: 1 !important;
width: 24px !important;
height: 24px !important;
}
/* ================================ */
Hmm... perhaps I'll still put it into a litte macro, with a menu toggle, will see.
It IS a bit abusing the adblock-sheet here, so that may be confusing to less experienced users
Edited 2 time(s). Last edit at 08/27/2010 06:13AM by siria.