From 55455799064cfbcef4e8cbe4baf2647e5a59eebc Mon Sep 17 00:00:00 2001 From: loadletter Date: Sun, 18 Apr 2021 19:28:58 +0200 Subject: [PATCH] Update archives --- 4chan_x.user.js | 49 +++++++++++++++++---------------- archives/generate_redirector.py | 2 +- archives/priorities.json | 12 +++++--- 3 files changed, 34 insertions(+), 29 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 3e3da6c..38b4d48 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -5175,14 +5175,11 @@ case 'vmg': case 'vp': case 'vst': + case 'vt': case 'w': case 'wg': case 'wsr': return "https://archive.nyafuu.org/" + board + "/full_image/" + filename; - case 'cgl': - case 'g': - case 'mu': - return "https://archive.rebeccablacktech.com/" + board + "/full_image/" + filename; case '3': case 'biz': case 'ck': @@ -5197,21 +5194,24 @@ case 'a': case 'aco': case 'an': + case 'cgl': case 'co': case 'd': case 'fit': + case 'g': case 'gif': case 'his': case 'int': case 'k': case 'm': case 'mlp': + case 'mu': case 'q': case 'qa': case 'r9k': case 'trash': - case 'wsg': case 'vr': + case 'wsg': return "//desuarchive.org/" + board + "/full_image/" + filename; case 'cm': case 'vip': @@ -5221,11 +5221,9 @@ case 'cock': case 'fap': case 'fitlit': - case 'gd': case 'mtv': case 'outsoc': - case 'po': - case 'qst': + case 'qb': case 'spa': case 'vint': return "//archived.moe/" + board + "/full_image/" + filename; @@ -5244,6 +5242,13 @@ return "//archiveofsins.com/" + board + "/full_image/" + filename; case 'vrpg': return "https://www.tokyochronos.net/" + board + "/full_image/" + filename; + case 'asp': + case 'pw': + case 'v': + case 'vg': + case 'vm': + case 'xs': + return "//archive.wakarimasen.moe/" + board + "/full_image/" + filename; } }, post: function(board, postID) { @@ -5273,36 +5278,38 @@ case 'vmg': case 'vp': case 'vst': + case 'vt': case 'w': case 'wg': case 'wsr': return "https://archive.nyafuu.org/_/api/chan/post/?board=" + board + "&num=" + postID; - case 'cgl': - case 'g': - case 'mu': - return "https://archive.rebeccablacktech.com/_/api/chan/post/?board=" + board + "&num=" + postID; case 'a': case 'aco': case 'an': + case 'cgl': case 'co': case 'd': case 'fit': + case 'g': case 'gif': case 'his': case 'int': case 'k': case 'm': case 'mlp': + case 'mu': case 'q': case 'qa': case 'r9k': case 'trash': + case 'vr': case 'wsg': return "//desuarchive.org/_/api/chan/post/?board=" + board + "&num=" + postID; case 'cm': case 'vip': case 'y': return "https://boards.fireden.net/_/api/chan/post/?board=" + board + "&num=" + postID; + case 'qb': case 'v': case 'vg': case 'vm': @@ -5311,15 +5318,12 @@ case 'hm': case 'qst': return "https://archive.b-stats.org/_/api/chan/post/?board=" + board + "&num=" + postID; - case 'asp': case 'can': case 'cock': case 'fap': case 'fitlit': - case 'gd': case 'mtv': case 'outsoc': - case 'po': case 'spa': case 'vint': return "//archived.moe/_/api/chan/post/?board=" + board + "&num=" + postID; @@ -5370,16 +5374,12 @@ case 'vmg': case 'vp': case 'vst': + case 'vt': case 'w': case 'wg': case 'wsr': url = Redirect.path('https://archive.nyafuu.org', 'foolfuuka', data); break; - case 'cgl': - case 'g': - case 'mu': - url = Redirect.path('https://archive.rebeccablacktech.com', 'foolfuuka', data); - break; case '3': case 'biz': case 'ck': @@ -5395,21 +5395,24 @@ case 'a': case 'aco': case 'an': + case 'cgl': case 'co': case 'd': case 'fit': + case 'g': case 'gif': case 'his': case 'int': case 'k': case 'm': case 'mlp': + case 'mu': case 'q': case 'qa': case 'r9k': case 'trash': - case 'wsg': case 'vr': + case 'wsg': url = Redirect.path('//desuarchive.org', 'foolfuuka', data); break; case 'cm': @@ -5417,6 +5420,7 @@ case 'y': url = Redirect.path('https://boards.fireden.net', 'foolfuuka', data); break; + case 'qb': case 'v': case 'vg': case 'vm': @@ -5427,15 +5431,12 @@ case 'qst': url = Redirect.path('https://archive.b-stats.org', 'foolfuuka', data); break; - case 'asp': case 'can': case 'cock': case 'fap': case 'fitlit': - case 'gd': case 'mtv': case 'outsoc': - case 'po': case 'spa': case 'vint': url = Redirect.path('//archived.moe', 'foolfuuka', data); diff --git a/archives/generate_redirector.py b/archives/generate_redirector.py index 9806322..670c031 100644 --- a/archives/generate_redirector.py +++ b/archives/generate_redirector.py @@ -40,7 +40,7 @@ ARCHIVES_JSON = os.path.join(os.path.dirname(os.path.abspath(__file__)), "archives.json") PRIORITIES_JSON = os.path.join(os.path.dirname(os.path.abspath(__file__)), "priorities.json") -ARCHIVE_HIDDEN = [29,32] +ARCHIVE_HIDDEN = [29,32,35] def jsonloadf(filename): with open(filename) as f: diff --git a/archives/priorities.json b/archives/priorities.json index 994f81e..f49efe0 100644 --- a/archives/priorities.json +++ b/archives/priorities.json @@ -6,11 +6,11 @@ "c": 4, "cm": 24, "co": 23, - "cgl": 8, + "cgl": 23, "d": 5, "e": 4, "f": 3, - "g": 8, + "g": 23, "h": 15, "hm": 28, "i": 5, @@ -26,11 +26,13 @@ "t": 16, "tg": 10, "trash": 23, + "r9k": 23, "v": 24, "vip": 24, "vr": 23, "vrpg": 25, "vst": 4, + "vt": 4, "vmg": 4, "vp": 4, "w": 4, @@ -43,10 +45,10 @@ "bant": 4, "c": 4, "co": 23, - "cgl": 8, + "cgl": 23, "d": 5, "e": 4, - "g": 8, + "g": 23, "i": 5, "ic": 10, "jp": 10, @@ -56,8 +58,10 @@ "sci": 10, "t": 16, "tg": 10, + "r9k": 23, "vip": 24, "vr": 23, + "vt": 4, "w": 4, "wg": 4 }