evazion / translate-pixiv-tags

MIT License
35 stars 6 forks source link

Image width is shown twice for post previews #25

Closed BrokenEagle closed 5 years ago

BrokenEagle commented 5 years ago

https://github.com/evazion/translate-pixiv-tags/blob/f3887888f3411350dd83a33857acac0ed57d4917/translate-pixiv-tags.user.js#L1170-L1172

Instead it should be width x height.

    const img_size = [post.file_size, post.image_width, post.image_height].every(_.isFinite)
                    ? `${formatBytes(post.file_size)} (${post.image_width}x${post.image_height})`
                    : "";