Skip to content

Commit

Permalink
Update archives
Browse files Browse the repository at this point in the history
  • Loading branch information
loadletter committed Apr 18, 2021
1 parent 9571b2c commit 5545579
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 29 deletions.
49 changes: 25 additions & 24 deletions 4chan_x.user.js
Expand Up @@ -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':
Expand All @@ -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':
Expand All @@ -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;
Expand All @@ -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) {
Expand Down Expand Up @@ -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':
Expand All @@ -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;
Expand Down Expand Up @@ -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':
Expand All @@ -5395,28 +5395,32 @@
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':
case 'vip':
case 'y':
url = Redirect.path('https://boards.fireden.net', 'foolfuuka', data);
break;
case 'qb':
case 'v':
case 'vg':
case 'vm':
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion archives/generate_redirector.py
Expand Up @@ -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:
Expand Down
12 changes: 8 additions & 4 deletions archives/priorities.json
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -56,8 +58,10 @@
"sci": 10,
"t": 16,
"tg": 10,
"r9k": 23,
"vip": 24,
"vr": 23,
"vt": 4,
"w": 4,
"wg": 4
}
Expand Down

0 comments on commit 5545579

Please sign in to comment.