From 7e3d36036425e6b270442256c590a00b4db1419c Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 31 Oct 2011 20:38:42 -0700 Subject: [PATCH] sort by domain --- 4chan_x.user.js | 18 +++++++++--------- script.coffee | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 00123f105..014937655 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2719,15 +2719,6 @@ redirect = function() { var url; switch (g.BOARD) { - case 'diy': - case 'g': - case 'pol': - case 'sci': - url = "http://archive.installgentoo.net/" + g.BOARD + "/thread/" + g.THREAD_ID; - break; - case 'lit': - url = "http://archive.gentoomen.org/cgi-board.pl/" + g.BOARD + "/thread/" + g.THREAD_ID; - break; case 'a': case 'jp': case 'm': @@ -2735,6 +2726,15 @@ case 'tv': url = "http://archive.foolz.us/" + g.BOARD + "/thread/" + g.THREAD_ID; break; + case 'lit': + url = "http://archive.gentoomen.org/cgi-board.pl/" + g.BOARD + "/thread/" + g.THREAD_ID; + break; + case 'diy': + case 'g': + case 'pol': + case 'sci': + url = "http://archive.installgentoo.net/" + g.BOARD + "/thread/" + g.THREAD_ID; + break; case '3': case 'adv': case 'an': diff --git a/script.coffee b/script.coffee index f411ee56b..33ae2601f 100644 --- a/script.coffee +++ b/script.coffee @@ -2029,12 +2029,12 @@ Favicon = redirect = -> switch g.BOARD - when 'diy', 'g', 'pol', 'sci' - url = "http://archive.installgentoo.net/#{g.BOARD}/thread/#{g.THREAD_ID}" - when 'lit' - url = "http://archive.gentoomen.org/cgi-board.pl/#{g.BOARD}/thread/#{g.THREAD_ID}" when 'a', 'jp', 'm', 'tg', 'tv' url = "http://archive.foolz.us/#{g.BOARD}/thread/#{g.THREAD_ID}" + when 'lit' + url = "http://archive.gentoomen.org/cgi-board.pl/#{g.BOARD}/thread/#{g.THREAD_ID}" + when 'diy', 'g', 'pol', 'sci' + url = "http://archive.installgentoo.net/#{g.BOARD}/thread/#{g.THREAD_ID}" when '3', 'adv', 'an', 'ck', 'co', 'fa', 'fit', 'int', 'k', 'mu', 'n', 'o', 'p', 'po', 'soc', 'sp', 'toy', 'trv', 'v', 'vp', 'x' url = "http://archive.no-ip.org/#{g.BOARD}/thread/#{g.THREAD_ID}" else