Remove #fedilove from all messages? + Small few improvements:

* Redirect to / when logged out
* Replace #fedilove on all messages to nothing
* Improve buttons by default
This commit is contained in:
Bofh 2021-01-09 00:19:03 +01:00
parent c1cb2f212e
commit 7f5af52e20
3 changed files with 12 additions and 1 deletions

View File

@ -84,7 +84,7 @@ export async function logOutOfInstance (instanceName, message) {
const { enableGrayscale } = store.get() const { enableGrayscale } = store.get()
switchToTheme(instanceThemes[newInstance], enableGrayscale) switchToTheme(instanceThemes[newInstance], enableGrayscale)
/* no await */ database.clearDatabaseForInstance(instanceName) /* no await */ database.clearDatabaseForInstance(instanceName)
goto('/settings/instances') window.location.href = '/';
} }
function setStoreVerifyCredentials (instanceName, thisVerifyCredentials) { function setStoreVerifyCredentials (instanceName, thisVerifyCredentials) {

View File

@ -3,6 +3,7 @@ import { massageStatusPlainText } from './massageStatusPlainText'
export function massageUserText (text, emojis, $autoplayGifs) { export function massageUserText (text, emojis, $autoplayGifs) {
text = text || '' text = text || ''
text = text.replace(/<a[^<>]+>.*?#.*?>fedilove<.*?<\/a>/gi, '');
text = emojifyText(text, emojis, $autoplayGifs) text = emojifyText(text, emojis, $autoplayGifs)
text = massageStatusPlainText(text) text = massageStatusPlainText(text)
return text return text

View File

@ -87,6 +87,16 @@ nav#main-nav > ul.main-nav-ul {
} }
div.modal-dialog {
div.close-dialog-button-wrapper {
display: none !important;
}
}
button {
border: none !important;
}
div.main-content { background: var(--main-bg); } div.main-content { background: var(--main-bg); }
div.no-script { display: none; } div.no-script { display: none; }