diff --git a/4chan_x.user.js b/4chan_x.user.js index 9aa513a0b..113469b95 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -4005,6 +4005,16 @@ img[md5], img[md5] + img {\ .presto > .fitwidth img[md5] + img {\ width: 100%;\ }\ +/* revealed spoilers do not have height/width,\ + this fixed "expanded" auto-gifs */\ +img[md5] {\ + max-height: 126px;\ + max-width: 126px;\ +}\ +.op > a > img[md5] {\ + max-height: 251px;\ + max-width: 251px;\ +}\ \ #qr, #qp, #updater, #stats, #ihover, #overlay, #navlinks {\ position: fixed;\ diff --git a/script.coffee b/script.coffee index c9a59ba9f..ba597d389 100644 --- a/script.coffee +++ b/script.coffee @@ -3334,6 +3334,16 @@ img[md5], img[md5] + img { .presto > .fitwidth img[md5] + img { width: 100%; } +/* revealed spoilers do not have height/width, + this fixed "expanded" auto-gifs */ +img[md5] { + max-height: 126px; + max-width: 126px; +} +.op > a > img[md5] { + max-height: 251px; + max-width: 251px; +} #qr, #qp, #updater, #stats, #ihover, #overlay, #navlinks { position: fixed;