Fix Miscellaneous features being enabled erroneously.
This commit is contained in:
parent
c05fba3f3f
commit
3b7f73b9ac
|
@ -163,36 +163,38 @@ async function initialize() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (miscEnabled.value.has(MiscellaneousFeature.CommentAnchorFix)) {
|
if (enabledFeatures.value.has(Feature.Miscellaneous)) {
|
||||||
runCommentAnchorFixFeature();
|
if (miscEnabled.value.has(MiscellaneousFeature.CommentAnchorFix)) {
|
||||||
}
|
runCommentAnchorFixFeature();
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
miscEnabled.value.has(MiscellaneousFeature.GroupListSubscribeButtons) &&
|
miscEnabled.value.has(MiscellaneousFeature.GroupListSubscribeButtons) &&
|
||||||
isLoggedIn
|
isLoggedIn
|
||||||
) {
|
) {
|
||||||
runGroupListSubscribeButtonFeature();
|
runGroupListSubscribeButtonFeature();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
miscEnabled.value.has(MiscellaneousFeature.HideOwnUsername) &&
|
miscEnabled.value.has(MiscellaneousFeature.HideOwnUsername) &&
|
||||||
isLoggedIn
|
isLoggedIn
|
||||||
) {
|
) {
|
||||||
runHideOwnUsernameFeature();
|
runHideOwnUsernameFeature();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
miscEnabled.value.has(MiscellaneousFeature.TopicInfoIgnore) &&
|
miscEnabled.value.has(MiscellaneousFeature.TopicInfoIgnore) &&
|
||||||
isLoggedIn
|
isLoggedIn
|
||||||
) {
|
) {
|
||||||
runTopicInfoIgnore();
|
runTopicInfoIgnore();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
miscEnabled.value.has(MiscellaneousFeature.UnignoreAllButton) &&
|
miscEnabled.value.has(MiscellaneousFeature.UnignoreAllButton) &&
|
||||||
isLoggedIn
|
isLoggedIn
|
||||||
) {
|
) {
|
||||||
runUnignoreAllButtonFeature();
|
runUnignoreAllButtonFeature();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insert a placeholder at the end of the body first, then render the rest
|
// Insert a placeholder at the end of the body first, then render the rest
|
||||||
|
|
Loading…
Reference in New Issue