@@ -10,16 +10,17 @@ import app.revanced.patches.youtube.utils.settings.SettingsPatch
10
10
import org.w3c.dom.Element
11
11
12
12
@Patch(
13
- name = " Hide settings preferences" ,
14
- description = " Force to hide settings menu elements. Prefs \" About \" (it won't add ReVanced/SB/RYD settings) and \" Account \" (it will crash the app) will be ignored if you add them." ,
13
+ name = " Tuck away preferences" ,
14
+ description = " Force to hide settings menu elements. Prefs \" Account \" and \" Your data in YouTube \" will be ignored if you add them as they may cause a crash ." ,
15
15
compatiblePackages = [CompatiblePackage (" com.google.android.youtube" )]
16
16
)
17
17
@Suppress(" unused" )
18
18
object HideSettingsPrefsPatch : ResourcePatch() {
19
19
20
- private const val DEFAULT_ELEMENTS = " General, Data saving, Autoplay, " +
21
- " Video quality preferences, Background, Watch on TV, History & privacy, " +
22
- " Try experimental new features, Notifications, Captions, Accessibility"
20
+ private const val DEFAULT_ELEMENTS = " Data saving, Video quality preferences, Background, Watch on TV, " +
21
+ " Manage all history, Privacy, Try experimental new features, " +
22
+ " Purchases and memberships, Billing & payments, Notifications, Captions, Connected apps, " +
23
+ " Live chat, Accessibility, About"
23
24
24
25
private val SettingElements by stringPatchOption(
25
26
key = " SettingElements" ,
@@ -30,17 +31,25 @@ object HideSettingsPrefsPatch : ResourcePatch() {
30
31
31
32
private val DEFAULT_ELEMENTS_MAP = mapOf (
32
33
" General" to " general_key" ,
33
- " Account" to " account_switcher_key" ,
34
+ // "Account" to "account_switcher_key",
34
35
" Data saving" to " data_saving_settings_key" ,
35
36
" Autoplay" to " auto_play_key" ,
36
37
" Video quality preferences" to " video_quality_settings_key" ,
37
- " Background" to " offline_key" , // no
38
+ " Background" to " offline_key" ,
38
39
" Watch on TV" to " pair_with_tv_key" ,
40
+ " Manage all history" to " history_key" ,
41
+ // "Your data in YouTube" to "your_data_key",
42
+ " Privacy" to " privacy_key" ,
39
43
" History & privacy" to " privacy_key" ,
40
44
" Try experimental new features" to " premium_early_access_browse_page_key" ,
45
+ " Purchases and memberships" to " yt_unlimited_post_purchase_key" ,
46
+ " Billing & payments" to " billing_and_payment_key" ,
41
47
" Notifications" to " notification_key" ,
48
+ " Connected apps" to " connected_accounts_browse_page_key" ,
49
+ " Live chat" to " live_chat_key" ,
42
50
" Captions" to " captions_key" ,
43
- " Accessibility" to " accessibility_settings_key"
51
+ " Accessibility" to " accessibility_settings_key" ,
52
+ " About" to " about_key"
44
53
)
45
54
46
55
// Function to parse comma-separated string into a list of strings
@@ -73,6 +82,6 @@ object HideSettingsPrefsPatch : ResourcePatch() {
73
82
}
74
83
}
75
84
76
- SettingsPatch .updatePatchStatus(" Hide settings preferences" )
85
+ SettingsPatch .updatePatchStatus(" Tuck away preferences" )
77
86
}
78
87
}
0 commit comments