From f095feeb03e0576dffc3d68489d192b9714d6992 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 22 Dec 2014 18:43:44 -0800 Subject: [PATCH] Ignore randomized spoilers in HTML building test. --- src/General/lib/post.class | 1 + 1 file changed, 1 insertion(+) diff --git a/src/General/lib/post.class b/src/General/lib/post.class index 13b67b4a3..1a6777c6e 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -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'