remove custom forum style, add twitter shortcut

This commit is contained in:
NunoSempere 2024-03-15 17:55:38 -03:00
parent 7eaa3fc29b
commit 8a091dd1bf
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,7 @@ int shortcut_expand(const char* uri, char* output)
strcpy(tmp_output, output); strcpy(tmp_output, output);
char* shortcuts[] = { char* shortcuts[] = {
"!x",
"!fnf", "!fnf",
"!fnc", "!fnc",
"!hn", "!hn",
@ -38,6 +39,7 @@ int shortcut_expand(const char* uri, char* output)
}; };
char* expansions[] = { char* expansions[] = {
"https://twitter.com"
"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",

View File

@ -3,6 +3,7 @@
var styles = null; var styles = null;
if (document.domain == "forum.effectivealtruism.org") { if (document.domain == "forum.effectivealtruism.org") {
/*
styles = ` styles = `
.Layout-main { .Layout-main {
margin-left: 100px; margin-left: 100px;
@ -23,6 +24,7 @@ if (document.domain == "forum.effectivealtruism.org") {
styleSheet.innerText = styles; styleSheet.innerText = styles;
document.head.appendChild(styleSheet); document.head.appendChild(styleSheet);
console.log("Style changed"); console.log("Style changed");
*/
} }
if (document.domain == "mail.proton.me") { if (document.domain == "mail.proton.me") {