Ignore randomized spoilers in HTML building test.

This commit is contained in:
ccd0 2014-12-22 18:43:44 -08:00
parent f104e39a87
commit f095feeb03

View File

@ -15,6 +15,7 @@ class Post
el.removeAttribute 'rel'
for el in $$ 'img[src]', root2
el.src = el.src.replace /^(\w+:\/\/)[0-2](\.t\.4cdn\.org\/)/, '$10$2'
el.src = el.src.replace /(spoiler-\w+)\d(\.png)$/, '$11$2'
Fourchan.code.call nodes: comment: $ '.postMessage', root2
for el in $$ 'pre[style=""]', root2
el.removeAttribute 'style'