1
Fork 0

Fix Miscellaneous features being enabled erroneously.

This commit is contained in:
Bauke 2023-10-07 13:41:59 +02:00
parent c05fba3f3f
commit 3b7f73b9ac
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 28 additions and 26 deletions

View File

@ -163,36 +163,38 @@ async function initialize() {
);
}
if (miscEnabled.value.has(MiscellaneousFeature.CommentAnchorFix)) {
runCommentAnchorFixFeature();
}
if (enabledFeatures.value.has(Feature.Miscellaneous)) {
if (miscEnabled.value.has(MiscellaneousFeature.CommentAnchorFix)) {
runCommentAnchorFixFeature();
}
if (
miscEnabled.value.has(MiscellaneousFeature.GroupListSubscribeButtons) &&
isLoggedIn
) {
runGroupListSubscribeButtonFeature();
}
if (
miscEnabled.value.has(MiscellaneousFeature.GroupListSubscribeButtons) &&
isLoggedIn
) {
runGroupListSubscribeButtonFeature();
}
if (
miscEnabled.value.has(MiscellaneousFeature.HideOwnUsername) &&
isLoggedIn
) {
runHideOwnUsernameFeature();
}
if (
miscEnabled.value.has(MiscellaneousFeature.HideOwnUsername) &&
isLoggedIn
) {
runHideOwnUsernameFeature();
}
if (
miscEnabled.value.has(MiscellaneousFeature.TopicInfoIgnore) &&
isLoggedIn
) {
runTopicInfoIgnore();
}
if (
miscEnabled.value.has(MiscellaneousFeature.TopicInfoIgnore) &&
isLoggedIn
) {
runTopicInfoIgnore();
}
if (
miscEnabled.value.has(MiscellaneousFeature.UnignoreAllButton) &&
isLoggedIn
) {
runUnignoreAllButtonFeature();
if (
miscEnabled.value.has(MiscellaneousFeature.UnignoreAllButton) &&
isLoggedIn
) {
runUnignoreAllButtonFeature();
}
}
// Insert a placeholder at the end of the body first, then render the rest