$('document').ready(function () {
if(active_page == 'catalog') {
var getThreadInfo = function() {
var $post = $(this)
if ($post.attr('src').split('.')[$post.attr('src').split('.').length-1] == 'jpg') {
var url = $post.parent().attr('href').replace('html','json');
var newImage = ''
var threadJson = $.getJSON(url)
.done(function ( json) {
if (json.posts[0].ext === '.gif') {
newImage = '
https://' + window.location.host + '/' + board_name +'/src/' + json.posts[0].tim + json.posts[0].ext
$post.attr('src', newImage);
}
});
}
Post too long. Click here to view the full text.