From 8a091dd1bff59bc7baa53da59666e2a5baece943 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Fri, 15 Mar 2024 17:55:38 -0300 Subject: remove custom forum style, add twitter shortcut --- plugins/shortcuts/shortcuts.c | 2 ++ plugins/style/style.js | 2 ++ 2 files changed, 4 insertions(+) (limited to 'plugins') diff --git a/plugins/shortcuts/shortcuts.c b/plugins/shortcuts/shortcuts.c index 1643b25..369768a 100644 --- a/plugins/shortcuts/shortcuts.c +++ b/plugins/shortcuts/shortcuts.c @@ -31,6 +31,7 @@ int shortcut_expand(const char* uri, char* output) strcpy(tmp_output, output); char* shortcuts[] = { + "!x", "!fnf", "!fnc", "!hn", @@ -38,6 +39,7 @@ int shortcut_expand(const char* uri, char* output) }; char* expansions[] = { + "https://twitter.com" "https://forum.nunosempere.com/frontpage", "https://forum.nunosempere.com/comments", "https://news.ycombinator.com", diff --git a/plugins/style/style.js b/plugins/style/style.js index c9e3f83..0fba49f 100644 --- a/plugins/style/style.js +++ b/plugins/style/style.js @@ -3,6 +3,7 @@ var styles = null; if (document.domain == "forum.effectivealtruism.org") { + /* styles = ` .Layout-main { margin-left: 100px; @@ -23,6 +24,7 @@ if (document.domain == "forum.effectivealtruism.org") { styleSheet.innerText = styles; document.head.appendChild(styleSheet); console.log("Style changed"); + */ } if (document.domain == "mail.proton.me") { -- cgit v1.2.3