Add "Disable animated Youtube Logo"

This commit is contained in:
Bryce Hackel 2024-05-24 17:12:01 -07:00
parent 0fab6d4d65
commit 9f168b4854
No known key found for this signature in database
GPG key ID: F031960F08455E88
23 changed files with 35 additions and 1 deletions

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -273,10 +273,11 @@
"ADBLOCK_WORKAROUND" = "AdBlock Workaround";
"ADBLOCK_WORKAROUND_DESC" = "Uses stronger adblocking code.";
"FAKE_PREMIUM" = "Fake Premium";
"FAKE_PREMIUM_DESC" = "Uses Premium logo and creates fake buttons in the You tab.";
"FAKE_PREMIUM_DESC" = "Uses Premium logo and creates fake buttons in the You tab. Will disable animated YouTube logo.";
"FAKE_PREMIUM_WARNING" = "The *You* Tab doesn't exist in v%@, fake buttons will not be created.\nBut the *Fake Premium Logo* will still work.";
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";
"CENTER_YOUTUBE_LOGO" = "Center YouTube Logo";
"CENTER_YOUTUBE_LOGO_DESC" = "Toggle this to reposition the official YouTube Logo to the Center. App restart is required.";
"HIDE_YOUTUBE_LOGO" = "Hide YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Jouw Premium-voordelen";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -292,6 +292,7 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap
"FAKE_PREMIUM_WARNING" = "The *You* Tab doesn't exist in v%@, fake buttons will not be created.\nBut the *Fake Premium Logo* will still work.";
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";
"CENTER_YOUTUBE_LOGO" = "Center YouTube Logo";
"CENTER_YOUTUBE_LOGO_DESC" = "Toggle this to reposition the official YouTube Logo to the Center. App restart is required.";
"HIDE_YOUTUBE_LOGO" = "Hide YouTube Logo";

View file

@ -149,3 +149,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -150,3 +150,4 @@
"FAKE_YOUR_PREMIUM_BENEFITS" = "Your Premium benefits";
"FAKE_DOWNLOADS" = "Downloads";
"DISABLE_ANIMATED_YOUTUBE_LOGO" = "Disable Animated YouTube Logo";

View file

@ -504,6 +504,16 @@ BOOL isAdString(NSString *description) {
%end
%end
// Disable animated YouTube Logo - @bhackel
%hook YTHeaderLogoController
- (void)configureYoodleNitrateController {
if (IS_ENABLED(@"disableAnimatedYouTubeLogo_enabled")) {
return;
}
%orig;
}
%end
// Shorts Quality Picker - @arichornlover
%group gShortsQualityPicker
%hook YTHotConfig

View file

@ -1271,6 +1271,8 @@ extern NSBundle *uYouPlusBundle();
[alert addAction:okAction];
[settingsViewController presentViewController:alert animated:YES completion:nil];
}
// Enable the "Disable Animated YouTube Logo" setting
[[NSUserDefaults standardUserDefaults] setBool:enable forKey:@"disableAnimatedYouTubeLogo_enabled"];
// Refresh data and show the relaunch popup
[[NSUserDefaults standardUserDefaults] setBool:enable forKey:@"youTabFakePremium_enabled"];
[settingsViewController reloadData];
@ -1278,6 +1280,7 @@ extern NSBundle *uYouPlusBundle();
return YES;
});
);
SWITCH_ITEM(LOC(@"DISABLE_ANIMATED_YOUTUBE_LOGO"), nil, @"disableAnimatedYouTubeLogo_enabled");
// SWITCH_ITEM(LOC(@"CENTER_YOUTUBE_LOGO"), LOC(@"CENTER_YOUTUBE_LOGO_DESC"), @"centerYouTubeLogo_enabled");
SWITCH_ITEM(LOC(@"HIDE_YOUTUBE_LOGO"), LOC(@"HIDE_YOUTUBE_LOGO_DESC"), @"hideYouTubeLogo_enabled");
SWITCH_ITEM2(LOC(@"ENABLE_YT_STARTUP_ANIMATION"), LOC(@"ENABLE_YT_STARTUP_ANIMATION_DESC"), @"ytStartupAnimation_enabled");