remove custom forum style, add twitter shortcut
This commit is contained in:
parent
7eaa3fc29b
commit
8a091dd1bf
|
@ -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",
|
||||||
|
|
|
@ -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") {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user