Nowe gify się nie animują bo generują thumbnaile w jpg i tak już zostanie.
Site-wide ramka taka jak mamy tutaj przy webmach, wklejasz to w user CSS:
a[href$=".gif"] img.post-image {
border: 2px solid #FF9100;
padding: 2px;
}Site-wide podmiana thumbnaili na właściwe gify, wklejasz to w user JS:
$('document').ready(function () {
var animateGif = function () {
if ($(this).children('img.post-image').attr('src') != '/static/spoiler.png')
$(this).children('img.post-image').attr('src', $(this).attr('href'));
}
$('div.file').children('a[href*=".gif"]').each(animateGif);
$(document).on('new_post', function (e, post) {
$(post).find('div.file').children('a[href*=".gif"]').each(animateGif);
});
});Post last edited at 2015-02-01 19:36:33