From 774edad77c6d0b661a3c929c9eda3abdade7e537 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 5 Sep 2012 03:38:59 +0200 Subject: [PATCH] Redirect dead images to either full size archived images or at least their archived post+thumbnail. --- 4chan_x.user.js | 3 +++ script.coffee | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 594cbcb84..4c8d34686 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1043,11 +1043,14 @@ image: function(board, filename) { switch (board) { case 'a': + case 'co': case 'jp': case 'm': case 'q': case 'sp': case 'tg': + case 'tv': + case 'v': case 'vg': case 'wsg': return "//archive.foolz.us/" + board + "/full_image/" + filename; diff --git a/script.coffee b/script.coffee index 540da4509..eb009002e 100644 --- a/script.coffee +++ b/script.coffee @@ -929,7 +929,7 @@ Redirect = image: (board, filename) -> # Do not use g.BOARD, the image url can originate from a cross-quote. switch board - when 'a', 'jp', 'm', 'q', 'sp', 'tg', 'vg', 'wsg' + when 'a', 'co', 'jp', 'm', 'q', 'sp', 'tg', 'tv', 'v', 'vg', 'wsg' "//archive.foolz.us/#{board}/full_image/#{filename}" when 'u' "//nsfw.foolz.us/#{board}/full_image/#{filename}"