add anna's archive shortcut

This commit is contained in:
NunoSempere 2024-03-23 11:14:29 -03:00
parent 8707adb983
commit b4c3e3a0e3

View File

@ -31,21 +31,24 @@ int shortcut_expand(const char* uri, char* output)
strcpy(tmp_output, output); strcpy(tmp_output, output);
char* shortcuts[] = { char* shortcuts[] = {
"!x", "!aa",
"!blog", "!blog",
"!fnf", "!fnf",
"!fnc", "!fnc",
"!h"
"!hn", "!hn",
"!hnb" "!hnb"
"!x",
}; };
char* expansions[] = { char* expansions[] = {
"https://twitter.com", "https://annas-archive.org",
"https://nunosempere.com/blog", "https://nunosempere.com/blog",
"https://forum.nunosempere.com/frontpage", "https://forum.nunosempere.com/frontpage",
"https://forum.nunosempere.com/comments", "https://forum.nunosempere.com/comments",
"https://news.ycombinator.com", "https://news.ycombinator.com",
"https://news.ycombinator.com/best", "https://news.ycombinator.com/best",
"https://twitter.com",
}; };
// len = sizeof(shortcuts) / sizeof(shortcuts[0]); // len = sizeof(shortcuts) / sizeof(shortcuts[0]);