Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new keys for Copy settings (uYouPlusSettings.xm) #1563

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions Sources/uYouPlusSettings.xm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
SWITCH(title, description, key, SHOW_RELAUNCH_YT_SNACKBAR)

NSArray *copyKeys = @[
/* MAIN Player Keys */
// UYOUPLUS - Video player Keys
kSlideToSeek,
kSnapToChapter,
kPinchToZoom,
Expand All @@ -39,7 +39,7 @@ NSArray *copyKeys = @[
kHideClipButton,
kHideDownloadButton,
kStockVolumeHUD,
/* MAIN Button Keys */
// UYOUPLUS - Video controls overlay Keys
kHideAutoplaySwitch,
kHideCC,
kHideHUD,
Expand All @@ -48,10 +48,10 @@ NSArray *copyKeys = @[
kRedProgressBar,
kHideHoverCards,
kHideRightPanel,
/* MAIN Shorts Keys */
// UYOUPLUS - Shorts controls overlay Keys
kHideBuySuperThanks,
kHideSubscriptions,
/* MAIN Misc Keys */
// UYOUPLUS - Miscellaneous Keys
kHideiSponsorBlockButton,
kDisableHints,
kYTStartupAnimation,
Expand All @@ -62,7 +62,7 @@ NSArray *copyKeys = @[
kReExplore,
kGoogleSigninFix,
kFlex,
/* TWEAK uYou Keys */
// uYou Keys (some of them) - https://github.com/miro92/uyou-for-youtube
@"showedWelcomeVC",
@"hideShortsTab",
@"hideCreateTab",
Expand All @@ -77,9 +77,22 @@ NSArray *copyKeys = @[
@"hideShortsCells",
@"removeShortsCell",
@"startupPage",
/* TWEAK YTUHD Keys */
// DontEatMyContent Keys - https://github.com/therealFoxster/DontEatMyContent/blob/master/Tweak.h
@"DEMC_enabled", @"DEMC_colorViewsEnabled", @"DEMC_safeAreaConstant", @"DEMC_disableAmbientMode",
@"DEMC_limitZoomToFill", @"DEMC_enableForAllVideos",
// Return YouTube Dislikes Keys - https://github.com/PoomSmart/Return-YouTube-Dislikes/blob/main/TweakSettings.h
@"RYD-ENABLED", @"RYD-VOTE-SUBMISSION", @"RYD-EXACT-LIKE-NUMBER", @"RYD-EXACT-NUMBER",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correction: the url for this line was supposed to be https://github.com/PoomSmart/YTVideoOverlay/blob/main/Tweak.x
I’ll fix that whenever I get permission to add in the YouTimeStamp & YouLoop keys.

// YTVideoOverlay Keys - https://github.com/therealFoxster/DontEatMyContent/blob/master/Tweak.h
@"YTVideoOverlay-YouMute-Enabled", @"YTVideoOverlay-YouQuality-Enabled",
@"YTVideoOverlay-YouMute-Position", @"YTVideoOverlay-YouQuality-Position",
// YouPiP Keys - https://github.com/PoomSmart/YouPiP/blob/main/Header.h
@"YouPiPPosition", @"CompatibilityModeKey", @"PiPActivationMethodKey", @"PiPActivationMethod2Key",
@"NoMiniPlayerPiPKey", @"NonBackgroundableKey",
// YTUHD Keys - https://github.com/PoomSmart/YTUHD/blob/master/Header.h
@"EnableVP9",
@"AllVP9"
@"AllVP9",
// YouTube Keys
@"inline_muted_playback_enabled"
];

static const NSInteger uYouPlusSection = 500;
Expand Down