forked from typefully/minimal-twitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
storage-keys.js
125 lines (123 loc) · 4.07 KB
/
storage-keys.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
export const KeyExtensionStatus = "extensionStatus";
export const KeyListsButton = "listsButton";
export const KeyCommunitiesButton = "communitiesButton";
export const KeyTopicsButton = "topicsButton";
export const KeyXPremiumButton = "xPremiumButton";
export const KeyFollowingTimeline = "followingTimeline";
export const KeyTrendsHomeTimeline = "trendsHomeTimeline";
export const KeyRemoveTimelineTabs = "removeTimelineTabs";
export const KeyWriterMode = "writerMode";
export const KeyTimelineWidth = "timelineWidth";
export const KeyRemoveTimelineBorders = "timelineBorders";
export const KeyRemoveTweetBorders = "tweetBorders";
export const KeyStickyHeader = "stickyHeader";
export const KeySidebarLogo = "sidebarLogo";
export const KeyHomeButton = "homeButton";
export const KeyExploreButton = "exploreButton";
export const KeyNotificationsButton = "notificationsButton";
export const KeyMessagesButton = "messagesButton";
export const KeyBookmarksButton = "bookmarksButton";
export const KeyTopArticlesButton = "topArticlesButton";
export const KeyProfileButton = "profileButton";
export const KeyNavigationButtonsLabelsHover = "navigationButtonsLabelsHover";
export const KeyNavigationButtonsLabels = "navigationButtonsLabels";
export const KeyNavigationCenter = "navigationCenter";
export const KeyUnreadCountBadge = "unreadCountBadge";
export const KeyAllVanity = "allVanity";
export const KeyReplyCount = "replyCount";
export const KeyRetweetCount = "retweetCount";
export const KeyLikeCount = "likeCount";
export const KeyFollowCount = "followCount";
export const KeyTweetButton = "tweetButton";
export const KeySearchBar = "searchBar";
export const KeyTransparentSearch = "transparentSearch";
export const KeyRemovePromotedPosts = "removePromotedPosts";
export const KeyRemoveTopicsToFollow = "removeTopicsToFollow";
export const KeyRecentMedia = "recentMedia";
export const KeyInterFont = "interFont";
export const KeyTitleNotifications = "titleNotifications";
export const KeyCustomCss = "customCss";
export const KeyHideViewCount = "hideViewCount";
export const allSettingsKeys = [
KeyExtensionStatus,
KeyListsButton,
KeyCommunitiesButton,
KeyTopicsButton,
KeyXPremiumButton,
KeyFollowingTimeline,
KeyTrendsHomeTimeline,
KeyRemoveTimelineTabs,
KeyWriterMode,
KeyTimelineWidth,
KeyRemoveTimelineBorders,
KeyRemoveTweetBorders,
KeyStickyHeader,
KeySidebarLogo,
KeyHomeButton,
KeyExploreButton,
KeyNotificationsButton,
KeyMessagesButton,
KeyBookmarksButton,
KeyTopArticlesButton,
KeyProfileButton,
KeyNavigationButtonsLabelsHover,
KeyNavigationButtonsLabels,
KeyNavigationCenter,
KeyUnreadCountBadge,
KeyAllVanity,
KeyReplyCount,
KeyRetweetCount,
KeyLikeCount,
KeyFollowCount,
KeyTweetButton,
KeySearchBar,
KeyTransparentSearch,
KeyRemovePromotedPosts,
KeyRemoveTopicsToFollow,
KeyRecentMedia,
KeyInterFont,
KeyTitleNotifications,
KeyCustomCss,
KeyHideViewCount,
];
export const defaultPreferences = {
[KeyExtensionStatus]: "on",
[KeyTimelineWidth]: 700,
[KeyRemoveTimelineBorders]: "off",
[KeyRemoveTweetBorders]: "off",
[KeyStickyHeader]: "on",
[KeySidebarLogo]: "on",
[KeyHomeButton]: "on",
[KeyExploreButton]: "on",
[KeyNotificationsButton]: "on",
[KeyMessagesButton]: "on",
[KeyBookmarksButton]: "on",
[KeyTopArticlesButton]: "off",
[KeyCommunitiesButton]: "on",
[KeyTopicsButton]: "off",
[KeyListsButton]: "on",
[KeyXPremiumButton]: "off",
[KeyProfileButton]: "on",
[KeyNavigationButtonsLabels]: "off",
[KeyNavigationButtonsLabelsHover]: "on",
[KeyNavigationCenter]: "off",
[KeyUnreadCountBadge]: "off",
[KeyWriterMode]: "off",
[KeyReplyCount]: "on",
[KeyRetweetCount]: "on",
[KeyLikeCount]: "on",
[KeyFollowCount]: "on",
[KeyTweetButton]: "on",
[KeySearchBar]: "on",
[KeyTransparentSearch]: "off",
[KeyRemovePromotedPosts]: "on",
[KeyRemoveTopicsToFollow]: "on",
[KeyRemoveTimelineTabs]: "off",
[KeyFollowingTimeline]: "off",
[KeyTrendsHomeTimeline]: "off",
[KeyRecentMedia]: "off",
[KeyInterFont]: "off",
[KeyTitleNotifications]: "on",
[KeyCustomCss]: "",
[KeyHideViewCount]: "off",
};