qnblackcat / uYouPlus

uYou+ is a modified version of uYou (made by @MiRO92) with additional features and mainly made for non jailbroken users!
7.26k stars 8.96k forks source link

Added “Copy settings” & “Paste settings” buttons #1497

Closed arichornloverALT closed 2 months ago

arichornloverALT commented 3 months ago

I made 2 new buttons that could be useful to uYouPlus. Now there’s a way to Backup & Restore all the options using the Clipboard.

I created an NSArray called copyKeys that stores every single Option in uYouPlus, and includes YTUHD Options and (some) of the uYou Options. This is important for the “Copy Settings” button to prevent problems. heres an example below.

Copy Settings Button Example ``` slideToSeek_enabled: 0 snapToChapter_enabled: 1 pinchToZoom_enabled: 1 ytMiniPlayer_enabled: 1 stockVolumeHUD_enabled: 0 disablePullToFull_enabled: 1 hideAutoplaySwitch_enabled: 1 hideCC_enabled: 1 disableCollapseButton_enabled: 1 hideChannelWatermark_enabled: 1 redProgressBar_enabled: 1 hideHoverCards_enabled: 1 noSuggestedVideo_enabled: 1 disableAmbientMode_enabled: 1 hideRemixButton_enabled: 1 hideDownloadButton_enabled: 1 hideClipButton_enabled: 1 disableAnimatedYouTubeLogo_enabled: 1 disableHints_enabled: 1 hidePlayNextInQueue_enabled: 1 iPhoneLayout_enabled: 0 bigYTMiniPlayer_enabled: 0 reExplore_enabled: 1 flex_enabled: 1 showedWelcomeVC: 1 hideShortsTab: 0 hideCreateTab: 1 hideCastButton: 1 relatedVideosAtTheEndOfYTVideos: 1 removeYouTubeAds: 0 backgroundPlayback: 1 disableAgeRestriction: 0 iPadLayout: 0 noSuggestedVideoAtEnd: 0 shortsProgressBar: 0 hideShortsCells: 0 removeShortsCell: 0 startupPage: default EnableVP9: 1 AllVP9: 1 ``` this is pretty much what it does.

Also here are the credits to the people behind the localization strings of these 2 new buttons.

Polish Localization: marcinmajsc Turkish Localization: gototheskinny Japanese Localization: SKEIDs

also I hope y’all like these additions, it’s been about 4 months since I’ve last helped out in uYouPlus. and hoping that nothing bad happens again. ;(

and you can close this pr if you ever find an alternate approach to this.