arichornlover / uYouEnhanced

uYouEnhanced (by @arichornlover) is an expanded version of uYou+ (made by @qnblackcat) with additional features and mainly made for non jailbroken users!
https://github.com/arichornlover/YouTubeRebornPlus/
2.32k stars 3.55k forks source link

[Request] Add tweak name as prefix for exported settings #727

Open yodaluca23 opened 5 months ago

yodaluca23 commented 5 months ago

Is there an existing issue for this?

Do you use YouTube Premium?

❌ No, I don't use YouTube Premium

My feature request

It would be easier to read/manually modify, the settings export, if it had prefixes based on what tweak the setting is from. Example, uYouEnhanced settings could be prefixed "Enhanced.setting" for example "Enhanced.hideThanksButton_enabled: 1" uYou settings could be prefixed "uYou.setting" for example "uYou.removeYouTubeAds: 0" YouPiP could be prefixed "YouPiP.setting" (backup settings does not support YouPiP at least not on the version I'm on, so the setting key is theoretical) for example "YouPiP.legacyPiP_enabled: 0"

Additional context

This would also allow it to work if two tweaks have the same key names.

arichornlover commented 5 months ago

It would be easier to read/manually modify, the settings export, if it had prefixes based on what tweak the setting is from. Example, uYouEnhanced settings could be prefixed "Enhanced.setting" for example "Enhanced.hideThanksButton_enabled: 1" uYou settings could be prefixed "uYou.setting" for example "uYou.removeYouTubeAds: 0" YouPiP could be prefixed "YouPiP.setting"

Of course I could add that.

(backup settings does not support YouPiP at least not on the version I'm on, so the setting key is theoretical) for example "YouPiP.legacyPiP_enabled: 0"

the reason why YouPiP doesn’t support backup settings is because I had to manually add the keys in an NSArray. I could expand it and support more options if I could find the correct keys when backing up settings.

yodaluca23 commented 5 months ago

the reason why YouPiP doesn’t support backup settings is because I had to manually add the keys in an NSArray. I could expand it and support more options if I could find the correct keys when backing up settings.

I know, I know, I was just saying that I didn't know what the actual setting would be called, I was just making something up to show what it could look like.