2023-06-29 16:44:30 +00:00
|
|
|
/**
|
|
|
|
* Keys of feature names used in WebExtension storage.
|
|
|
|
*/
|
2023-06-27 11:51:04 +00:00
|
|
|
export enum Feature {
|
|
|
|
AnonymizeUsernames = "anonymize-usernames",
|
|
|
|
Autocomplete = "autocomplete",
|
|
|
|
BackToTop = "back-to-top",
|
|
|
|
Debug = "debug",
|
2023-06-30 09:21:39 +00:00
|
|
|
HideTopics = "hide-topics",
|
2023-06-27 11:51:04 +00:00
|
|
|
HideVotes = "hide-votes",
|
|
|
|
JumpToNewComment = "jump-to-new-comment",
|
|
|
|
MarkdownToolbar = "markdown-toolbar",
|
2023-07-11 17:07:13 +00:00
|
|
|
Miscellaneous = "miscellaneous-features",
|
2023-06-27 11:51:04 +00:00
|
|
|
ThemedLogo = "themed-logo",
|
|
|
|
UserLabels = "user-labels",
|
|
|
|
UsernameColors = "username-colors",
|
|
|
|
}
|
|
|
|
|
2023-06-29 16:44:30 +00:00
|
|
|
/**
|
2023-07-11 17:07:13 +00:00
|
|
|
* Keys of miscellaneous feature names.
|
|
|
|
*/
|
|
|
|
export enum MiscellaneousFeature {
|
|
|
|
CommentAnchorFix = "comment-anchor-fix",
|
2023-07-14 18:10:08 +00:00
|
|
|
GroupListSubscribeButtons = "group-list-subscribe-buttons",
|
2023-07-13 14:16:37 +00:00
|
|
|
TopicInfoIgnore = "topic-info-ignore",
|
2023-07-16 12:03:20 +00:00
|
|
|
UnignoreAllButton = "unignore-all-button",
|
2023-07-11 17:07:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Keys of data stored in WebExtension storage.
|
2023-06-29 16:44:30 +00:00
|
|
|
*/
|
2023-06-27 11:51:04 +00:00
|
|
|
export enum Data {
|
|
|
|
EnabledFeatures = "enabled-features",
|
|
|
|
KnownGroups = "known-groups",
|
|
|
|
LatestActiveFeatureTab = "latest-active-feature-tab",
|
2023-07-11 17:07:13 +00:00
|
|
|
MiscellaneousEnabledFeatures = "miscellaneous-enabled-features",
|
2023-07-09 15:15:10 +00:00
|
|
|
RandomizeUsernameColors = "randomize-username-colors",
|
2023-06-27 11:51:04 +00:00
|
|
|
Version = "data-version",
|
|
|
|
}
|