Auto-gif should work with spoiler revealed GIFs.
This commit is contained in:
parent
e2051be615
commit
ebbdb57fd3
@ -3339,7 +3339,7 @@
|
|||||||
var src, thumb;
|
var src, thumb;
|
||||||
if (root.hidden || !(thumb = $('img[md5]', root))) return;
|
if (root.hidden || !(thumb = $('img[md5]', root))) return;
|
||||||
src = thumb.parentNode.href;
|
src = thumb.parentNode.href;
|
||||||
if (/gif$/.test(src) && !/^Spoiler/.test(thumb.alt)) return thumb.src = src;
|
if (/gif$/.test(src) && !/spoiler/.test(src)) return thumb.src = src;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3549,9 +3549,9 @@
|
|||||||
if (conf['Anonymize']) anonymize.init();
|
if (conf['Anonymize']) anonymize.init();
|
||||||
if (conf['Time Formatting']) Time.init();
|
if (conf['Time Formatting']) Time.init();
|
||||||
if (conf['Sauce']) sauce.init();
|
if (conf['Sauce']) sauce.init();
|
||||||
|
if (conf['Reveal Spoilers']) revealSpoilers.init();
|
||||||
if (conf['Image Auto-Gif']) imgGif.init();
|
if (conf['Image Auto-Gif']) imgGif.init();
|
||||||
if (conf['Image Hover']) imgHover.init();
|
if (conf['Image Hover']) imgHover.init();
|
||||||
if (conf['Reveal Spoilers']) revealSpoilers.init();
|
|
||||||
if (conf['Report Button']) reportButton.init();
|
if (conf['Report Button']) reportButton.init();
|
||||||
if (conf['Quote Inline']) quoteInline.init();
|
if (conf['Quote Inline']) quoteInline.init();
|
||||||
if (conf['Quote Preview']) quotePreview.init();
|
if (conf['Quote Preview']) quotePreview.init();
|
||||||
|
|||||||
@ -2630,7 +2630,7 @@ imgGif =
|
|||||||
node: (root) ->
|
node: (root) ->
|
||||||
return if root.hidden or !thumb = $ 'img[md5]', root
|
return if root.hidden or !thumb = $ 'img[md5]', root
|
||||||
src = thumb.parentNode.href
|
src = thumb.parentNode.href
|
||||||
if /gif$/.test(src) and !/^Spoiler/.test thumb.alt
|
if /gif$/.test(src) and !/spoiler/.test src
|
||||||
thumb.src = src
|
thumb.src = src
|
||||||
|
|
||||||
imgExpand =
|
imgExpand =
|
||||||
@ -2811,15 +2811,15 @@ Main =
|
|||||||
if conf['Sauce']
|
if conf['Sauce']
|
||||||
sauce.init()
|
sauce.init()
|
||||||
|
|
||||||
|
if conf['Reveal Spoilers']
|
||||||
|
revealSpoilers.init()
|
||||||
|
|
||||||
if conf['Image Auto-Gif']
|
if conf['Image Auto-Gif']
|
||||||
imgGif.init()
|
imgGif.init()
|
||||||
|
|
||||||
if conf['Image Hover']
|
if conf['Image Hover']
|
||||||
imgHover.init()
|
imgHover.init()
|
||||||
|
|
||||||
if conf['Reveal Spoilers']
|
|
||||||
revealSpoilers.init()
|
|
||||||
|
|
||||||
if conf['Report Button']
|
if conf['Report Button']
|
||||||
reportButton.init()
|
reportButton.init()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user