mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-06-12 05:07:46 +02:00
fix: hide story sections
This commit is contained in:
@ -296,9 +296,9 @@
|
||||
"name": "Hide Quick Add in Friend Feed",
|
||||
"description": "Hides the Quick Add section in the friend feed"
|
||||
},
|
||||
"hide_story_sections": {
|
||||
"name": "Hide Story Section",
|
||||
"description": "Hide certain UI Elements shown in the story section"
|
||||
"hide_story_suggestions": {
|
||||
"name": "Hide Story Suggestions",
|
||||
"description": "Removes suggestions from the Stories page"
|
||||
},
|
||||
"hide_ui_components": {
|
||||
"name": "Hide UI Components",
|
||||
@ -494,9 +494,9 @@
|
||||
"name": "Disable Metrics",
|
||||
"description": "Blocks sending specific analytic data to Snapchat"
|
||||
},
|
||||
"disable_public_stories": {
|
||||
"name": "Disable Public Stories",
|
||||
"description": "Removes every public story from the Discover page\nMay require a clean cache to work properly"
|
||||
"disable_story_sections": {
|
||||
"name": "Disable Story Sections",
|
||||
"description": "Removes sections from the Stories page\nMay require a refresh to work properly"
|
||||
},
|
||||
"block_ads": {
|
||||
"name": "Block Ads",
|
||||
@ -809,12 +809,9 @@
|
||||
"hide_voice_record_button": "Remove Voice Record Button",
|
||||
"hide_unread_chat_hint": "Remove Unread Chat Hint"
|
||||
},
|
||||
"hide_story_sections": {
|
||||
"hide_story_suggestions": {
|
||||
"hide_friend_suggestions": "Hide friend suggestions",
|
||||
"hide_suggested_friend_stories": "Hide suggested friend stories",
|
||||
"hide_friends": "Hide friends section",
|
||||
"hide_suggested": "Hide suggested section",
|
||||
"hide_for_you": "Hide For You section"
|
||||
"hide_suggested_friend_stories": "Hide suggested friend stories"
|
||||
},
|
||||
"home_tab": {
|
||||
"map": "Map",
|
||||
@ -868,6 +865,11 @@
|
||||
"1_month": "1 Month",
|
||||
"3_months": "3 Months",
|
||||
"6_months": "6 Months"
|
||||
},
|
||||
"disable_story_sections": {
|
||||
"friends": "Friends",
|
||||
"following": "Following",
|
||||
"discover": "Discover"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -12,7 +12,7 @@ class Global : ConfigContainer() {
|
||||
val snapchatPlus = boolean("snapchat_plus") { requireRestart() }
|
||||
val disableConfirmationDialogs = multiple("disable_confirmation_dialogs", "remove_friend", "block_friend", "ignore_friend", "hide_friend", "hide_conversation", "clear_conversation") { requireRestart() }
|
||||
val disableMetrics = boolean("disable_metrics") { requireRestart() }
|
||||
val disablePublicStories = boolean("disable_public_stories") { requireRestart(); requireCleanCache() }
|
||||
val disableStorySections = multiple("disable_story_sections", "friends", "following", "discover") { requireRestart(); requireCleanCache() }
|
||||
val blockAds = boolean("block_ads")
|
||||
val spotlightCommentsUsername = boolean("spotlight_comments_username") { requireRestart() }
|
||||
val bypassVideoLengthRestriction = unique("bypass_video_length_restriction", "split", "single") { addNotices(
|
||||
|
@ -34,8 +34,7 @@ class UserInterfaceTweaks : ConfigContainer() {
|
||||
val hideFriendFeedEntry = boolean("hide_friend_feed_entry") { requireRestart() }
|
||||
val hideStreakRestore = boolean("hide_streak_restore") { requireRestart() }
|
||||
val hideQuickAddFriendFeed = boolean("hide_quick_add_friend_feed") { requireRestart() }
|
||||
val hideStorySections = multiple("hide_story_sections",
|
||||
"hide_friend_suggestions", "hide_suggested_friend_stories", "hide_friends", "hide_suggested", "hide_for_you") { requireRestart() }
|
||||
val hideStorySuggestions = multiple("hide_story_suggestions", "hide_friend_suggestions", "hide_suggested_friend_stories") { requireRestart() }
|
||||
val hideUiComponents = multiple("hide_ui_components",
|
||||
"hide_voice_record_button",
|
||||
"hide_stickers_button",
|
||||
|
@ -142,4 +142,20 @@ enum class FriendLinkType(val value: Int, val shortName: String) {
|
||||
return entries.firstOrNull { it.value == value } ?: MUTUAL
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum class MixerStoryType(
|
||||
val index: Int,
|
||||
) {
|
||||
UNKNOWN(-1),
|
||||
SUBSCRIPTIONS(2),
|
||||
DISCOVER(3),
|
||||
FRIENDS(5),
|
||||
MY_STORIES(6);
|
||||
|
||||
companion object {
|
||||
fun fromIndex(index: Int): MixerStoryType {
|
||||
return entries.firstOrNull { it.index == index } ?: UNKNOWN
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user