Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/js/nntpchan/img-hide.js
Jeff Becker 579970c079 more
2016-12-26 10:11:29 -05:00

17 lines
357 B
JavaScript

function inject_imghide(elem) {
elem.onerror = function() {
$(elem).fadeOut(200, function() {
elem.remove();
});
}
}
onready(function(){
var imgs = document.getElementsByClassName("thumbnail");
for (var idx = 0; idx < imgs.length; idx ++) {
var elem = imgs[idx];
inject_imghide(elem);
}
});