more
This commit is contained in:
16
contrib/js/nntpchan/img-hide.js
Normal file
16
contrib/js/nntpchan/img-hide.js
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
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);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user