Return asap.
This commit is contained in:
parent
032374911c
commit
eeeecc7d93
@ -1859,7 +1859,7 @@
|
|||||||
init: function() {
|
init: function() {
|
||||||
return g.callbacks.push(function(root) {
|
return g.callbacks.push(function(root) {
|
||||||
var board, img, nb, _, _ref;
|
var board, img, nb, _, _ref;
|
||||||
if (root.className === 'inline' || !(img = $('img[alt^=Spoiler]', root))) {
|
if (!(img = $('img[alt^=Spoiler]', root) || root.className === 'inline')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
img.removeAttribute('height');
|
img.removeAttribute('height');
|
||||||
|
|||||||
@ -1486,7 +1486,7 @@ sauce =
|
|||||||
revealSpoilers =
|
revealSpoilers =
|
||||||
init: ->
|
init: ->
|
||||||
g.callbacks.push (root) ->
|
g.callbacks.push (root) ->
|
||||||
return if root.className is 'inline' or not img = $ 'img[alt^=Spoiler]', root
|
return if not img = $('img[alt^=Spoiler]', root) or root.className is 'inline'
|
||||||
img.removeAttribute 'height'
|
img.removeAttribute 'height'
|
||||||
img.removeAttribute 'width'
|
img.removeAttribute 'width'
|
||||||
[_, board, nb] = img.parentNode.href.match /(\w+)\/src\/(\d+)/
|
[_, board, nb] = img.parentNode.href.match /(\w+)\/src\/(\d+)/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user