Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f601de852 | ||
|
|
bde14ad82b | ||
|
|
970c566046 | ||
|
|
d7c5e540a4 | ||
|
|
86b5688eae | ||
|
|
341b1cde9d | ||
|
|
e27e0fa8cf | ||
|
|
e0c7f92288 | ||
|
|
9cf2ca008c | ||
|
|
1265e80d15 | ||
|
|
56a5e906f3 | ||
|
|
154ea37acd | ||
|
|
0d83236666 | ||
|
|
5bf8181815 | ||
|
|
b6958ac963 | ||
|
|
8187bbaa13 | ||
|
|
5d2c85cb14 | ||
|
|
71b52fc82b | ||
|
|
6cc81886c0 | ||
|
|
0671598943 | ||
|
|
8886fb7b61 | ||
|
|
fe3a942de0 | ||
|
|
123215f372 | ||
|
|
07fc0b98c3 | ||
|
|
537f828731 | ||
|
|
8218578734 | ||
|
|
fe6b509b3b | ||
|
|
8f72d70029 | ||
|
|
07a13df097 |
@@ -0,0 +1,2 @@
|
||||
github: dayanch96
|
||||
ko_fi: dayanch96
|
||||
@@ -5,14 +5,14 @@ endif
|
||||
DEBUG=0
|
||||
FINALPACKAGE=1
|
||||
ARCHS = arm64
|
||||
PACKAGE_VERSION = 2.6.2
|
||||
PACKAGE_VERSION = 2.7
|
||||
TARGET := iphone:clang:latest:13.0
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
TWEAK_NAME = YTLite
|
||||
$(TWEAK_NAME)_FRAMEWORKS = UIKit Foundation
|
||||
$(TWEAK_NAME)_FRAMEWORKS = UIKit Foundation SystemConfiguration
|
||||
$(TWEAK_NAME)_CFLAGS = -fobjc-arc -DTWEAK_VERSION=$(PACKAGE_VERSION)
|
||||
$(TWEAK_NAME)_FILES = YTLite.x Settings.x Sideloading.x
|
||||
$(TWEAK_NAME)_FILES = $(wildcard *.x *.m)
|
||||
|
||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
Copyright (c) 2011, Tony Million.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <SystemConfiguration/SystemConfiguration.h>
|
||||
|
||||
//! Project version number for MacOSReachability.
|
||||
FOUNDATION_EXPORT double ReachabilityVersionNumber;
|
||||
|
||||
//! Project version string for MacOSReachability.
|
||||
FOUNDATION_EXPORT const unsigned char ReachabilityVersionString[];
|
||||
|
||||
/**
|
||||
* Create NS_ENUM macro if it does not exist on the targeted version of iOS or OS X.
|
||||
*
|
||||
* @see http://nshipster.com/ns_enum-ns_options/
|
||||
**/
|
||||
#ifndef NS_ENUM
|
||||
#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
|
||||
#endif
|
||||
|
||||
extern NSString *const kReachabilityChangedNotification;
|
||||
|
||||
typedef NS_ENUM(NSInteger, NetworkStatus) {
|
||||
// Apple NetworkStatus Compatible Names.
|
||||
NotReachable = 0,
|
||||
ReachableViaWiFi = 2,
|
||||
ReachableViaWWAN = 1
|
||||
};
|
||||
|
||||
@class Reachability;
|
||||
|
||||
typedef void (^NetworkReachable)(Reachability * reachability);
|
||||
typedef void (^NetworkUnreachable)(Reachability * reachability);
|
||||
typedef void (^NetworkReachability)(Reachability * reachability, SCNetworkConnectionFlags flags);
|
||||
|
||||
|
||||
@interface Reachability : NSObject
|
||||
|
||||
@property (nonatomic, copy) NetworkReachable reachableBlock;
|
||||
@property (nonatomic, copy) NetworkUnreachable unreachableBlock;
|
||||
@property (nonatomic, copy) NetworkReachability reachabilityBlock;
|
||||
|
||||
@property (nonatomic, assign) BOOL reachableOnWWAN;
|
||||
|
||||
|
||||
+(instancetype)reachabilityWithHostname:(NSString*)hostname;
|
||||
// This is identical to the function above, but is here to maintain
|
||||
//compatibility with Apples original code. (see .m)
|
||||
+(instancetype)reachabilityWithHostName:(NSString*)hostname;
|
||||
+(instancetype)reachabilityForInternetConnection;
|
||||
+(instancetype)reachabilityWithAddress:(void *)hostAddress;
|
||||
+(instancetype)reachabilityForLocalWiFi;
|
||||
+(instancetype)reachabilityWithURL:(NSURL*)url;
|
||||
|
||||
-(instancetype)initWithReachabilityRef:(SCNetworkReachabilityRef)ref;
|
||||
|
||||
-(BOOL)startNotifier;
|
||||
-(void)stopNotifier;
|
||||
|
||||
-(BOOL)isReachable;
|
||||
-(BOOL)isReachableViaWWAN;
|
||||
-(BOOL)isReachableViaWiFi;
|
||||
|
||||
// WWAN may be available, but not active until a connection has been established.
|
||||
// WiFi may require a connection for VPN on Demand.
|
||||
-(BOOL)isConnectionRequired; // Identical DDG variant.
|
||||
-(BOOL)connectionRequired; // Apple's routine.
|
||||
// Dynamic, on demand connection?
|
||||
-(BOOL)isConnectionOnDemand;
|
||||
// Is user intervention required?
|
||||
-(BOOL)isInterventionRequired;
|
||||
|
||||
-(NetworkStatus)currentReachabilityStatus;
|
||||
-(SCNetworkReachabilityFlags)reachabilityFlags;
|
||||
-(NSString*)currentReachabilityString;
|
||||
-(NSString*)currentReachabilityFlags;
|
||||
|
||||
@end
|
||||
+508
@@ -0,0 +1,508 @@
|
||||
/*
|
||||
Copyright (c) 2011, Tony Million.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#import "Reachability.h"
|
||||
|
||||
#import <sys/socket.h>
|
||||
#import <netinet/in.h>
|
||||
#import <netinet6/in6.h>
|
||||
#import <arpa/inet.h>
|
||||
#import <ifaddrs.h>
|
||||
#import <netdb.h>
|
||||
|
||||
|
||||
NSString *const kReachabilityChangedNotification = @"kReachabilityChangedNotification";
|
||||
|
||||
|
||||
@interface Reachability ()
|
||||
|
||||
@property (nonatomic, assign) SCNetworkReachabilityRef reachabilityRef;
|
||||
@property (nonatomic, strong) dispatch_queue_t reachabilitySerialQueue;
|
||||
@property (nonatomic, strong) id reachabilityObject;
|
||||
|
||||
-(void)reachabilityChanged:(SCNetworkReachabilityFlags)flags;
|
||||
-(BOOL)isReachableWithFlags:(SCNetworkReachabilityFlags)flags;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
static NSString *reachabilityFlags(SCNetworkReachabilityFlags flags)
|
||||
{
|
||||
return [NSString stringWithFormat:@"%c%c %c%c%c%c%c%c%c",
|
||||
#if TARGET_OS_IPHONE
|
||||
(flags & kSCNetworkReachabilityFlagsIsWWAN) ? 'W' : '-',
|
||||
#else
|
||||
'X',
|
||||
#endif
|
||||
(flags & kSCNetworkReachabilityFlagsReachable) ? 'R' : '-',
|
||||
(flags & kSCNetworkReachabilityFlagsConnectionRequired) ? 'c' : '-',
|
||||
(flags & kSCNetworkReachabilityFlagsTransientConnection) ? 't' : '-',
|
||||
(flags & kSCNetworkReachabilityFlagsInterventionRequired) ? 'i' : '-',
|
||||
(flags & kSCNetworkReachabilityFlagsConnectionOnTraffic) ? 'C' : '-',
|
||||
(flags & kSCNetworkReachabilityFlagsConnectionOnDemand) ? 'D' : '-',
|
||||
(flags & kSCNetworkReachabilityFlagsIsLocalAddress) ? 'l' : '-',
|
||||
(flags & kSCNetworkReachabilityFlagsIsDirect) ? 'd' : '-'];
|
||||
}
|
||||
|
||||
// Start listening for reachability notifications on the current run loop
|
||||
static void TMReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReachabilityFlags flags, void* info)
|
||||
{
|
||||
#pragma unused (target)
|
||||
|
||||
Reachability *reachability = ((__bridge Reachability*)info);
|
||||
|
||||
// We probably don't need an autoreleasepool here, as GCD docs state each queue has its own autorelease pool,
|
||||
// but what the heck eh?
|
||||
@autoreleasepool
|
||||
{
|
||||
[reachability reachabilityChanged:flags];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@implementation Reachability
|
||||
|
||||
#pragma mark - Class Constructor Methods
|
||||
|
||||
+(instancetype)reachabilityWithHostName:(NSString*)hostname
|
||||
{
|
||||
return [Reachability reachabilityWithHostname:hostname];
|
||||
}
|
||||
|
||||
+(instancetype)reachabilityWithHostname:(NSString*)hostname
|
||||
{
|
||||
SCNetworkReachabilityRef ref = SCNetworkReachabilityCreateWithName(NULL, [hostname UTF8String]);
|
||||
if (ref)
|
||||
{
|
||||
id reachability = [[self alloc] initWithReachabilityRef:ref];
|
||||
|
||||
return reachability;
|
||||
}
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
+(instancetype)reachabilityWithAddress:(void *)hostAddress
|
||||
{
|
||||
SCNetworkReachabilityRef ref = SCNetworkReachabilityCreateWithAddress(kCFAllocatorDefault, (const struct sockaddr*)hostAddress);
|
||||
if (ref)
|
||||
{
|
||||
id reachability = [[self alloc] initWithReachabilityRef:ref];
|
||||
|
||||
return reachability;
|
||||
}
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
+(instancetype)reachabilityForInternetConnection
|
||||
{
|
||||
struct sockaddr_in zeroAddress;
|
||||
bzero(&zeroAddress, sizeof(zeroAddress));
|
||||
zeroAddress.sin_len = sizeof(zeroAddress);
|
||||
zeroAddress.sin_family = AF_INET;
|
||||
|
||||
return [self reachabilityWithAddress:&zeroAddress];
|
||||
}
|
||||
|
||||
+(instancetype)reachabilityForLocalWiFi
|
||||
{
|
||||
struct sockaddr_in localWifiAddress;
|
||||
bzero(&localWifiAddress, sizeof(localWifiAddress));
|
||||
localWifiAddress.sin_len = sizeof(localWifiAddress);
|
||||
localWifiAddress.sin_family = AF_INET;
|
||||
// IN_LINKLOCALNETNUM is defined in <netinet/in.h> as 169.254.0.0
|
||||
localWifiAddress.sin_addr.s_addr = htonl(IN_LINKLOCALNETNUM);
|
||||
|
||||
return [self reachabilityWithAddress:&localWifiAddress];
|
||||
}
|
||||
|
||||
+(instancetype)reachabilityWithURL:(NSURL*)url
|
||||
{
|
||||
id reachability;
|
||||
|
||||
NSString *host = url.host;
|
||||
BOOL isIpAddress = [self isIpAddress:host];
|
||||
|
||||
if (isIpAddress)
|
||||
{
|
||||
NSNumber *port = url.port ?: [url.scheme isEqualToString:@"https"] ? @(443) : @(80);
|
||||
|
||||
struct sockaddr_in address;
|
||||
address.sin_len = sizeof(address);
|
||||
address.sin_family = AF_INET;
|
||||
address.sin_port = htons([port intValue]);
|
||||
address.sin_addr.s_addr = inet_addr([host UTF8String]);
|
||||
|
||||
reachability = [self reachabilityWithAddress:&address];
|
||||
}
|
||||
else
|
||||
{
|
||||
reachability = [self reachabilityWithHostname:host];
|
||||
}
|
||||
|
||||
return reachability;
|
||||
}
|
||||
|
||||
+(BOOL)isIpAddress:(NSString*)host
|
||||
{
|
||||
struct in_addr pin;
|
||||
return 1 == inet_aton([host UTF8String], &pin);
|
||||
}
|
||||
|
||||
|
||||
// Initialization methods
|
||||
|
||||
-(instancetype)initWithReachabilityRef:(SCNetworkReachabilityRef)ref
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil)
|
||||
{
|
||||
self.reachableOnWWAN = YES;
|
||||
self.reachabilityRef = ref;
|
||||
|
||||
// We need to create a serial queue.
|
||||
// We allocate this once for the lifetime of the notifier.
|
||||
|
||||
self.reachabilitySerialQueue = dispatch_queue_create("com.tonymillion.reachability", NULL);
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
-(void)dealloc
|
||||
{
|
||||
[self stopNotifier];
|
||||
|
||||
if(self.reachabilityRef)
|
||||
{
|
||||
CFRelease(self.reachabilityRef);
|
||||
self.reachabilityRef = nil;
|
||||
}
|
||||
|
||||
self.reachableBlock = nil;
|
||||
self.unreachableBlock = nil;
|
||||
self.reachabilityBlock = nil;
|
||||
self.reachabilitySerialQueue = nil;
|
||||
}
|
||||
|
||||
#pragma mark - Notifier Methods
|
||||
|
||||
// Notifier
|
||||
// NOTE: This uses GCD to trigger the blocks - they *WILL NOT* be called on THE MAIN THREAD
|
||||
// - In other words DO NOT DO ANY UI UPDATES IN THE BLOCKS.
|
||||
// INSTEAD USE dispatch_async(dispatch_get_main_queue(), ^{UISTUFF}) (or dispatch_sync if you want)
|
||||
|
||||
-(BOOL)startNotifier
|
||||
{
|
||||
// allow start notifier to be called multiple times
|
||||
if(self.reachabilityObject && (self.reachabilityObject == self))
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
SCNetworkReachabilityContext context = { 0, NULL, NULL, NULL, NULL };
|
||||
context.info = (__bridge void *)self;
|
||||
|
||||
if(SCNetworkReachabilitySetCallback(self.reachabilityRef, TMReachabilityCallback, &context))
|
||||
{
|
||||
// Set it as our reachability queue, which will retain the queue
|
||||
if(SCNetworkReachabilitySetDispatchQueue(self.reachabilityRef, self.reachabilitySerialQueue))
|
||||
{
|
||||
// this should do a retain on ourself, so as long as we're in notifier mode we shouldn't disappear out from under ourselves
|
||||
// woah
|
||||
self.reachabilityObject = self;
|
||||
return YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef DEBUG
|
||||
NSLog(@"SCNetworkReachabilitySetDispatchQueue() failed: %s", SCErrorString(SCError()));
|
||||
#endif
|
||||
|
||||
// UH OH - FAILURE - stop any callbacks!
|
||||
SCNetworkReachabilitySetCallback(self.reachabilityRef, NULL, NULL);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef DEBUG
|
||||
NSLog(@"SCNetworkReachabilitySetCallback() failed: %s", SCErrorString(SCError()));
|
||||
#endif
|
||||
}
|
||||
|
||||
// if we get here we fail at the internet
|
||||
self.reachabilityObject = nil;
|
||||
return NO;
|
||||
}
|
||||
|
||||
-(void)stopNotifier
|
||||
{
|
||||
// First stop, any callbacks!
|
||||
SCNetworkReachabilitySetCallback(self.reachabilityRef, NULL, NULL);
|
||||
|
||||
// Unregister target from the GCD serial dispatch queue.
|
||||
SCNetworkReachabilitySetDispatchQueue(self.reachabilityRef, NULL);
|
||||
|
||||
self.reachabilityObject = nil;
|
||||
}
|
||||
|
||||
#pragma mark - reachability tests
|
||||
|
||||
// This is for the case where you flick the airplane mode;
|
||||
// you end up getting something like this:
|
||||
//Reachability: WR ct-----
|
||||
//Reachability: -- -------
|
||||
//Reachability: WR ct-----
|
||||
//Reachability: -- -------
|
||||
// We treat this as 4 UNREACHABLE triggers - really apple should do better than this
|
||||
|
||||
#define testcase (kSCNetworkReachabilityFlagsConnectionRequired | kSCNetworkReachabilityFlagsTransientConnection)
|
||||
|
||||
-(BOOL)isReachableWithFlags:(SCNetworkReachabilityFlags)flags
|
||||
{
|
||||
BOOL connectionUP = YES;
|
||||
|
||||
if(!(flags & kSCNetworkReachabilityFlagsReachable))
|
||||
connectionUP = NO;
|
||||
|
||||
if( (flags & testcase) == testcase )
|
||||
connectionUP = NO;
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
if(flags & kSCNetworkReachabilityFlagsIsWWAN)
|
||||
{
|
||||
// We're on 3G.
|
||||
if(!self.reachableOnWWAN)
|
||||
{
|
||||
// We don't want to connect when on 3G.
|
||||
connectionUP = NO;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return connectionUP;
|
||||
}
|
||||
|
||||
-(BOOL)isReachable
|
||||
{
|
||||
SCNetworkReachabilityFlags flags;
|
||||
|
||||
if(!SCNetworkReachabilityGetFlags(self.reachabilityRef, &flags))
|
||||
return NO;
|
||||
|
||||
return [self isReachableWithFlags:flags];
|
||||
}
|
||||
|
||||
-(BOOL)isReachableViaWWAN
|
||||
{
|
||||
#if TARGET_OS_IPHONE
|
||||
|
||||
SCNetworkReachabilityFlags flags = 0;
|
||||
|
||||
if(SCNetworkReachabilityGetFlags(self.reachabilityRef, &flags))
|
||||
{
|
||||
// Check we're REACHABLE
|
||||
if(flags & kSCNetworkReachabilityFlagsReachable)
|
||||
{
|
||||
// Now, check we're on WWAN
|
||||
if(flags & kSCNetworkReachabilityFlagsIsWWAN)
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
||||
-(BOOL)isReachableViaWiFi
|
||||
{
|
||||
SCNetworkReachabilityFlags flags = 0;
|
||||
|
||||
if(SCNetworkReachabilityGetFlags(self.reachabilityRef, &flags))
|
||||
{
|
||||
// Check we're reachable
|
||||
if((flags & kSCNetworkReachabilityFlagsReachable))
|
||||
{
|
||||
#if TARGET_OS_IPHONE
|
||||
// Check we're NOT on WWAN
|
||||
if((flags & kSCNetworkReachabilityFlagsIsWWAN))
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
#endif
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
// WWAN may be available, but not active until a connection has been established.
|
||||
// WiFi may require a connection for VPN on Demand.
|
||||
-(BOOL)isConnectionRequired
|
||||
{
|
||||
return [self connectionRequired];
|
||||
}
|
||||
|
||||
-(BOOL)connectionRequired
|
||||
{
|
||||
SCNetworkReachabilityFlags flags;
|
||||
|
||||
if(SCNetworkReachabilityGetFlags(self.reachabilityRef, &flags))
|
||||
{
|
||||
return (flags & kSCNetworkReachabilityFlagsConnectionRequired);
|
||||
}
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
||||
// Dynamic, on demand connection?
|
||||
-(BOOL)isConnectionOnDemand
|
||||
{
|
||||
SCNetworkReachabilityFlags flags;
|
||||
|
||||
if (SCNetworkReachabilityGetFlags(self.reachabilityRef, &flags))
|
||||
{
|
||||
return ((flags & kSCNetworkReachabilityFlagsConnectionRequired) &&
|
||||
(flags & (kSCNetworkReachabilityFlagsConnectionOnTraffic | kSCNetworkReachabilityFlagsConnectionOnDemand)));
|
||||
}
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
||||
// Is user intervention required?
|
||||
-(BOOL)isInterventionRequired
|
||||
{
|
||||
SCNetworkReachabilityFlags flags;
|
||||
|
||||
if (SCNetworkReachabilityGetFlags(self.reachabilityRef, &flags))
|
||||
{
|
||||
return ((flags & kSCNetworkReachabilityFlagsConnectionRequired) &&
|
||||
(flags & kSCNetworkReachabilityFlagsInterventionRequired));
|
||||
}
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
#pragma mark - reachability status stuff
|
||||
|
||||
-(NetworkStatus)currentReachabilityStatus
|
||||
{
|
||||
if([self isReachable])
|
||||
{
|
||||
if([self isReachableViaWiFi])
|
||||
return ReachableViaWiFi;
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
return ReachableViaWWAN;
|
||||
#endif
|
||||
}
|
||||
|
||||
return NotReachable;
|
||||
}
|
||||
|
||||
-(SCNetworkReachabilityFlags)reachabilityFlags
|
||||
{
|
||||
SCNetworkReachabilityFlags flags = 0;
|
||||
|
||||
if(SCNetworkReachabilityGetFlags(self.reachabilityRef, &flags))
|
||||
{
|
||||
return flags;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
-(NSString*)currentReachabilityString
|
||||
{
|
||||
NetworkStatus temp = [self currentReachabilityStatus];
|
||||
|
||||
if(temp == ReachableViaWWAN)
|
||||
{
|
||||
// Updated for the fact that we have CDMA phones now!
|
||||
return NSLocalizedString(@"Cellular", @"");
|
||||
}
|
||||
if (temp == ReachableViaWiFi)
|
||||
{
|
||||
return NSLocalizedString(@"WiFi", @"");
|
||||
}
|
||||
|
||||
return NSLocalizedString(@"No Connection", @"");
|
||||
}
|
||||
|
||||
-(NSString*)currentReachabilityFlags
|
||||
{
|
||||
return reachabilityFlags([self reachabilityFlags]);
|
||||
}
|
||||
|
||||
#pragma mark - Callback function calls this method
|
||||
|
||||
-(void)reachabilityChanged:(SCNetworkReachabilityFlags)flags
|
||||
{
|
||||
if([self isReachableWithFlags:flags])
|
||||
{
|
||||
if(self.reachableBlock)
|
||||
{
|
||||
self.reachableBlock(self);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(self.unreachableBlock)
|
||||
{
|
||||
self.unreachableBlock(self);
|
||||
}
|
||||
}
|
||||
|
||||
if(self.reachabilityBlock)
|
||||
{
|
||||
self.reachabilityBlock(self, flags);
|
||||
}
|
||||
|
||||
// this makes sure the change notification happens on the MAIN THREAD
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:kReachabilityChangedNotification
|
||||
object:self];
|
||||
});
|
||||
}
|
||||
|
||||
#pragma mark - Debug Description
|
||||
|
||||
- (NSString *) description
|
||||
{
|
||||
NSString *description = [NSString stringWithFormat:@"<%@: %p (%@)>",
|
||||
NSStringFromClass([self class]), self, [self currentReachabilityFlags]];
|
||||
return description;
|
||||
}
|
||||
|
||||
@end
|
||||
+280
-211
@@ -41,6 +41,21 @@ static NSString *GetCacheSize() {
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTSettingsCell
|
||||
- (void)layoutSubviews {
|
||||
%orig;
|
||||
|
||||
BOOL isYTLite = [self.accessibilityIdentifier isEqualToString:@"YTLiteSectionItem"];
|
||||
YTTouchFeedbackController *feedback = [self valueForKey:@"_touchFeedbackController"];
|
||||
ABCSwitch *abcSwitch = [self valueForKey:@"_switch"];
|
||||
|
||||
if (isYTLite) {
|
||||
feedback.feedbackColor = [UIColor colorWithRed:0.75 green:0.50 blue:0.90 alpha:1.0];
|
||||
abcSwitch.onTintColor = [UIColor colorWithRed:0.75 green:0.50 blue:0.90 alpha:1.0];
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTSettingsSectionItemManager
|
||||
%new
|
||||
- (void)updatePrefsForKey:(NSString *)key enabled:(BOOL)enabled {
|
||||
@@ -68,12 +83,13 @@ static NSString *GetCacheSize() {
|
||||
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.dvntm.ytlite.prefschanged"), NULL, NULL, YES);
|
||||
}
|
||||
|
||||
static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleDescription, NSString *key, BOOL *value, id selfObject) {
|
||||
static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *key, BOOL *value, id selfObject) {
|
||||
Class YTSettingsSectionItemClass = %c(YTSettingsSectionItem);
|
||||
Class YTAlertViewClass = %c(YTAlertView);
|
||||
YTSettingsSectionItem *item = [YTSettingsSectionItemClass switchItemWithTitle:title
|
||||
titleDescription:titleDescription
|
||||
accessibilityIdentifier:nil
|
||||
|
||||
YTSettingsSectionItem *item = [YTSettingsSectionItemClass switchItemWithTitle:LOC(title)
|
||||
titleDescription:LOC([NSString stringWithFormat:@"%@Desc", title])
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
switchOn:*value
|
||||
switchBlock:^BOOL(YTSettingsCell *cell, BOOL enabled) {
|
||||
if ([key isEqualToString:@"shortsOnlyMode"]) {
|
||||
@@ -107,17 +123,17 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
YTSettingsViewController *settingsViewController = [self valueForKey:@"_settingsViewControllerDelegate"];
|
||||
id selfObject = self;
|
||||
|
||||
YTSettingsSectionItem *space = [%c(YTSettingsSectionItem) itemWithTitle:nil accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) { return YES; }];
|
||||
YTSettingsSectionItem *space = [%c(YTSettingsSectionItem) itemWithTitle:nil accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:nil];
|
||||
|
||||
YTSettingsSectionItem *general = [YTSettingsSectionItemClass itemWithTitle:LOC(@"General")
|
||||
accessibilityIdentifier:nil
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
detailTextBlock:^NSString *() {
|
||||
return @"‣";
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSArray <YTSettingsSectionItem *> *rows = @[
|
||||
createSwitchItem(LOC(@"RemoveAds"), LOC(@"RemoveAdsDesc"), @"noAds", &kNoAds, selfObject),
|
||||
createSwitchItem(LOC(@"BackgroundPlayback"), LOC(@"BackgroundPlaybackDesc"), @"backgroundPlayback", &kBackgroundPlayback, selfObject)
|
||||
createSwitchItem(@"RemoveAds", @"noAds", &kNoAds, selfObject),
|
||||
createSwitchItem(@"BackgroundPlayback", @"backgroundPlayback", &kBackgroundPlayback, selfObject)
|
||||
];
|
||||
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"General") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
||||
@@ -127,26 +143,26 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
[sectionItems addObject:general];
|
||||
|
||||
YTSettingsSectionItem *navbar = [YTSettingsSectionItemClass itemWithTitle:LOC(@"Navbar")
|
||||
accessibilityIdentifier:nil
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
detailTextBlock:^NSString *() {
|
||||
return @"‣";
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSArray <YTSettingsSectionItem *> *rows = @[
|
||||
createSwitchItem(LOC(@"RemoveCast"), LOC(@"RemoveCastDesc"), @"noCast", &kNoCast, selfObject),
|
||||
createSwitchItem(LOC(@"RemoveNotifications"), LOC(@"RemoveNotificationsDesc"), @"removeNotifsButton", &kNoNotifsButton, selfObject),
|
||||
createSwitchItem(LOC(@"RemoveSearch"), LOC(@"RemoveSearchDesc"), @"removeSearchButton", &kNoSearchButton, selfObject),
|
||||
createSwitchItem(LOC(@"RemoveVoiceSearch"), LOC(@"RemoveVoiceSearchDesc"), @"removeVoiceSearchButton", &kNoVoiceSearchButton, selfObject)
|
||||
createSwitchItem(@"RemoveCast", @"noCast", &kNoCast, selfObject),
|
||||
createSwitchItem(@"RemoveNotifications", @"removeNotifsButton", &kNoNotifsButton, selfObject),
|
||||
createSwitchItem(@"RemoveSearch", @"removeSearchButton", &kNoSearchButton, selfObject),
|
||||
createSwitchItem(@"RemoveVoiceSearch", @"removeVoiceSearchButton", &kNoVoiceSearchButton, selfObject)
|
||||
];
|
||||
|
||||
if (kAdvancedMode) {
|
||||
YTSettingsSectionItem *addStickyNavbar = createSwitchItem(LOC(@"StickyNavbar"), LOC(@"StickyNavbarDesc"), @"stickyNavbar", &kStickyNavbar, selfObject);
|
||||
YTSettingsSectionItem *addStickyNavbar = createSwitchItem(@"StickyNavbar", @"stickyNavbar", &kStickyNavbar, selfObject);
|
||||
rows = [rows arrayByAddingObject:addStickyNavbar];
|
||||
|
||||
YTSettingsSectionItem *addNoSubbar = createSwitchItem(LOC(@"NoSubbar"), LOC(@"NoSubbarDesc"), @"noSubbar", &kNoSubbar, selfObject);
|
||||
YTSettingsSectionItem *addNoSubbar = createSwitchItem(@"NoSubbar", @"noSubbar", &kNoSubbar, selfObject);
|
||||
rows = [rows arrayByAddingObject:addNoSubbar];
|
||||
|
||||
YTSettingsSectionItem *addNoYTLogo = createSwitchItem(LOC(@"NoYTLogo"), LOC(@"NoYTLogoDesc"), @"noYTLogo", &kNoYTLogo, selfObject);
|
||||
YTSettingsSectionItem *addNoYTLogo = createSwitchItem(@"NoYTLogo", @"noYTLogo", &kNoYTLogo, selfObject);
|
||||
rows = [rows arrayByAddingObject:addNoYTLogo];
|
||||
}
|
||||
|
||||
@@ -158,24 +174,24 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
|
||||
if (kAdvancedMode) {
|
||||
YTSettingsSectionItem *overlay = [YTSettingsSectionItemClass itemWithTitle:LOC(@"Overlay")
|
||||
accessibilityIdentifier:nil
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
detailTextBlock:^NSString *() {
|
||||
return @"‣";
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSArray <YTSettingsSectionItem *> *rows = @[
|
||||
createSwitchItem(LOC(@"HideAutoplay"), LOC(@"HideAutoplayDesc"), @"hideAutoplay", &kHideAutoplay, selfObject),
|
||||
createSwitchItem(LOC(@"HideSubs"), LOC(@"HideSubsDesc"), @"hideSubs", &kHideSubs, selfObject),
|
||||
createSwitchItem(LOC(@"NoHUDMsgs"), LOC(@"NoHUDMsgsDesc"), @"noHUDMsgs", &kNoHUDMsgs, selfObject),
|
||||
createSwitchItem(LOC(@"HidePrevNext"), LOC(@"HidePrevNextDesc"), @"hidePrevNext", &kHidePrevNext, selfObject),
|
||||
createSwitchItem(LOC(@"ReplacePrevNext"), LOC(@"ReplacePrevNextDesc"), @"replacePrevNext", &kReplacePrevNext, selfObject),
|
||||
createSwitchItem(LOC(@"NoDarkBg"), LOC(@"NoDarkBgDesc"), @"noDarkBg", &kNoDarkBg, selfObject),
|
||||
createSwitchItem(LOC(@"NoEndScreenCards"), LOC(@"NoEndScreenCardsDesc"), @"endScreenCards", &kEndScreenCards, selfObject),
|
||||
createSwitchItem(LOC(@"NoFullscreenActions"), LOC(@"NoFullscreenActionsDesc"), @"noFullscreenActions", &kNoFullscreenActions, selfObject),
|
||||
createSwitchItem(LOC(@"PersistentProgressBar"), LOC(@"PersistentProgressBarDesc"), @"persistentProgressBar", &kPersistentProgressBar, selfObject),
|
||||
createSwitchItem(LOC(@"NoRelatedVids"), LOC(@"NoRelatedVidsDesc"), @"noRelatedVids", &kNoRelatedVids, selfObject),
|
||||
createSwitchItem(LOC(@"NoPromotionCards"), LOC(@"NoPromotionCardsDesc"), @"noPromotionCards", &kNoPromotionCards, selfObject),
|
||||
createSwitchItem(LOC(@"NoWatermarks"), LOC(@"NoWatermarksDesc"), @"noWatermarks", &kNoWatermarks, selfObject)
|
||||
createSwitchItem(@"HideAutoplay", @"hideAutoplay", &kHideAutoplay, selfObject),
|
||||
createSwitchItem(@"HideSubs", @"hideSubs", &kHideSubs, selfObject),
|
||||
createSwitchItem(@"NoHUDMsgs", @"noHUDMsgs", &kNoHUDMsgs, selfObject),
|
||||
createSwitchItem(@"HidePrevNext", @"hidePrevNext", &kHidePrevNext, selfObject),
|
||||
createSwitchItem(@"ReplacePrevNext", @"replacePrevNext", &kReplacePrevNext, selfObject),
|
||||
createSwitchItem(@"NoDarkBg", @"noDarkBg", &kNoDarkBg, selfObject),
|
||||
createSwitchItem(@"NoEndScreenCards", @"endScreenCards", &kEndScreenCards, selfObject),
|
||||
createSwitchItem(@"NoFullscreenActions", @"noFullscreenActions", &kNoFullscreenActions, selfObject),
|
||||
createSwitchItem(@"PersistentProgressBar", @"persistentProgressBar", &kPersistentProgressBar, selfObject),
|
||||
createSwitchItem(@"NoRelatedVids", @"noRelatedVids", &kNoRelatedVids, selfObject),
|
||||
createSwitchItem(@"NoPromotionCards", @"noPromotionCards", &kNoPromotionCards, selfObject),
|
||||
createSwitchItem(@"NoWatermarks", @"noWatermarks", &kNoWatermarks, selfObject)
|
||||
];
|
||||
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"Overlay") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
||||
@@ -185,27 +201,30 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
[sectionItems addObject:overlay];
|
||||
|
||||
YTSettingsSectionItem *player = [YTSettingsSectionItemClass itemWithTitle:LOC(@"Player")
|
||||
accessibilityIdentifier:nil
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
detailTextBlock:^NSString *() {
|
||||
return @"‣";
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSArray <YTSettingsSectionItem *> *rows = @[
|
||||
createSwitchItem(LOC(@"Miniplayer"), LOC(@"MiniplayerDesc"), @"miniplayer", &kMiniplayer, selfObject),
|
||||
createSwitchItem(LOC(@"PortraitFullscreen"), LOC(@"PortraitFullscreenDesc"), @"portraitFullscreen", &kPortraitFullscreen, selfObject),
|
||||
createSwitchItem(LOC(@"CopyWithTimestamp"), LOC(@"CopyWithTimestampDesc"), @"copyWithTimestamp", &kCopyWithTimestamp, selfObject),
|
||||
createSwitchItem(LOC(@"DisableAutoplay"), LOC(@"DisableAutoplayDesc"), @"disableAutoplay", &kDisableAutoplay, selfObject),
|
||||
createSwitchItem(LOC(@"DisableAutoCaptions"), LOC(@"DisableAutoCaptionsDesc"), @"disableAutoCaptions", &kDisableAutoCaptions, selfObject),
|
||||
createSwitchItem(LOC(@"NoContentWarning"), LOC(@"NoContentWarningDesc"), @"noContentWarning", &kNoContentWarning, selfObject),
|
||||
createSwitchItem(LOC(@"ClassicQuality"), LOC(@"ClassicQualityDesc"), @"classicQuality", &kClassicQuality, selfObject),
|
||||
createSwitchItem(LOC(@"ExtraSpeedOptions"), LOC(@"ExtraSpeedOptionsDesc"), @"extraSpeedOptions", &kExtraSpeedOptions, selfObject),
|
||||
createSwitchItem(LOC(@"DontSnap2Chapter"), LOC(@"DontSnap2ChapterDesc"), @"dontSnapToChapter", &kDontSnapToChapter, selfObject),
|
||||
createSwitchItem(LOC(@"RedProgressBar"), LOC(@"RedProgressBarDesc"), @"redProgressBar", &kRedProgressBar, selfObject),
|
||||
createSwitchItem(LOC(@"NoHints"), LOC(@"NoHintsDesc"), @"noHints", &kNoHints, selfObject),
|
||||
createSwitchItem(LOC(@"NoFreeZoom"), LOC(@"NoFreeZoomDesc"), @"noFreeZoom", &kNoFreeZoom, selfObject),
|
||||
createSwitchItem(LOC(@"AutoFullscreen"), LOC(@"AutoFullscreenDesc"), @"autoFullscreen", &kAutoFullscreen, selfObject),
|
||||
createSwitchItem(LOC(@"ExitFullscreen"), LOC(@"ExitFullscreenDesc"), @"exitFullscreen", &kExitFullscreen, selfObject),
|
||||
createSwitchItem(LOC(@"NoDoubleTap2Seek"), LOC(@"NoDoubleTap2SeekDesc"), @"noDoubleTapToSeek", &kNoDoubleTapToSeek, selfObject)
|
||||
createSwitchItem(@"Miniplayer", @"miniplayer", &kMiniplayer, selfObject),
|
||||
createSwitchItem(@"PortraitFullscreen", @"portraitFullscreen", &kPortraitFullscreen, selfObject),
|
||||
createSwitchItem(@"CopyWithTimestamp", @"copyWithTimestamp", &kCopyWithTimestamp, selfObject),
|
||||
createSwitchItem(@"DisableAutoplay", @"disableAutoplay", &kDisableAutoplay, selfObject),
|
||||
createSwitchItem(@"DisableAutoCaptions", @"disableAutoCaptions", &kDisableAutoCaptions, selfObject),
|
||||
createSwitchItem(@"NoContentWarning", @"noContentWarning", &kNoContentWarning, selfObject),
|
||||
createSwitchItem(@"ClassicQuality", @"classicQuality", &kClassicQuality, selfObject),
|
||||
createSwitchItem(@"ExtraSpeedOptions", @"extraSpeedOptions", &kExtraSpeedOptions, selfObject),
|
||||
createSwitchItem(@"DontSnap2Chapter", @"dontSnapToChapter", &kDontSnapToChapter, selfObject),
|
||||
createSwitchItem(@"RedProgressBar", @"redProgressBar", &kRedProgressBar, selfObject),
|
||||
createSwitchItem(@"NoPlayerRemixButton", @"noPlayerRemixButton", &kNoPlayerRemixButton, selfObject),
|
||||
createSwitchItem(@"NoPlayerClipButton", @"noPlayerClipButton", &kNoPlayerClipButton, selfObject),
|
||||
createSwitchItem(@"NoPlayerDownloadButton", @"noPlayerDownloadButton", &kNoPlayerDownloadButton, selfObject),
|
||||
createSwitchItem(@"NoHints", @"noHints", &kNoHints, selfObject),
|
||||
createSwitchItem(@"NoFreeZoom", @"noFreeZoom", &kNoFreeZoom, selfObject),
|
||||
createSwitchItem(@"AutoFullscreen", @"autoFullscreen", &kAutoFullscreen, selfObject),
|
||||
createSwitchItem(@"ExitFullscreen", @"exitFullscreen", &kExitFullscreen, selfObject),
|
||||
createSwitchItem(@"NoDoubleTap2Seek", @"noDoubleTapToSeek", &kNoDoubleTapToSeek, selfObject)
|
||||
];
|
||||
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"Player") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
||||
@@ -215,35 +234,35 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
[sectionItems addObject:player];
|
||||
|
||||
YTSettingsSectionItem *shorts = [YTSettingsSectionItemClass itemWithTitle:LOC(@"Shorts")
|
||||
accessibilityIdentifier:nil
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
detailTextBlock:^NSString *() {
|
||||
return @"‣";
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSArray <YTSettingsSectionItem *> *rows = @[
|
||||
createSwitchItem(LOC(@"ShortsOnlyMode"), LOC(@"ShortsOnlyModeDesc"), @"shortsOnlyMode", &kShortsOnlyMode, selfObject),
|
||||
createSwitchItem(LOC(@"HideShorts"), LOC(@"HideShortsDesc"), @"hideShorts", &kHideShorts, selfObject),
|
||||
createSwitchItem(LOC(@"ShortsProgress"), LOC(@"ShortsProgressDesc"), @"shortsProgress", &kShortsProgress, selfObject),
|
||||
createSwitchItem(LOC(@"PinchToFullscreenShorts"), LOC(@"PinchToFullscreenShortsDesc"), @"pinchToFullscreenShorts", &kPinchToFullscreenShorts, selfObject),
|
||||
createSwitchItem(LOC(@"ShortsToRegular"), LOC(@"ShortsToRegularDesc"), @"shortsToRegular", &kShortsToRegular, selfObject),
|
||||
createSwitchItem(LOC(@"ResumeShorts"), LOC(@"ResumeShortsDesc"), @"resumeShorts", &kResumeShorts, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsLogo"), LOC(@"HideShortsLogoDesc"), @"hideShortsLogo", &kHideShortsLogo, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsSearch"), LOC(@"HideShortsSearchDesc"), @"hideShortsSearch", &kHideShortsSearch, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsCamera"), LOC(@"HideShortsCameraDesc"), @"hideShortsCamera", &kHideShortsCamera, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsMore"), LOC(@"HideShortsMoreDesc"), @"hideShortsMore", &kHideShortsMore, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsSubscriptions"), LOC(@"HideShortsSubscriptionsDesc"), @"hideShortsSubscriptions", &kHideShortsSubscriptions, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsLike"), LOC(@"HideShortsLikeDesc"), @"hideShortsLike", &kHideShortsLike, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsDislike"), LOC(@"HideShortsDislikeDesc"), @"hideShortsDislike", &kHideShortsDislike, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsComments"), LOC(@"HideShortsCommentsDesc"), @"hideShortsComments", &kHideShortsComments, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsRemix"), LOC(@"HideShortsRemixDesc"), @"hideShortsRemix", &kHideShortsRemix, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsShare"), LOC(@"HideShortsShareDesc"), @"hideShortsShare", &kHideShortsShare, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsAvatars"), LOC(@"HideShortsAvatarsDesc"), @"hideShortsAvatars", &kHideShortsAvatars, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsThanks"), LOC(@"HideShortsThanksDesc"), @"hideShortsThanks", &kHideShortsThanks, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsSource"), LOC(@"HideShortsSourceDesc"), @"hideShortsSource", &kHideShortsSource, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsChannelName"), LOC(@"HideShortsChannelNameDesc"), @"hideShortsChannelName", &kHideShortsChannelName, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsDescription"), LOC(@"HideShortsDescriptionDesc"), @"hideShortsDescription", &kHideShortsDescription, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsAudioTrack"), LOC(@"HideShortsAudioTrackDesc"), @"hideShortsAudioTrack", &kHideShortsAudioTrack, selfObject),
|
||||
createSwitchItem(LOC(@"NoPromotionCards"), LOC(@"NoPromotionCardsDesc"), @"hideShortsPromoCards", &kHideShortsPromoCards, selfObject)
|
||||
createSwitchItem(@"ShortsOnlyMode", @"shortsOnlyMode", &kShortsOnlyMode, selfObject),
|
||||
createSwitchItem(@"HideShorts", @"hideShorts", &kHideShorts, selfObject),
|
||||
createSwitchItem(@"ShortsProgress", @"shortsProgress", &kShortsProgress, selfObject),
|
||||
createSwitchItem(@"PinchToFullscreenShorts", @"pinchToFullscreenShorts", &kPinchToFullscreenShorts, selfObject),
|
||||
createSwitchItem(@"ShortsToRegular", @"shortsToRegular", &kShortsToRegular, selfObject),
|
||||
createSwitchItem(@"ResumeShorts", @"resumeShorts", &kResumeShorts, selfObject),
|
||||
createSwitchItem(@"HideShortsLogo", @"hideShortsLogo", &kHideShortsLogo, selfObject),
|
||||
createSwitchItem(@"HideShortsSearch", @"hideShortsSearch", &kHideShortsSearch, selfObject),
|
||||
createSwitchItem(@"HideShortsCamera", @"hideShortsCamera", &kHideShortsCamera, selfObject),
|
||||
createSwitchItem(@"HideShortsMore", @"hideShortsMore", &kHideShortsMore, selfObject),
|
||||
createSwitchItem(@"HideShortsSubscriptions", @"hideShortsSubscriptions", &kHideShortsSubscriptions, selfObject),
|
||||
createSwitchItem(@"HideShortsLike", @"hideShortsLike", &kHideShortsLike, selfObject),
|
||||
createSwitchItem(@"HideShortsDislike", @"hideShortsDislike", &kHideShortsDislike, selfObject),
|
||||
createSwitchItem(@"HideShortsComments", @"hideShortsComments", &kHideShortsComments, selfObject),
|
||||
createSwitchItem(@"HideShortsRemix", @"hideShortsRemix", &kHideShortsRemix, selfObject),
|
||||
createSwitchItem(@"HideShortsShare", @"hideShortsShare", &kHideShortsShare, selfObject),
|
||||
createSwitchItem(@"HideShortsAvatars", @"hideShortsAvatars", &kHideShortsAvatars, selfObject),
|
||||
createSwitchItem(@"HideShortsThanks", @"hideShortsThanks", &kHideShortsThanks, selfObject),
|
||||
createSwitchItem(@"HideShortsSource", @"hideShortsSource", &kHideShortsSource, selfObject),
|
||||
createSwitchItem(@"HideShortsChannelName", @"hideShortsChannelName", &kHideShortsChannelName, selfObject),
|
||||
createSwitchItem(@"HideShortsDescription", @"hideShortsDescription", &kHideShortsDescription, selfObject),
|
||||
createSwitchItem(@"HideShortsAudioTrack", @"hideShortsAudioTrack", &kHideShortsAudioTrack, selfObject),
|
||||
createSwitchItem(@"NoPromotionCards", @"hideShortsPromoCards", &kHideShortsPromoCards, selfObject)
|
||||
];
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"Shorts") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
||||
[settingsViewController pushViewController:picker];
|
||||
@@ -253,20 +272,20 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
}
|
||||
|
||||
YTSettingsSectionItem *tabbar = [YTSettingsSectionItemClass itemWithTitle:LOC(@"Tabbar")
|
||||
accessibilityIdentifier:nil
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
detailTextBlock:^NSString *() {
|
||||
return @"‣";
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSArray <YTSettingsSectionItem *> *rows = @[
|
||||
createSwitchItem(LOC(@"RemoveLabels"), LOC(@"RemoveLabelsDesc"), @"removeLabels", &kRemoveLabels, selfObject),
|
||||
createSwitchItem(LOC(@"RemoveIndicators"), LOC(@"RemoveIndicatorsDesc"), @"removeIndicators", &kRemoveIndicators, selfObject),
|
||||
createSwitchItem(LOC(@"ReExplore"), LOC(@"ReExploreDesc"), @"reExplore", &kReExplore, selfObject),
|
||||
createSwitchItem(LOC(@"AddExplore"), LOC(@"AddExploreDesc"), @"addExplore", &kAddExplore, selfObject),
|
||||
createSwitchItem(LOC(@"HideShortsTab"), LOC(@"HideShortsTabDesc"), @"removeShorts", &kRemoveShorts, selfObject),
|
||||
createSwitchItem(LOC(@"HideSubscriptionsTab"), LOC(@"HideSubscriptionsTabDesc"), @"removeSubscriptions", &kRemoveSubscriptions, selfObject),
|
||||
createSwitchItem(LOC(@"HideUploadButton"), LOC(@"HideUploadButtonDesc"), @"removeUploads", &kRemoveUploads, selfObject),
|
||||
createSwitchItem(LOC(@"HideLibraryTab"), LOC(@"HideLibraryTabDesc"), @"removeLibrary", &kRemoveLibrary, selfObject)
|
||||
createSwitchItem(@"RemoveLabels", @"removeLabels", &kRemoveLabels, selfObject),
|
||||
createSwitchItem(@"RemoveIndicators", @"removeIndicators", &kRemoveIndicators, selfObject),
|
||||
createSwitchItem(@"ReExplore", @"reExplore", &kReExplore, selfObject),
|
||||
createSwitchItem(@"AddExplore", @"addExplore", &kAddExplore, selfObject),
|
||||
createSwitchItem(@"HideShortsTab", @"removeShorts", &kRemoveShorts, selfObject),
|
||||
createSwitchItem(@"HideSubscriptionsTab", @"removeSubscriptions", &kRemoveSubscriptions, selfObject),
|
||||
createSwitchItem(@"HideUploadButton", @"removeUploads", &kRemoveUploads, selfObject),
|
||||
createSwitchItem(@"HideLibraryTab", @"removeLibrary", &kRemoveLibrary, selfObject)
|
||||
];
|
||||
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"Tabbar") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
||||
@@ -277,26 +296,32 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
|
||||
if (kAdvancedMode) {
|
||||
YTSettingsSectionItem *other = [YTSettingsSectionItemClass itemWithTitle:LOC(@"Other")
|
||||
accessibilityIdentifier:nil
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
detailTextBlock:^NSString *() {
|
||||
return @"‣";
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSArray <YTSettingsSectionItem *> *rows = @[
|
||||
createSwitchItem(LOC(@"CopyVideoInfo"), LOC(@"CopyVideoInfoDesc"), @"copyVideoInfo", &kCopyVideoInfo, selfObject),
|
||||
createSwitchItem(LOC(@"PostManager"), LOC(@"PostManagerDesc"), @"postManager", &kPostManager, selfObject),
|
||||
createSwitchItem(LOC(@"SavePostImage"), LOC(@"SavePostImageDesc"), @"savePostImage", &kSavePostImage, selfObject),
|
||||
createSwitchItem(LOC(@"SaveProfilePhoto"), LOC(@"SaveProfilePhotoDesc"), @"saveProfilePhoto", &kSaveProfilePhoto, selfObject),
|
||||
createSwitchItem(LOC(@"CopyCommentText"), LOC(@"CopyCommentTextDesc"), @"copyCommentText", &kCopyCommentText, selfObject),
|
||||
createSwitchItem(LOC(@"FixAlbums"), LOC(@"FixAlbumsDesc"), @"fixAlbums", &kFixAlbums, selfObject),
|
||||
createSwitchItem(LOC(@"RemovePlayNext"), LOC(@"RemovePlayNextDesc"), @"removePlayNext", &kRemovePlayNext, selfObject),
|
||||
createSwitchItem(LOC(@"NoContinueWatching"), LOC(@"NoContinueWatchingDesc"), @"noContinueWatching", &kNoContinueWatching, selfObject),
|
||||
createSwitchItem(LOC(@"NoSearchHistory"), LOC(@"NoSearchHistoryDesc"), @"noSearchHistory", &kNoSearchHistory, selfObject),
|
||||
createSwitchItem(LOC(@"NoRelatedWatchNexts"), LOC(@"NoRelatedWatchNextsDesc"), @"noRelatedWatchNexts", &kNoRelatedWatchNexts, selfObject),
|
||||
createSwitchItem(LOC(@"StickSortComments"), LOC(@"StickSortCommentsDesc"), @"stickSortComments", &kStickSortComments, selfObject),
|
||||
createSwitchItem(LOC(@"HideSortComments"), LOC(@"HideSortCommentsDesc"), @"hideSortComments", &kHideSortComments, selfObject),
|
||||
createSwitchItem(LOC(@"PlaylistOldMinibar"), LOC(@"PlaylistOldMinibarDesc"), @"playlistOldMinibar", &kPlaylistOldMinibar, selfObject),
|
||||
createSwitchItem(LOC(@"DisableRTL"), LOC(@"DisableRTLDesc"), @"disableRTL", &kDisableRTL, selfObject)
|
||||
createSwitchItem(@"CopyVideoInfo", @"copyVideoInfo", &kCopyVideoInfo, selfObject),
|
||||
createSwitchItem(@"PostManager", @"postManager", &kPostManager, selfObject),
|
||||
createSwitchItem(@"SaveProfilePhoto", @"saveProfilePhoto", &kSaveProfilePhoto, selfObject),
|
||||
createSwitchItem(@"CommentManager", @"commentManager", &kCommentManager, selfObject),
|
||||
createSwitchItem(@"FixAlbums", @"fixAlbums", &kFixAlbums, selfObject),
|
||||
createSwitchItem(@"RemovePlayNext", @"removePlayNext", &kRemovePlayNext, selfObject),
|
||||
createSwitchItem(@"RemoveDownloadMenu", @"removeDownloadMenu", &kRemoveDownloadMenu, selfObject),
|
||||
createSwitchItem(@"RemoveWatchLaterMenu", @"removeWatchLaterMenu", &kRemoveWatchLaterMenu, selfObject),
|
||||
createSwitchItem(@"RemoveSaveToPlaylistMenu", @"removeSaveToPlaylistMenu", &kRemoveSaveToPlaylistMenu, selfObject),
|
||||
createSwitchItem(@"RemoveShareMenu", @"removeShareMenu", &kRemoveShareMenu, selfObject),
|
||||
createSwitchItem(@"RemoveNotInterestedMenu", @"removeNotInterestedMenu", &kRemoveNotInterestedMenu, selfObject),
|
||||
createSwitchItem(@"RemoveDontRecommendMenu", @"removeDontRecommendMenu", &kRemoveDontRecommendMenu, selfObject),
|
||||
createSwitchItem(@"RemoveReportMenu", @"removeReportMenu", &kRemoveReportMenu, selfObject),
|
||||
createSwitchItem(@"NoContinueWatching", @"noContinueWatching", &kNoContinueWatching, selfObject),
|
||||
createSwitchItem(@"NoSearchHistory", @"noSearchHistory", &kNoSearchHistory, selfObject),
|
||||
createSwitchItem(@"NoRelatedWatchNexts", @"noRelatedWatchNexts", &kNoRelatedWatchNexts, selfObject),
|
||||
createSwitchItem(@"StickSortComments", @"stickSortComments", &kStickSortComments, selfObject),
|
||||
createSwitchItem(@"HideSortComments", @"hideSortComments", &kHideSortComments, selfObject),
|
||||
createSwitchItem(@"PlaylistOldMinibar", @"playlistOldMinibar", &kPlaylistOldMinibar, selfObject),
|
||||
createSwitchItem(@"DisableRTL", @"disableRTL", &kDisableRTL, selfObject)
|
||||
];
|
||||
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"Other") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
||||
@@ -307,88 +332,121 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
|
||||
[sectionItems addObject:space];
|
||||
|
||||
YTSettingsSectionItem *startup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"Startup")
|
||||
accessibilityIdentifier:nil
|
||||
YTSettingsSectionItem *wifiQuality = [YTSettingsSectionItemClass itemWithTitle:LOC(@"PlaybackQualityOnWiFi")
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
detailTextBlock:^NSString *() {
|
||||
switch (kPivotIndex) {
|
||||
case 1:
|
||||
return LOC(@"Explore");
|
||||
case 2:
|
||||
return LOC(@"ShortsTab");
|
||||
case 3:
|
||||
return LOC(@"Subscriptions");
|
||||
case 4:
|
||||
return LOC(@"Library");
|
||||
case 0:
|
||||
default:
|
||||
return LOC(@"Home");
|
||||
}
|
||||
NSString *qualityLabel = kWiFiQualityIndex == 1 ? LOC(@"Best") :
|
||||
kWiFiQualityIndex == 2 ? @"2160p60" :
|
||||
kWiFiQualityIndex == 3 ? @"2160p" :
|
||||
kWiFiQualityIndex == 4 ? @"1440p60" :
|
||||
kWiFiQualityIndex == 5 ? @"1440p" :
|
||||
kWiFiQualityIndex == 6 ? @"1080p60" :
|
||||
kWiFiQualityIndex == 7 ? @"1080p" :
|
||||
kWiFiQualityIndex == 8 ? @"720p60" :
|
||||
kWiFiQualityIndex == 9 ? @"720p" :
|
||||
kWiFiQualityIndex == 10 ? @"480p" :
|
||||
kWiFiQualityIndex == 11 ? @"360p" :
|
||||
LOC(@"Default");
|
||||
|
||||
return qualityLabel;
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSArray <YTSettingsSectionItem *> *rows = @[
|
||||
[YTSettingsSectionItemClass checkmarkItemWithTitle:LOC(@"Home") titleDescription:nil selectBlock:^BOOL (YTSettingsCell *home, NSUInteger arg1) {
|
||||
kPivotIndex = 0;
|
||||
NSMutableArray <YTSettingsSectionItem *> *rows = [NSMutableArray array];
|
||||
NSArray *qualityTitles = @[LOC(@"Default"), LOC(@"Best"), @"2160p60", @"2160p", @"1440p60", @"1440p", @"1080p60", @"1080p", @"720p60", @"720p", @"480p", @"360p"];
|
||||
|
||||
for (NSUInteger i = 0; i < qualityTitles.count; i++) {
|
||||
NSString *title = qualityTitles[i];
|
||||
YTSettingsSectionItem *item = [YTSettingsSectionItemClass checkmarkItemWithTitle:title titleDescription:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
kWiFiQualityIndex = (int)arg1;
|
||||
[settingsViewController reloadData];
|
||||
[self updateIntegerPrefsForKey:@"pivotIndex" intValue:kPivotIndex];
|
||||
[self updateIntegerPrefsForKey:@"wifiQualityIndex" intValue:kWiFiQualityIndex];
|
||||
return YES;
|
||||
}],
|
||||
[YTSettingsSectionItemClass checkmarkItemWithTitle:LOC(@"Explore") titleDescription:nil selectBlock:^BOOL (YTSettingsCell *library, NSUInteger arg1) {
|
||||
if (!kReExplore && !kAddExplore) {
|
||||
YTAlertView *alertView = [%c(YTAlertView) infoDialog];
|
||||
alertView.title = LOC(@"Warning");
|
||||
alertView.subtitle = LOC(@"TabIsHidden");
|
||||
[alertView show];
|
||||
return NO;
|
||||
}];
|
||||
[rows addObject:item];
|
||||
}
|
||||
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"SelectQuality") pickerSectionTitle:nil rows:rows selectedItemIndex:kWiFiQualityIndex parentResponder:[self parentResponder]];
|
||||
[settingsViewController pushViewController:picker];
|
||||
return YES;
|
||||
}];
|
||||
[sectionItems addObject:wifiQuality];
|
||||
|
||||
YTSettingsSectionItem *cellQuality = [YTSettingsSectionItemClass itemWithTitle:LOC(@"PlaybackQualityOnCellular")
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
detailTextBlock:^NSString *() {
|
||||
NSString *qualityLabel = kCellQualityIndex == 1 ? LOC(@"Best") :
|
||||
kCellQualityIndex == 2 ? @"2160p60" :
|
||||
kCellQualityIndex == 3 ? @"2160p" :
|
||||
kCellQualityIndex == 4 ? @"1440p60" :
|
||||
kCellQualityIndex == 5 ? @"1440p" :
|
||||
kCellQualityIndex == 6 ? @"1080p60" :
|
||||
kCellQualityIndex == 7 ? @"1080p" :
|
||||
kCellQualityIndex == 8 ? @"720p60" :
|
||||
kCellQualityIndex == 9 ? @"720p" :
|
||||
kCellQualityIndex == 10 ? @"480p" :
|
||||
kCellQualityIndex == 11 ? @"360p" :
|
||||
LOC(@"Default");
|
||||
|
||||
return qualityLabel;
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSMutableArray <YTSettingsSectionItem *> *rows = [NSMutableArray array];
|
||||
NSArray *qualityTitles = @[LOC(@"Default"), LOC(@"Best"), @"2160p60", @"2160p", @"1440p60", @"1440p", @"1080p60", @"1080p", @"720p60", @"720p", @"480p", @"360p"];
|
||||
|
||||
for (NSUInteger i = 0; i < qualityTitles.count; i++) {
|
||||
NSString *title = qualityTitles[i];
|
||||
YTSettingsSectionItem *item = [YTSettingsSectionItemClass checkmarkItemWithTitle:title titleDescription:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
kCellQualityIndex = (int)arg1;
|
||||
[settingsViewController reloadData];
|
||||
[self updateIntegerPrefsForKey:@"cellQualityIndex" intValue:kCellQualityIndex];
|
||||
return YES;
|
||||
}];
|
||||
[rows addObject:item];
|
||||
}
|
||||
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"SelectQuality") pickerSectionTitle:nil rows:rows selectedItemIndex:kCellQualityIndex parentResponder:[self parentResponder]];
|
||||
[settingsViewController pushViewController:picker];
|
||||
return YES;
|
||||
}];
|
||||
[sectionItems addObject:cellQuality];
|
||||
|
||||
YTSettingsSectionItem *startup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"Startup")
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
detailTextBlock:^NSString *() {
|
||||
NSString *tabLabel = kPivotIndex == 1 ? LOC(@"Explore") :
|
||||
kPivotIndex == 2 ? LOC(@"ShortsTab") :
|
||||
kPivotIndex == 3 ? LOC(@"Subscriptions") :
|
||||
kPivotIndex == 4 ? LOC(@"Library") :
|
||||
LOC(@"Home");
|
||||
|
||||
return tabLabel;
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSMutableArray <YTSettingsSectionItem *> *rows = [NSMutableArray array];
|
||||
NSArray *tabTitles = @[LOC(@"Home"), LOC(@"Explore"), LOC(@"ShortsTab"), LOC(@"Subscriptions"), LOC(@"Library")];
|
||||
|
||||
for (NSUInteger i = 0; i < tabTitles.count; i++) {
|
||||
NSString *title = tabTitles[i];
|
||||
YTSettingsSectionItem *item = [YTSettingsSectionItemClass checkmarkItemWithTitle:title titleDescription:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
if (([title isEqualToString:LOC(@"Explore")] && !kReExplore && !kAddExplore) ||
|
||||
([title isEqualToString:LOC(@"ShortsTab")] && kRemoveShorts) ||
|
||||
([title isEqualToString:LOC(@"Subscriptions")] && kRemoveSubscriptions) ||
|
||||
([title isEqualToString:LOC(@"Library")] && kRemoveLibrary)) {
|
||||
YTAlertView *alertView = [%c(YTAlertView) infoDialog];
|
||||
alertView.title = LOC(@"Warning");
|
||||
alertView.subtitle = LOC(@"TabIsHidden");
|
||||
[alertView show];
|
||||
return NO;
|
||||
} else {
|
||||
kPivotIndex = 1;
|
||||
kPivotIndex = (int)arg1;
|
||||
[settingsViewController reloadData];
|
||||
[self updateIntegerPrefsForKey:@"pivotIndex" intValue:kPivotIndex];
|
||||
return YES;
|
||||
}
|
||||
}],
|
||||
[YTSettingsSectionItemClass checkmarkItemWithTitle:LOC(@"ShortsTab") titleDescription:nil selectBlock:^BOOL (YTSettingsCell *shorts, NSUInteger arg1) {
|
||||
if (kRemoveShorts) {
|
||||
YTAlertView *alertView = [%c(YTAlertView) infoDialog];
|
||||
alertView.title = LOC(@"Warning");
|
||||
alertView.subtitle = LOC(@"TabIsHidden");
|
||||
[alertView show];
|
||||
return NO;
|
||||
} else {
|
||||
kPivotIndex = 2;
|
||||
[settingsViewController reloadData];
|
||||
[self updateIntegerPrefsForKey:@"pivotIndex" intValue:kPivotIndex];
|
||||
return YES;
|
||||
}
|
||||
}],
|
||||
[YTSettingsSectionItemClass checkmarkItemWithTitle:LOC(@"Subscriptions") titleDescription:nil selectBlock:^BOOL (YTSettingsCell *subscriptions, NSUInteger arg1) {
|
||||
if (kRemoveSubscriptions) {
|
||||
YTAlertView *alertView = [%c(YTAlertView) infoDialog];
|
||||
alertView.title = LOC(@"Warning");
|
||||
alertView.subtitle = LOC(@"TabIsHidden");
|
||||
[alertView show];
|
||||
return NO;
|
||||
} else {
|
||||
kPivotIndex = 3;
|
||||
[settingsViewController reloadData];
|
||||
[self updateIntegerPrefsForKey:@"pivotIndex" intValue:kPivotIndex];
|
||||
return YES;
|
||||
}
|
||||
}],
|
||||
[YTSettingsSectionItemClass checkmarkItemWithTitle:LOC(@"Library") titleDescription:nil selectBlock:^BOOL (YTSettingsCell *library, NSUInteger arg1) {
|
||||
if (kRemoveLibrary) {
|
||||
YTAlertView *alertView = [%c(YTAlertView) infoDialog];
|
||||
alertView.title = LOC(@"Warning");
|
||||
alertView.subtitle = LOC(@"TabIsHidden");
|
||||
[alertView show];
|
||||
return NO;
|
||||
} else {
|
||||
kPivotIndex = 4;
|
||||
[settingsViewController reloadData];
|
||||
[self updateIntegerPrefsForKey:@"pivotIndex" intValue:kPivotIndex];
|
||||
return YES;
|
||||
}
|
||||
}]
|
||||
];
|
||||
}];
|
||||
[rows addObject:item];
|
||||
}
|
||||
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"Startup") pickerSectionTitle:nil rows:rows selectedItemIndex:kPivotIndex parentResponder:[self parentResponder]];
|
||||
[settingsViewController pushViewController:picker];
|
||||
return YES;
|
||||
@@ -398,55 +456,72 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
|
||||
[sectionItems addObject:space];
|
||||
|
||||
YTSettingsSectionItem *ps = [%c(YTSettingsSectionItem) itemWithTitle:@"PoomSmart" titleDescription:@"YouTube-X, YTNoPremium, YTClassicVideoQuality, YTShortsProgress, YTReExplore, SkipContentWarning, YTAutoFullscreen, YouTubeHeaders" accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTSettingsSectionItem *ps = [%c(YTSettingsSectionItem) itemWithTitle:@"PoomSmart" titleDescription:@"YouTube-X, YTNoPremium, YTClassicVideoQuality, YTShortsProgress, YTReExplore, SkipContentWarning, YTAutoFullscreen, YouTubeHeaders" accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/PoomSmart/"]];
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *miro = [%c(YTSettingsSectionItem) itemWithTitle:@"MiRO92" titleDescription:@"YTNoShorts" accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTSettingsSectionItem *miro = [%c(YTSettingsSectionItem) itemWithTitle:@"MiRO92" titleDescription:@"YTNoShorts" accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/MiRO92/"]];
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *lillie = [%c(YTSettingsSectionItem) itemWithTitle:@"Lillie" titleDescription:@"ExtraSpeedOptions" accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/LillieH1000"]];
|
||||
YTSettingsSectionItem *tonymillion = [%c(YTSettingsSectionItem) itemWithTitle:@"Tony Million" titleDescription:@"Reachability" accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/tonymillion/Reachability"]];
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *stalker = [%c(YTSettingsSectionItem) itemWithTitle:@"Stalker" titleDescription:LOC(@"ChineseSimplified") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTSettingsSectionItem *stalker = [%c(YTSettingsSectionItem) itemWithTitle:@"Stalker" titleDescription:LOC(@"ChineseSimplified") accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/xiangfeidexiaohuo"]];
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *clement = [%c(YTSettingsSectionItem) itemWithTitle:@"Clement" titleDescription:LOC(@"ChineseTraditional") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTSettingsSectionItem *clement = [%c(YTSettingsSectionItem) itemWithTitle:@"Clement" titleDescription:LOC(@"ChineseTraditional") accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://twitter.com/a100900900"]];
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *balackburn = [%c(YTSettingsSectionItem) itemWithTitle:@"Balackburn" titleDescription:LOC(@"French") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTSettingsSectionItem *balackburn = [%c(YTSettingsSectionItem) itemWithTitle:@"Balackburn" titleDescription:LOC(@"French") accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/Balackburn"]];
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *decibelios = [%c(YTSettingsSectionItem) itemWithTitle:@"DeciBelioS" titleDescription:LOC(@"Spanish") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTSettingsSectionItem *decibelios = [%c(YTSettingsSectionItem) itemWithTitle:@"DeciBelioS" titleDescription:LOC(@"Spanish") accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/Deci8BelioS"]];
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *skeids = [%c(YTSettingsSectionItem) itemWithTitle:@"SKEIDs" titleDescription:LOC(@"Japanese") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTSettingsSectionItem *skeids = [%c(YTSettingsSectionItem) itemWithTitle:@"SKEIDs" titleDescription:LOC(@"Japanese") accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/SKEIDs"]];
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *hiepvk = [%c(YTSettingsSectionItem) itemWithTitle:@"Hiepvk" titleDescription:LOC(@"Vietnamese") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTSettingsSectionItem *hiepvk = [%c(YTSettingsSectionItem) itemWithTitle:@"Hiepvk" titleDescription:LOC(@"Vietnamese") accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/hiepvk"]];
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *dayanch96 = [%c(YTSettingsSectionItem) itemWithTitle:@"Dayanch96" titleDescription:LOC(@"Developer") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTSettingsSectionItem *dayanch96 = [%c(YTSettingsSectionItem) itemWithTitle:@"Dayanch96" titleDescription:LOC(@"Developer") accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/Dayanch96/"]];
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *paypal = [%c(YTSettingsSectionItem) itemWithTitle:LOC(@"DonateViaPayPal") titleDescription:nil accessibilityIdentifier:nil detailTextBlock:^NSString *() { return @"♡"; } selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://paypal.me/Dayanch96/"]];
|
||||
YTSettingsSectionItem *support = [%c(YTSettingsSectionItem) itemWithTitle:LOC(@"SupportDevelopment") accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:^NSString *() { return @"♡"; } selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTDefaultSheetController *sheetController = [%c(YTDefaultSheetController) sheetControllerWithMessage:LOC(@"SupportDevelopment") subMessage:LOC(@"SupportDevelopmentDesc") delegate:nil parentResponder:nil];
|
||||
YTActionSheetHeaderView *headerView = [sheetController valueForKey:@"_headerView"];
|
||||
YTFormattedStringLabel *subtitle = [headerView valueForKey:@"_subtitleLabel"];
|
||||
subtitle.numberOfLines = 0;
|
||||
[headerView showHeaderDivider];
|
||||
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:@"PayPal" iconImage:[self resizedImageNamed:@"paypal"] secondaryIconImage:nil accessibilityIdentifier:nil handler:^ {
|
||||
[%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://paypal.me/dayanch96"]];
|
||||
}]];
|
||||
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:@"Github Sponsors" iconImage:[self resizedImageNamed:@"github"] secondaryIconImage:nil accessibilityIdentifier:nil handler:^ {
|
||||
[%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/sponsors/dayanch96"]];
|
||||
}]];
|
||||
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:@"Buy Me a Coffee" iconImage:[self resizedImageNamed:@"coffee"] secondaryIconImage:nil accessibilityIdentifier:nil handler:^ {
|
||||
[%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://www.buymeacoffee.com/dayanch96"]];
|
||||
}]];
|
||||
|
||||
UIViewController *currentController = UIApplication.sharedApplication.windows.firstObject.rootViewController;
|
||||
[sheetController presentFromViewController:currentController.presentedViewController animated:YES completion:nil];
|
||||
|
||||
return YES;
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *ghSponsors = [%c(YTSettingsSectionItem) itemWithTitle:LOC(@"SupportViaGhSponsors") titleDescription:nil accessibilityIdentifier:nil detailTextBlock:^NSString *() { return @"♡"; } selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
return [%c(YTUIUtils) openURL:[NSURL URLWithString:@"https://github.com/sponsors/dayanch96"]];
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *cache = [%c(YTSettingsSectionItem) itemWithTitle:LOC(@"ClearCache") titleDescription:nil accessibilityIdentifier:nil detailTextBlock:^NSString *() { return GetCacheSize(); } selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTSettingsSectionItem *cache = [%c(YTSettingsSectionItem) itemWithTitle:LOC(@"ClearCache") titleDescription:nil accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:^NSString *() { return GetCacheSize(); } selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
||||
NSString *cachePath = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).firstObject;
|
||||
[[NSFileManager defaultManager] removeItemAtPath:cachePath error:nil];
|
||||
@@ -455,7 +530,7 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
return YES;
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *reset = [%c(YTSettingsSectionItem) itemWithTitle:LOC(@"ResetSettings") titleDescription:nil accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTSettingsSectionItem *reset = [%c(YTSettingsSectionItem) itemWithTitle:LOC(@"ResetSettings") titleDescription:nil accessibilityIdentifier:@"YTLiteSectionItem" detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
YTAlertView *alertView = [%c(YTAlertView) confirmationDialogWithAction:^{
|
||||
NSString *prefsPath = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject] stringByAppendingPathComponent:@"YTLite.plist"];
|
||||
[[NSFileManager defaultManager] removeItemAtPath:prefsPath error:nil];
|
||||
@@ -473,19 +548,18 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
}];
|
||||
|
||||
YTSettingsSectionItem *version = [YTSettingsSectionItemClass itemWithTitle:LOC(@"Version")
|
||||
accessibilityIdentifier:nil
|
||||
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||
detailTextBlock:^NSString *() {
|
||||
return @(OS_STRINGIFY(TWEAK_VERSION));
|
||||
}
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
NSArray <YTSettingsSectionItem *> *rows = @[ps, miro, lillie, dayanch96, stalker, clement, balackburn, decibelios, skeids, hiepvk, space, createSwitchItem(LOC(@"Advanced"), nil, @"advancedMode", &kAdvancedMode, selfObject), cache, reset];
|
||||
NSArray <YTSettingsSectionItem *> *rows = @[ps, miro, tonymillion, dayanch96, stalker, clement, balackburn, decibelios, skeids, hiepvk, space, createSwitchItem(@"Advanced", @"advancedMode", &kAdvancedMode, selfObject), cache, reset];
|
||||
|
||||
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"About") pickerSectionTitle:LOC(@"Credits") rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
|
||||
[settingsViewController pushViewController:picker];
|
||||
return YES;
|
||||
}];
|
||||
[sectionItems addObject:paypal];
|
||||
[sectionItems addObject:ghSponsors];
|
||||
[sectionItems addObject:support];
|
||||
[sectionItems addObject:version];
|
||||
|
||||
BOOL isNew = [settingsViewController respondsToSelector:@selector(setSectionItems:forCategory:title:icon:titleDescription:headerHidden:)];
|
||||
@@ -500,27 +574,22 @@ static YTSettingsSectionItem *createSwitchItem(NSString *title, NSString *titleD
|
||||
return;
|
||||
} %orig;
|
||||
}
|
||||
|
||||
%new
|
||||
- (UIImage *)resizedImageNamed:(NSString *)iconName {
|
||||
|
||||
UIGraphicsImageRenderer *renderer = [[UIGraphicsImageRenderer alloc] initWithSize:CGSizeMake(32, 32)];
|
||||
UIImage *image = [renderer imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull rendererContext) {
|
||||
UIView *imageView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 32, 32)];
|
||||
UIImageView *iconImageView = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:[YTLiteBundle() pathForResource:iconName ofType:@"png"]]];
|
||||
iconImageView.contentMode = UIViewContentModeScaleAspectFit;
|
||||
iconImageView.clipsToBounds = YES;
|
||||
iconImageView.frame = imageView.bounds;
|
||||
|
||||
[imageView addSubview:iconImageView];
|
||||
[imageView.layer renderInContext:rendererContext.CGContext];
|
||||
}];
|
||||
|
||||
return image;
|
||||
}
|
||||
%end
|
||||
|
||||
%ctor {
|
||||
if (!kAdvancedModeReminder && !kAdvancedMode) {
|
||||
NSString *prefsPath = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject] stringByAppendingPathComponent:@"YTLite.plist"];
|
||||
NSMutableDictionary *prefs = [NSMutableDictionary dictionaryWithContentsOfFile:prefsPath];
|
||||
[prefs setObject:@(YES) forKey:@"advancedModeReminder"];
|
||||
[prefs writeToFile:prefsPath atomically:NO];
|
||||
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.dvntm.ytlite.prefschanged"), NULL, NULL, YES);
|
||||
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
YTAlertView *alertView = [%c(YTAlertView) confirmationDialogWithAction:^{
|
||||
[prefs setObject:@(YES) forKey:@"advancedMode"];
|
||||
[prefs writeToFile:prefsPath atomically:NO];
|
||||
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.dvntm.ytlite.prefschanged"), NULL, NULL, YES);
|
||||
}
|
||||
actionTitle:LOC(@"Yes")
|
||||
cancelTitle:LOC(@"No")];
|
||||
alertView.title = @"YTLite";
|
||||
alertView.subtitle = [NSString stringWithFormat:LOC(@"AdvancedModeReminder"), @"YTLite", LOC(@"Version"), LOC(@"Advanced")];
|
||||
[alertView show];
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -2,28 +2,8 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <rootless.h>
|
||||
#import <Photos/Photos.h>
|
||||
#import "../YouTubeHeader/YTAlertView.h"
|
||||
#import "../YouTubeHeader/YTIGuideResponse.h"
|
||||
#import "../YouTubeHeader/YTIGuideResponseSupportedRenderers.h"
|
||||
#import "../YouTubeHeader/YTIPivotBarSupportedRenderers.h"
|
||||
#import "../YouTubeHeader/YTIPivotBarRenderer.h"
|
||||
#import "../YouTubeHeader/YTIBrowseRequest.h"
|
||||
#import "../YouTubeHeader/YTISectionListRenderer.h"
|
||||
#import "../YouTubeHeader/YTQTMButton.h"
|
||||
#import "../YouTubeHeader/YTIButtonRenderer.h"
|
||||
#import "../YouTubeHeader/YTVideoQualitySwitchOriginalController.h"
|
||||
#import "../YouTubeHeader/YTPlayerViewController.h"
|
||||
#import "../YouTubeHeader/YTWatchController.h"
|
||||
#import "../YouTubeHeader/YTPlayerOverlay.h"
|
||||
#import "../YouTubeHeader/YTPlayerOverlayProvider.h"
|
||||
#import "../YouTubeHeader/YTSettingsViewController.h"
|
||||
#import "../YouTubeHeader/YTSettingsSectionItem.h"
|
||||
#import "../YouTubeHeader/YTSettingsSectionItemManager.h"
|
||||
#import "../YouTubeHeader/YTSettingsPickerViewController.h"
|
||||
#import "../YouTubeHeader/YTUIUtils.h"
|
||||
#import "../YouTubeHeader/YTIMenuConditionalServiceItemRenderer.h"
|
||||
#import "../YouTubeHeader/YTToastResponderEvent.h"
|
||||
#import "../YouTubeHeader/YTPageStyleController.h"
|
||||
#import "Reachability.h"
|
||||
#import "YouTubeHeaders.h"
|
||||
|
||||
static inline NSBundle *YTLiteBundle() {
|
||||
static NSBundle *bundle = nil;
|
||||
@@ -74,6 +54,9 @@ BOOL kClassicQuality;
|
||||
BOOL kExtraSpeedOptions;
|
||||
BOOL kDontSnapToChapter;
|
||||
BOOL kRedProgressBar;
|
||||
BOOL kNoPlayerRemixButton;
|
||||
BOOL kNoPlayerClipButton;
|
||||
BOOL kNoPlayerDownloadButton;
|
||||
BOOL kNoHints;
|
||||
BOOL kNoFreeZoom;
|
||||
BOOL kAutoFullscreen;
|
||||
@@ -112,12 +95,18 @@ BOOL kRemoveUploads;
|
||||
BOOL kRemoveLibrary;
|
||||
BOOL kCopyVideoInfo;
|
||||
BOOL kPostManager;
|
||||
BOOL kSavePostImage;
|
||||
BOOL kSaveProfilePhoto;
|
||||
BOOL kCopyCommentText;
|
||||
BOOL kCommentManager;
|
||||
BOOL kSavePost;
|
||||
BOOL kFixAlbums;
|
||||
BOOL kRemovePlayNext;
|
||||
BOOL kRemoveDownloadMenu;
|
||||
BOOL kRemoveWatchLaterMenu;
|
||||
BOOL kRemoveSaveToPlaylistMenu;
|
||||
BOOL kRemoveShareMenu;
|
||||
BOOL kRemoveNotInterestedMenu;
|
||||
BOOL kRemoveDontRecommendMenu;
|
||||
BOOL kRemoveReportMenu;
|
||||
BOOL kNoContinueWatching;
|
||||
BOOL kNoSearchHistory;
|
||||
BOOL kNoRelatedWatchNexts;
|
||||
@@ -127,16 +116,28 @@ BOOL kPlaylistOldMinibar;
|
||||
BOOL kDisableRTL;
|
||||
BOOL kAdvancedMode;
|
||||
BOOL kAdvancedModeReminder;
|
||||
int kWiFiQualityIndex;
|
||||
int kCellQualityIndex;
|
||||
int kPivotIndex;
|
||||
|
||||
@interface YTTouchFeedbackController : YTCollectionViewCell
|
||||
@property (nonatomic, strong, readwrite) UIColor *feedbackColor;
|
||||
@end
|
||||
|
||||
@interface ABCSwitch : UIControl
|
||||
@property (nonatomic, strong, readwrite) UIColor *onTintColor;
|
||||
@end
|
||||
|
||||
@interface YTSettingsCell ()
|
||||
- (void)setIndicatorIcon:(int)icon;
|
||||
@end
|
||||
|
||||
@interface YTSettingsSectionItemManager (Custom)
|
||||
@property (nonatomic, strong) NSMutableDictionary *prefs;
|
||||
@property (nonatomic, strong) NSString *prefsPath;
|
||||
- (void)updatePrefsForKey:(NSString *)key enabled:(BOOL)enabled;
|
||||
- (void)updateIntegerPrefsForKey:(NSString *)key intValue:(NSInteger)intValue;
|
||||
@end
|
||||
|
||||
@interface YTPivotBarView : UIView
|
||||
- (UIImage *)resizedImageNamed:(NSString *)iconName;
|
||||
@end
|
||||
|
||||
@interface YTLightweightQTMButton ()
|
||||
@@ -148,10 +149,6 @@ int kPivotIndex;
|
||||
- (void)setSizeWithPaddingAndInsets:(BOOL)sizeWithPaddingAndInsets;
|
||||
@end
|
||||
|
||||
@interface YTPivotBarItemView : UIView
|
||||
@property (nonatomic, strong, readwrite) YTQTMButton *navigationButton;
|
||||
@end
|
||||
|
||||
@interface YTRightNavigationButtons : UIView
|
||||
@property (nonatomic, strong) YTQTMButton *notificationButton;
|
||||
@property (nonatomic, strong) YTQTMButton *searchButton;
|
||||
@@ -171,11 +168,22 @@ int kPivotIndex;
|
||||
- (void)showPivotBar;
|
||||
@end
|
||||
|
||||
@interface YTPivotBarView : UIView
|
||||
- (void)selectItemWithPivotIdentifier:(id)pivotIndentifier;
|
||||
@end
|
||||
|
||||
@interface YTPivotBarViewController : UIViewController
|
||||
@property (nonatomic, weak, readwrite) YTAppViewController *parentViewController;
|
||||
- (YTPivotBarView *)pivotBarView;
|
||||
- (void)selectItemWithPivotIdentifier:(id)pivotIndentifier;
|
||||
@end
|
||||
|
||||
@interface YTPivotBarItemView : UIView
|
||||
@property (nonatomic, strong, readwrite) YTIPivotBarItemRenderer *renderer;
|
||||
@property (nonatomic, weak, readwrite) YTPivotBarViewController *delegate;
|
||||
@property (nonatomic, strong, readwrite) YTQTMButton *navigationButton;
|
||||
@end
|
||||
|
||||
@interface YTScrollableNavigationController : UINavigationController
|
||||
@property (nonatomic, weak, readwrite) YTAppViewController *parentViewController;
|
||||
@end
|
||||
@@ -199,19 +207,43 @@ int kPivotIndex;
|
||||
@property (nonatomic, weak, readwrite) YTScrollableNavigationController *navigationController;
|
||||
@end
|
||||
|
||||
@interface YTIVideoDetails ()
|
||||
@interface YTIVideoDetails : NSObject
|
||||
@property (nonatomic, copy, readwrite) NSString *title;
|
||||
@property (nonatomic, copy, readwrite) NSString *shortDescription;
|
||||
@end
|
||||
|
||||
@interface YTPlayerViewController (YTAFS)
|
||||
@interface YTIPlayerResponse : NSObject
|
||||
@property (nonatomic, assign, readonly) YTIVideoDetails *videoDetails;
|
||||
@end
|
||||
|
||||
@interface YTPlayerResponse : NSObject
|
||||
@property (nonatomic, assign, readonly) YTIPlayerResponse *playerData;
|
||||
@end
|
||||
|
||||
@interface MLQuickMenuVideoQualitySettingFormatConstraint : NSObject
|
||||
- (instancetype)initWithVideoQualitySetting:(int)settings formatSelectionReason:(NSInteger)reason qualityLabel:(NSString *)label;
|
||||
@end
|
||||
|
||||
@interface MLFormat : NSObject
|
||||
@property (nonatomic, assign, readonly) NSString *qualityLabel;
|
||||
@property (nonatomic, assign, readonly) int singleDimensionResolution;
|
||||
@end
|
||||
|
||||
@interface YTSingleVideoController : NSObject
|
||||
@property (nonatomic, assign, readonly) NSArray *selectableVideoFormats;
|
||||
- (void)setVideoFormatConstraint:(MLQuickMenuVideoQualitySettingFormatConstraint *)formatConstraint;
|
||||
@end
|
||||
|
||||
@interface YTPlayerViewController : UIViewController
|
||||
@property (nonatomic, assign, readonly) YTPlayerResponse *playerResponse;
|
||||
@property (nonatomic, assign, readonly) YTSingleVideoController *activeVideo;
|
||||
@property (nonatomic, weak, readwrite) UIViewController *parentViewController;
|
||||
@property (readonly, nonatomic) NSString *contentVideoID;
|
||||
- (void)setActiveCaptionTrack:(id)arg1;
|
||||
- (void)shortsToRegular;
|
||||
- (void)autoFullscreen;
|
||||
- (void)turnOffCaptions;
|
||||
- (void)autoQuality;
|
||||
@end
|
||||
|
||||
@interface YTPlayerView : UIView
|
||||
@@ -288,15 +320,16 @@ int kPivotIndex;
|
||||
@property (atomic, assign, readonly) NSMutableArray *allObjects;
|
||||
@end
|
||||
|
||||
@interface ASDisplayNode : NSObject
|
||||
@interface ASDisplayNode ()
|
||||
@property (nonatomic, assign, readonly) UIViewController *closestViewController;
|
||||
@property (atomic, assign, readonly) ASNodeAncestryEnumerator *supernodes;
|
||||
@property (atomic, copy, readwrite) NSArray *yogaChildren;
|
||||
// @property (atomic, copy, readwrite) NSArray *yogaChildren;
|
||||
@property (atomic) CALayer *layer;
|
||||
@end
|
||||
|
||||
@interface ELMContainerNode : ASDisplayNode
|
||||
@property (nonatomic, strong, readwrite) NSString *copiedComment;
|
||||
@property (nonatomic, strong, readwrite) NSURL *copiedURL;
|
||||
@end
|
||||
|
||||
@interface ELMExpandableTextNode : ASDisplayNode
|
||||
@@ -307,6 +340,9 @@ int kPivotIndex;
|
||||
@property (atomic, copy, readwrite) NSURL *URL;
|
||||
@end
|
||||
|
||||
@interface YTImageZoomNode : ASNetworkImageNode
|
||||
@end
|
||||
|
||||
@interface ASTextNode : ASDisplayNode
|
||||
@property (atomic, copy, readwrite) NSAttributedString *attributedText;
|
||||
@end
|
||||
@@ -314,18 +350,21 @@ int kPivotIndex;
|
||||
@interface _ASDisplayView : UIView
|
||||
@property (nonatomic, strong, readwrite) ASDisplayNode *keepalive_node;
|
||||
- (void)postManager:(UILongPressGestureRecognizer *)sender;
|
||||
- (void)saveImage:(UILongPressGestureRecognizer *)sender;
|
||||
- (void)savePFP:(UILongPressGestureRecognizer *)sender;
|
||||
- (void)copyComment:(UILongPressGestureRecognizer *)sender;
|
||||
- (void)commentManager:(UILongPressGestureRecognizer *)sender;
|
||||
@end
|
||||
|
||||
@interface MLHAMQueuePlayer : NSObject
|
||||
@property id playerEventCenter;
|
||||
-(void)setRate:(float)rate;
|
||||
@end
|
||||
// @interface MLHAMQueuePlayer : NSObject
|
||||
// @property id playerEventCenter;
|
||||
// -(void)setRate:(float)rate;
|
||||
// @end
|
||||
|
||||
@interface YTVarispeedSwitchControllerOption : NSObject
|
||||
- (id)initWithTitle:(id)title rate:(float)rate;
|
||||
- (id)initWithTitle:(NSString *)title rate:(float)rate;
|
||||
@end
|
||||
|
||||
@interface YTVarispeedSwitchController : NSObject
|
||||
- (void)addActionForOption:(YTVarispeedSwitchControllerOption *)option;
|
||||
@end
|
||||
|
||||
@interface HAMPlayerInternal : NSObject
|
||||
@@ -339,4 +378,28 @@ int kPivotIndex;
|
||||
@interface YTMainAppVideoPlayerOverlayViewController : UIViewController
|
||||
@property (readonly, nonatomic) CGFloat mediaTime;
|
||||
@property (readonly, nonatomic) NSString *videoID;
|
||||
@end
|
||||
|
||||
@interface YTFormattedStringLabel : UILabel
|
||||
@end
|
||||
|
||||
@interface YTActionSheetHeaderView : UIView
|
||||
- (void)showHeaderDivider;
|
||||
@end
|
||||
|
||||
@interface YTActionSheetAction : NSObject
|
||||
+ (instancetype)actionWithTitle:(NSString *)title iconImage:(UIImage *)image style:(NSInteger)style handler:(void (^)(void))handler;
|
||||
+ (instancetype)actionWithTitle:(NSString *)title iconImage:(UIImage *)image secondaryIconImage:(UIImage *)secondaryIconImage accessibilityIdentifier:(NSString *)identifier handler:(void (^)(void))handler;
|
||||
+ (instancetype)actionWithTitle:(NSString *)title titleColor:(UIColor *)titleColor iconImage:(UIImage *)image iconColor:(UIColor *)iconColor disableAutomaticButtonColor:(BOOL)autoColor accessibilityIdentifier:(NSString *)identifier handler:(void (^)(void))handler;
|
||||
@end
|
||||
|
||||
@interface YTDefaultSheetController : NSObject
|
||||
- (void)addAction:(YTActionSheetAction *)action;
|
||||
- (void)presentFromView:(UIView *)view animated:(BOOL)animated completion:(void(^)(void))completion;
|
||||
- (void)presentFromViewController:(UIViewController *)vc animated:(BOOL)animated completion:(void(^)(void))completion;
|
||||
|
||||
+ (instancetype)sheetControllerWithParentResponder:(id)parentResponder;
|
||||
+ (instancetype)sheetControllerWithParentResponder:(id)parentResponder forcedSheetStyle:(NSInteger)style;
|
||||
+ (instancetype)sheetControllerWithMessage:(NSString *)message delegate:(id)delegate parentResponder:(id)parentResponder;
|
||||
+ (instancetype)sheetControllerWithMessage:(NSString *)message subMessage:(NSString *)subMessage delegate:(id)delegate parentResponder:(id)parentResponder;
|
||||
@end
|
||||
@@ -1,5 +1,9 @@
|
||||
#import "YTLite.h"
|
||||
|
||||
static UIImage *YTImageNamed(NSString *imageName) {
|
||||
return [UIImage imageNamed:imageName inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil];
|
||||
}
|
||||
|
||||
// YouTube-X (https://github.com/PoomSmart/YouTube-X/)
|
||||
// Background Playback
|
||||
%hook YTIPlayabilityStatus
|
||||
@@ -284,44 +288,22 @@
|
||||
}
|
||||
%end
|
||||
|
||||
// Extra Speed Options (https://github.com/LillieH1000/YouTube-Reborn/blob/v4/Tweak.xm#L853) - Same code but for .x
|
||||
|
||||
// Extra Speed Options
|
||||
%hook YTVarispeedSwitchController
|
||||
- (void *)init {
|
||||
void *ret = (void *)%orig;
|
||||
if (kExtraSpeedOptions) {
|
||||
NSArray *speedOptions = @[@"0.1x", @"0.25x", @"0.5x", @"0.75x", @"1x", @"1.25x", @"1.5x", @"1.75x", @"2x", @"2.5x", @"3x", @"3.5x", @"4x", @"5x"];
|
||||
NSMutableArray *speedOptionsCopy = [NSMutableArray new];
|
||||
- (void)setDelegate:(id)arg1 {
|
||||
NSMutableArray *optionsCopy = [[self valueForKey:@"_options"] mutableCopy];
|
||||
NSArray *speedOptions = @[@"2.5", @"3", @"3.5", @"4", @"5"];
|
||||
|
||||
for (NSString *title in speedOptions) {
|
||||
float rate = [title floatValue];
|
||||
[speedOptionsCopy addObject:[[objc_lookUpClass("YTVarispeedSwitchControllerOption") alloc] initWithTitle:title rate:rate]];
|
||||
}
|
||||
|
||||
Ivar optionsIvar = class_getInstanceVariable(object_getClass(self), "_options");
|
||||
object_setIvar(self, optionsIvar, [speedOptionsCopy copy]);
|
||||
|
||||
} return ret;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook MLHAMQueuePlayer
|
||||
- (void)setRate:(float)rate {
|
||||
if (kExtraSpeedOptions) {
|
||||
Ivar rateIvar = class_getInstanceVariable([self class], "_rate");
|
||||
if (rateIvar) {
|
||||
float* ratePtr = (float *)((__bridge void *)self + ivar_getOffset(rateIvar));
|
||||
*ratePtr = rate;
|
||||
}
|
||||
|
||||
id ytPlayer = object_getIvar(self, class_getInstanceVariable([self class], "_player"));
|
||||
if ([ytPlayer respondsToSelector:@selector(setRate:)]) {
|
||||
[ytPlayer setRate:rate];
|
||||
}
|
||||
|
||||
[self.playerEventCenter broadcastRateChange:rate];
|
||||
} else {
|
||||
%orig(rate);
|
||||
for (NSString *title in speedOptions) {
|
||||
float rate = [title floatValue];
|
||||
YTVarispeedSwitchControllerOption *option = [[%c(YTVarispeedSwitchControllerOption) alloc] initWithTitle:title rate:rate];
|
||||
[optionsCopy addObject:option];
|
||||
}
|
||||
|
||||
if (kExtraSpeedOptions) [self setValue:[optionsCopy copy] forKey:@"_options"];
|
||||
|
||||
return %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
@@ -377,6 +359,7 @@
|
||||
- (void)loadWithPlayerTransition:(id)arg1 playbackConfig:(id)arg2 {
|
||||
%orig;
|
||||
|
||||
if (kWiFiQualityIndex != 0 || kCellQualityIndex != 0) [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(autoQuality) userInfo:nil repeats:NO];
|
||||
if (kAutoFullscreen) [NSTimer scheduledTimerWithTimeInterval:0.75 target:self selector:@selector(autoFullscreen) userInfo:nil repeats:NO];
|
||||
if (kShortsToRegular) [NSTimer scheduledTimerWithTimeInterval:0.75 target:self selector:@selector(shortsToRegular) userInfo:nil repeats:NO];
|
||||
if (kDisableAutoCaptions) [NSTimer scheduledTimerWithTimeInterval:0.75 target:self selector:@selector(turnOffCaptions) userInfo:nil repeats:NO];
|
||||
@@ -402,6 +385,76 @@
|
||||
- (void)turnOffCaptions {
|
||||
[self setActiveCaptionTrack:nil];
|
||||
}
|
||||
|
||||
%new
|
||||
- (void)autoQuality {
|
||||
if (![self.view.superview isKindOfClass:NSClassFromString(@"YTWatchView")]) {
|
||||
return;
|
||||
}
|
||||
|
||||
NetworkStatus status = [[Reachability reachabilityForInternetConnection] currentReachabilityStatus];
|
||||
NSInteger kQualityIndex = status == ReachableViaWiFi ? kWiFiQualityIndex : kCellQualityIndex;
|
||||
|
||||
NSString *bestQualityLabel;
|
||||
int highestResolution = 0;
|
||||
for (MLFormat *format in self.activeVideo.selectableVideoFormats) {
|
||||
int reso = format.singleDimensionResolution;
|
||||
if (reso > highestResolution) {
|
||||
highestResolution = reso;
|
||||
bestQualityLabel = format.qualityLabel;
|
||||
}
|
||||
}
|
||||
|
||||
NSString *qualityLabel = kQualityIndex == 1 ? bestQualityLabel :
|
||||
kQualityIndex == 2 ? @"2160p60" :
|
||||
kQualityIndex == 3 ? @"2160p" :
|
||||
kQualityIndex == 4 ? @"1440p60" :
|
||||
kQualityIndex == 5 ? @"1440p" :
|
||||
kQualityIndex == 6 ? @"1080p60" :
|
||||
kQualityIndex == 7 ? @"1080p" :
|
||||
kQualityIndex == 8 ? @"720p60" :
|
||||
kQualityIndex == 9 ? @"720p" :
|
||||
kQualityIndex == 10 ? @"480p" :
|
||||
kQualityIndex == 11 ? @"360p" :
|
||||
nil;
|
||||
|
||||
if (![qualityLabel isEqualToString:bestQualityLabel]) {
|
||||
BOOL exactMatch = NO;
|
||||
NSString *closestQualityLabel = qualityLabel;
|
||||
|
||||
for (MLFormat *format in self.activeVideo.selectableVideoFormats) {
|
||||
if ([format.qualityLabel isEqualToString:qualityLabel]) {
|
||||
exactMatch = YES;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!exactMatch) {
|
||||
NSInteger bestQualityDifference = NSIntegerMax;
|
||||
|
||||
for (MLFormat *format in self.activeVideo.selectableVideoFormats) {
|
||||
NSArray *formatСomponents = [format.qualityLabel componentsSeparatedByString:@"p"];
|
||||
NSArray *targetComponents = [qualityLabel componentsSeparatedByString:@"p"];
|
||||
if (formatСomponents.count == 2) {
|
||||
NSInteger formatQuality = [formatСomponents.firstObject integerValue];
|
||||
NSInteger targetQuality = [targetComponents.firstObject integerValue];
|
||||
NSInteger difference = labs(formatQuality - targetQuality);
|
||||
if (difference < bestQualityDifference) {
|
||||
bestQualityDifference = difference;
|
||||
closestQualityLabel = format.qualityLabel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
qualityLabel = closestQualityLabel;
|
||||
}
|
||||
}
|
||||
|
||||
MLQuickMenuVideoQualitySettingFormatConstraint *fc = [[%c(MLQuickMenuVideoQualitySettingFormatConstraint) alloc] init];
|
||||
if ([fc respondsToSelector:@selector(initWithVideoQualitySetting:formatSelectionReason:qualityLabel:)]) {
|
||||
[self.activeVideo setVideoFormatConstraint:[fc initWithVideoQualitySetting:3 formatSelectionReason:2 qualityLabel:qualityLabel]];
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
||||
// Exit Fullscreen on Finish
|
||||
@@ -468,6 +521,79 @@
|
||||
}
|
||||
%end
|
||||
|
||||
// Remove Download button from the menu
|
||||
%hook YTDefaultSheetController
|
||||
- (void)addAction:(YTActionSheetAction *)action {
|
||||
NSString *identifier = [action valueForKey:@"_accessibilityIdentifier"];
|
||||
|
||||
NSDictionary *actionsToRemove = @{
|
||||
@"7": @(kRemoveDownloadMenu),
|
||||
@"1": @(kRemoveWatchLaterMenu),
|
||||
@"3": @(kRemoveSaveToPlaylistMenu),
|
||||
@"5": @(kRemoveShareMenu),
|
||||
@"12": @(kRemoveNotInterestedMenu),
|
||||
@"31": @(kRemoveDontRecommendMenu),
|
||||
@"58": @(kRemoveReportMenu)
|
||||
};
|
||||
|
||||
if (![actionsToRemove[identifier] boolValue]) {
|
||||
%orig;
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
||||
// Hide buttons under the video player (@PoomSmart)
|
||||
static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *identifiers) {
|
||||
for (id child in [nodeController children]) {
|
||||
if ([child isKindOfClass:%c(ELMNodeController)]) {
|
||||
NSArray <ELMComponent *> *elmChildren = [(ELMNodeController *)child children];
|
||||
for (ELMComponent *elmChild in elmChildren) {
|
||||
for (NSString *identifier in identifiers) {
|
||||
if ([[elmChild description] containsString:identifier])
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ([child isKindOfClass:%c(ASNodeController)]) {
|
||||
ASDisplayNode *childNode = ((ASNodeController *)child).node; // ELMContainerNode
|
||||
NSArray *yogaChildren = childNode.yogaChildren;
|
||||
for (ASDisplayNode *displayNode in yogaChildren) {
|
||||
if ([identifiers containsObject:displayNode.accessibilityIdentifier])
|
||||
return YES;
|
||||
}
|
||||
|
||||
return findCell(child, identifiers);
|
||||
}
|
||||
|
||||
return NO;
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
%hook ASCollectionView
|
||||
- (CGSize)sizeForElement:(ASCollectionElement *)element {
|
||||
if ([self.accessibilityIdentifier isEqualToString:@"id.video.scrollable_action_bar"]) {
|
||||
ASCellNode *node = [element node];
|
||||
ASNodeController *nodeController = [node controller];
|
||||
|
||||
if (kNoPlayerRemixButton && findCell(nodeController, @[@"id.video.remix.button"])) {
|
||||
return CGSizeZero;
|
||||
}
|
||||
|
||||
if (kNoPlayerClipButton && findCell(nodeController, @[@"clip_button.eml"])) {
|
||||
return CGSizeZero;
|
||||
}
|
||||
|
||||
if (kNoPlayerDownloadButton && findCell(nodeController, @[@"id.ui.add_to.offline.button"])) {
|
||||
return CGSizeZero;
|
||||
}
|
||||
}
|
||||
|
||||
return %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
// Remove Premium Pop-up, Horizontal Video Carousel and Shorts (https://github.com/MiRO92/YTNoShorts)
|
||||
%hook YTAsyncCollectionView
|
||||
- (id)cellForItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||
@@ -538,6 +664,7 @@
|
||||
- (void)setRemixButton:(id)arg1 { if (!kHideShortsRemix) %orig; }
|
||||
- (void)setShareButton:(id)arg1 { if (!kHideShortsShare) %orig; }
|
||||
- (void)setNativePivotButton:(id)arg1 { if (!kHideShortsAvatars) %orig; }
|
||||
- (void)setPivotButtonElementRenderer:(id)arg1 { if (!kHideShortsAvatars) %orig; }
|
||||
%end
|
||||
|
||||
%hook YTReelHeaderView
|
||||
@@ -637,45 +764,7 @@ static BOOL isOverlayShown = YES;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook ELMContainerNode
|
||||
%property (nonatomic, strong) NSString *copiedComment;
|
||||
%end
|
||||
|
||||
%hook ASDisplayNode
|
||||
- (void)didLoad {
|
||||
%orig;
|
||||
|
||||
if (kCopyCommentText && [[self valueForKey:@"_accessibilityIdentifier"] isEqualToString:@"id.comment.content.label"]) {
|
||||
ASTextNode *textNode = (ASTextNode *)self;
|
||||
NSString *comment = textNode.attributedText.string;
|
||||
|
||||
NSMutableArray *allObjects = self.supernodes.allObjects;
|
||||
for (ELMContainerNode *containerNode in allObjects) {
|
||||
if ([containerNode.description containsString:@"id.ui.comment_cell"] && comment) {
|
||||
containerNode.copiedComment = comment;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (kPostManager && [self isKindOfClass:NSClassFromString(@"ELMExpandableTextNode")]) {
|
||||
ELMExpandableTextNode *expandableTextNode = (ELMExpandableTextNode *)self;
|
||||
ASTextNode *textNode = (ASTextNode *)expandableTextNode.currentTextNode;
|
||||
|
||||
NSString *text = textNode.attributedText.string;
|
||||
|
||||
NSMutableArray *allObjects = self.supernodes.allObjects;
|
||||
for (ELMContainerNode *containerNode in allObjects) {
|
||||
if ([containerNode.description containsString:@"id.ui.backstage.original_post"] && text) {
|
||||
containerNode.copiedComment = text;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
||||
static void downloadImageFromURL(UIResponder *responder, NSURL *URL) {
|
||||
static void downloadImageFromURL(UIResponder *responder, NSURL *URL, BOOL download) {
|
||||
NSString *URLString = URL.absoluteString;
|
||||
|
||||
if (kFixAlbums && [URLString hasPrefix:@"https://yt3."]) {
|
||||
@@ -696,12 +785,17 @@ static void downloadImageFromURL(UIResponder *responder, NSURL *URL) {
|
||||
NSURLSession *session = [NSURLSession sharedSession];
|
||||
[[session dataTaskWithURL:downloadURL completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
|
||||
if (data) {
|
||||
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
|
||||
PHAssetCreationRequest *request = [PHAssetCreationRequest creationRequestForAsset];
|
||||
[request addResourceWithType:PHAssetResourceTypePhoto data:data options:nil];
|
||||
} completionHandler:^(BOOL success, NSError *error) {
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:success ? LOC(@"Saved") : [NSString stringWithFormat:LOC(@"%@: %@"), LOC(@"Error"), error.localizedDescription] firstResponder:responder] send];
|
||||
}];
|
||||
if (download) {
|
||||
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
|
||||
PHAssetCreationRequest *request = [PHAssetCreationRequest creationRequestForAsset];
|
||||
[request addResourceWithType:PHAssetResourceTypePhoto data:data options:nil];
|
||||
} completionHandler:^(BOOL success, NSError *error) {
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:success ? LOC(@"Saved") : [NSString stringWithFormat:LOC(@"%@: %@"), LOC(@"Error"), error.localizedDescription] firstResponder:responder] send];
|
||||
}];
|
||||
} else {
|
||||
[UIPasteboard generalPasteboard].image = [UIImage imageWithData:data];
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Copied") firstResponder:responder] send];
|
||||
}
|
||||
} else {
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:[NSString stringWithFormat:LOC(@"%@: %@"), LOC(@"Error"), error.localizedDescription] firstResponder:responder] send];
|
||||
}
|
||||
@@ -722,15 +816,73 @@ static void genImageFromLayer(CALayer *layer, UIColor *backgroundColor, void (^c
|
||||
}
|
||||
}
|
||||
|
||||
%hook ELMContainerNode
|
||||
%property (nonatomic, strong) NSString *copiedComment;
|
||||
%property (nonatomic, strong) NSURL *copiedURL;
|
||||
%end
|
||||
|
||||
%hook ASDisplayNode
|
||||
- (void)setFrame:(CGRect)frame {
|
||||
%orig;
|
||||
|
||||
if (kCommentManager && [[self valueForKey:@"_accessibilityIdentifier"] isEqualToString:@"id.comment.content.label"]) {
|
||||
ASTextNode *textNode = (ASTextNode *)self;
|
||||
NSString *comment = textNode.attributedText.string;
|
||||
|
||||
NSMutableArray *allObjects = self.supernodes.allObjects;
|
||||
for (ELMContainerNode *containerNode in allObjects) {
|
||||
if ([containerNode.description containsString:@"id.ui.comment_cell"] && comment) {
|
||||
containerNode.copiedComment = comment;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (kPostManager && [self isKindOfClass:NSClassFromString(@"ELMExpandableTextNode")]) {
|
||||
ELMExpandableTextNode *expandableTextNode = (ELMExpandableTextNode *)self;
|
||||
ASTextNode *textNode = (ASTextNode *)expandableTextNode.currentTextNode;
|
||||
NSString *text = textNode.attributedText.string;
|
||||
|
||||
NSMutableArray *allObjects = self.supernodes.allObjects;
|
||||
for (ELMContainerNode *containerNode in allObjects) {
|
||||
if ([containerNode.description containsString:@"id.ui.backstage.original_post"] && text) {
|
||||
containerNode.copiedComment = text;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTImageZoomNode
|
||||
- (BOOL)gestureRecognizer:(id)arg1 shouldRecognizeSimultaneouslyWithGestureRecognizer:(id)arg2 {
|
||||
BOOL isImageLoaded = [self valueForKey:@"_didLoadImage"];
|
||||
if (kPostManager && isImageLoaded) {
|
||||
ASDisplayNode *displayNode = (ASDisplayNode *)self;
|
||||
ASNetworkImageNode *imageNode = (ASNetworkImageNode *)self;
|
||||
NSURL *URL = imageNode.URL;
|
||||
|
||||
NSMutableArray *allObjects = displayNode.supernodes.allObjects;
|
||||
for (ELMContainerNode *containerNode in allObjects) {
|
||||
if ([containerNode.description containsString:@"id.ui.backstage.original_post"]) {
|
||||
containerNode.copiedURL = URL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook _ASDisplayView
|
||||
- (void)setKeepalive_node:(id)arg1 {
|
||||
%orig;
|
||||
|
||||
NSArray *gesturesInfo = @[
|
||||
@{@"selector": @"postManager:", @"text": @"id.ui.backstage.original_post", @"key": @(kPostManager)},
|
||||
@{@"selector": @"saveImage:", @"text": @"YTImageZoomNode-View", @"key": @(kSavePostImage)},
|
||||
@{@"selector": @"savePFP:", @"text": @"ELMImageNode-View", @"key": @(kSaveProfilePhoto)},
|
||||
@{@"selector": @"copyComment:", @"text": @"id.ui.comment_cell", @"key": @(kCopyCommentText)}
|
||||
@{@"selector": @"commentManager:", @"text": @"id.ui.comment_cell", @"key": @(kCommentManager)}
|
||||
];
|
||||
|
||||
for (NSDictionary *gestureInfo in gesturesInfo) {
|
||||
@@ -761,11 +913,20 @@ static void genImageFromLayer(CALayer *layer, UIColor *backgroundColor, void (^c
|
||||
|
||||
UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:PFPURL]];
|
||||
if (image) {
|
||||
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
|
||||
YTDefaultSheetController *sheetController = [%c(YTDefaultSheetController) sheetControllerWithParentResponder:nil];
|
||||
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"SaveProfilePicture") iconImage:YTImageNamed(@"yt_outline_image_24pt") style:0 handler:^ {
|
||||
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
|
||||
|
||||
UIResponder *responder = self.nextResponder;
|
||||
while (responder && ![responder isKindOfClass:[UIViewController class]]) responder = responder.nextResponder;
|
||||
if (responder) [[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Saved") firstResponder:responder] send];
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Saved") firstResponder:self.keepalive_node.closestViewController] send];
|
||||
}]];
|
||||
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"CopyProfilePicture") iconImage:YTImageNamed(@"yt_outline_library_image_24pt") style:0 handler:^ {
|
||||
[UIPasteboard generalPasteboard].image = image;
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Copied") firstResponder:self.keepalive_node.closestViewController] send];
|
||||
}]];
|
||||
|
||||
[sheetController presentFromViewController:self.keepalive_node.closestViewController animated:YES completion:nil];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -779,20 +940,30 @@ static void genImageFromLayer(CALayer *layer, UIColor *backgroundColor, void (^c
|
||||
ELMContainerNode *nodeForLayer = (ELMContainerNode *)self.keepalive_node.yogaChildren[0];
|
||||
ELMContainerNode *containerNode = (ELMContainerNode *)self.keepalive_node;
|
||||
NSString *text = containerNode.copiedComment;
|
||||
NSURL *URL = containerNode.copiedURL;
|
||||
CALayer *layer = nodeForLayer.layer;
|
||||
UIColor *backgroundColor = containerNode.closestViewController.view.backgroundColor;
|
||||
|
||||
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:LOC(@"SelectAction") message:nil preferredStyle:UIAlertControllerStyleActionSheet];
|
||||
alertController.view.tintColor = [UIColor labelColor];
|
||||
|
||||
[alertController addAction:[UIAlertAction actionWithTitle:LOC(@"CopyPostText") style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
||||
YTDefaultSheetController *sheetController = [%c(YTDefaultSheetController) sheetControllerWithParentResponder:nil];
|
||||
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"CopyPostText") iconImage:YTImageNamed(@"yt_outline_message_bubble_right_24pt") style:0 handler:^ {
|
||||
if (text) {
|
||||
[UIPasteboard generalPasteboard].string = text;
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Copied") firstResponder:containerNode.closestViewController] send];
|
||||
}
|
||||
}]];
|
||||
|
||||
[alertController addAction:[UIAlertAction actionWithTitle:LOC(@"SavePostAsImage") style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
||||
if (URL) {
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"SaveCurrentImage") iconImage:YTImageNamed(@"yt_outline_image_24pt") style:0 handler:^ {
|
||||
downloadImageFromURL(containerNode.closestViewController, URL, YES);
|
||||
}]];
|
||||
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"CopyCurrentImage") iconImage:YTImageNamed(@"yt_outline_library_image_24pt") style:0 handler:^ {
|
||||
downloadImageFromURL(containerNode.closestViewController, URL, NO);
|
||||
}]];
|
||||
}
|
||||
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"SavePostAsImage") titleColor:[[UIColor redColor] colorWithAlphaComponent:0.7f] iconImage:YTImageNamed(@"yt_outline_image_24pt") iconColor:[[UIColor redColor] colorWithAlphaComponent:0.7f] disableAutomaticButtonColor:YES accessibilityIdentifier:nil handler:^ {
|
||||
genImageFromLayer(layer, backgroundColor, ^(UIImage *image) {
|
||||
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
|
||||
PHAssetCreationRequest *request = [PHAssetCreationRequest creationRequestForAssetFromImage:image];
|
||||
@@ -804,46 +975,55 @@ static void genImageFromLayer(CALayer *layer, UIColor *backgroundColor, void (^c
|
||||
});
|
||||
}]];
|
||||
|
||||
[alertController addAction:[UIAlertAction actionWithTitle:LOC(@"CopyPostAsImage") style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"CopyPostAsImage") titleColor:[[UIColor redColor] colorWithAlphaComponent:0.7f] iconImage:YTImageNamed(@"yt_outline_library_image_24pt") iconColor:[[UIColor redColor] colorWithAlphaComponent:0.7f] disableAutomaticButtonColor:YES accessibilityIdentifier:nil handler:^ {
|
||||
genImageFromLayer(layer, backgroundColor, ^(UIImage *image) {
|
||||
[UIPasteboard generalPasteboard].image = image;
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Copied") firstResponder:containerNode.closestViewController] send];
|
||||
});
|
||||
}]];
|
||||
|
||||
[alertController addAction:[UIAlertAction actionWithTitle:LOC(@"Cancel") style:UIAlertActionStyleCancel handler:nil]];
|
||||
|
||||
[containerNode.closestViewController presentViewController:alertController animated:YES completion:nil];
|
||||
[sheetController presentFromViewController:containerNode.closestViewController animated:YES completion:nil];
|
||||
}
|
||||
}
|
||||
|
||||
%new
|
||||
- (void)saveImage:(UILongPressGestureRecognizer *)sender {
|
||||
if (sender.state == UIGestureRecognizerStateBegan) {
|
||||
|
||||
ASNetworkImageNode *imageNode = (ASNetworkImageNode *)self.keepalive_node;
|
||||
NSURL *imageURL = imageNode.URL;
|
||||
|
||||
UIResponder *responder = self.nextResponder;
|
||||
while (responder && ![responder isKindOfClass:[UIViewController class]]) responder = responder.nextResponder;
|
||||
|
||||
if (imageURL) downloadImageFromURL(responder, imageURL);
|
||||
}
|
||||
}
|
||||
|
||||
%new
|
||||
- (void)copyComment:(UILongPressGestureRecognizer *)sender {
|
||||
- (void)commentManager:(UILongPressGestureRecognizer *)sender {
|
||||
if (sender.state == UIGestureRecognizerStateBegan) {
|
||||
ELMContainerNode *containerNode = (ELMContainerNode *)self.keepalive_node;
|
||||
NSString *comment = containerNode.copiedComment;
|
||||
|
||||
if (comment) {
|
||||
[UIPasteboard generalPasteboard].string = comment;
|
||||
CALayer *layer = self.layer;
|
||||
UIColor *backgroundColor = containerNode.closestViewController.view.backgroundColor;
|
||||
|
||||
UIResponder *responder = self.nextResponder;
|
||||
while (responder && ![responder isKindOfClass:[UIViewController class]]) responder = responder.nextResponder;
|
||||
if (responder) [[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Copied") firstResponder:responder] send];
|
||||
}
|
||||
YTDefaultSheetController *sheetController = [%c(YTDefaultSheetController) sheetControllerWithParentResponder:nil];
|
||||
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"CopyCommentText") iconImage:YTImageNamed(@"yt_outline_message_bubble_right_24pt") style:0 handler:^ {
|
||||
if (comment) {
|
||||
[UIPasteboard generalPasteboard].string = comment;
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Copied") firstResponder:containerNode.closestViewController] send];
|
||||
}
|
||||
}]];
|
||||
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"SaveCommentAsImage") iconImage:YTImageNamed(@"yt_outline_image_24pt") style:0 handler:^ {
|
||||
genImageFromLayer(layer, backgroundColor, ^(UIImage *image) {
|
||||
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
|
||||
PHAssetCreationRequest *request = [PHAssetCreationRequest creationRequestForAssetFromImage:image];
|
||||
request.creationDate = [NSDate date];
|
||||
} completionHandler:^(BOOL success, NSError *error) {
|
||||
NSString *message = success ? LOC(@"Saved") : [NSString stringWithFormat:LOC(@"%@: %@"), LOC(@"Error"), error.localizedDescription];
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:message firstResponder:containerNode.closestViewController] send];
|
||||
}];
|
||||
});
|
||||
}]];
|
||||
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"CopyCommentAsImage") iconImage:YTImageNamed(@"yt_outline_library_image_24pt") style:0 handler:^ {
|
||||
genImageFromLayer(layer, backgroundColor, ^(UIImage *image) {
|
||||
[UIPasteboard generalPasteboard].image = image;
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Copied") firstResponder:containerNode.closestViewController] send];
|
||||
});
|
||||
}]];
|
||||
|
||||
[sheetController presentFromViewController:containerNode.closestViewController animated:YES completion:nil];
|
||||
}
|
||||
}
|
||||
%end
|
||||
@@ -915,26 +1095,12 @@ BOOL isTabSelected = NO;
|
||||
%orig;
|
||||
|
||||
if (!isTabSelected && !kShortsOnlyMode) {
|
||||
NSString *pivotIdentifier;
|
||||
switch (kPivotIndex) {
|
||||
case 0:
|
||||
pivotIdentifier = @"FEwhat_to_watch";
|
||||
break;
|
||||
case 1:
|
||||
pivotIdentifier = @"FEexplore";
|
||||
break;
|
||||
case 2:
|
||||
pivotIdentifier = @"FEshorts";
|
||||
break;
|
||||
case 3:
|
||||
pivotIdentifier = @"FEsubscriptions";
|
||||
break;
|
||||
case 4:
|
||||
pivotIdentifier = @"FElibrary";
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
NSString *pivotIdentifier = kPivotIndex == 1 ? @"FEexplore" :
|
||||
kPivotIndex == 2 ? @"FEshorts" :
|
||||
kPivotIndex == 3 ? @"FEsubscriptions" :
|
||||
kPivotIndex == 4 ? @"FElibrary" :
|
||||
@"FEwhat_to_watch";
|
||||
|
||||
[self selectItemWithPivotIdentifier:pivotIdentifier];
|
||||
isTabSelected = YES;
|
||||
}
|
||||
@@ -981,7 +1147,7 @@ BOOL isTabSelected = NO;
|
||||
copyInfoButton.accessibilityLabel = LOC(@"CopyVideoInfo");
|
||||
[copyInfoButton setTag:999];
|
||||
[copyInfoButton enableNewTouchFeedback];
|
||||
[copyInfoButton setImage:[UIImage imageNamed:@"yt_outline_copy_24pt" inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil] forState:UIControlStateNormal];
|
||||
[copyInfoButton setImage:YTImageNamed(@"yt_outline_copy_24pt") forState:UIControlStateNormal];
|
||||
[copyInfoButton setTintColor:[UIColor labelColor]];
|
||||
[copyInfoButton setTranslatesAutoresizingMaskIntoConstraints:false];
|
||||
[copyInfoButton addTarget:self action:@selector(didTapCopyInfoButton:) forControlEvents:UIControlEventTouchUpInside];
|
||||
@@ -1005,22 +1171,19 @@ BOOL isTabSelected = NO;
|
||||
NSString *title = playerVC.playerResponse.playerData.videoDetails.title;
|
||||
NSString *shortDescription = playerVC.playerResponse.playerData.videoDetails.shortDescription;
|
||||
|
||||
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:LOC(@"SelectAction") message:nil preferredStyle:UIAlertControllerStyleActionSheet];
|
||||
alertController.view.tintColor = [UIColor labelColor];
|
||||
YTDefaultSheetController *sheetController = [%c(YTDefaultSheetController) sheetControllerWithParentResponder:nil];
|
||||
|
||||
[alertController addAction:[UIAlertAction actionWithTitle:LOC(@"CopyTitle") style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"CopyTitle") iconImage:YTImageNamed(@"yt_outline_text_box_24pt") style:0 handler:^ {
|
||||
[UIPasteboard generalPasteboard].string = title;
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Copied") firstResponder:self.resizeDelegate] send];
|
||||
}]];
|
||||
|
||||
[alertController addAction:[UIAlertAction actionWithTitle:LOC(@"CopyDescription") style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
||||
[sheetController addAction:[%c(YTActionSheetAction) actionWithTitle:LOC(@"CopyDescription") iconImage:YTImageNamed(@"yt_outline_message_bubble_right_24pt") style:0 handler:^ {
|
||||
[UIPasteboard generalPasteboard].string = shortDescription;
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Copied") firstResponder:self.resizeDelegate] send];
|
||||
}]];
|
||||
|
||||
[alertController addAction:[UIAlertAction actionWithTitle:LOC(@"Cancel") style:UIAlertActionStyleCancel handler:nil]];
|
||||
|
||||
[self.resizeDelegate presentViewController:alertController animated:YES completion:nil];
|
||||
[sheetController presentFromViewController:self.resizeDelegate animated:YES completion:nil];
|
||||
}
|
||||
%end
|
||||
|
||||
@@ -1094,6 +1257,9 @@ static void reloadPrefs() {
|
||||
kExtraSpeedOptions = [prefs[@"extraSpeedOptions"] boolValue] ?: NO;
|
||||
kDontSnapToChapter = [prefs[@"dontSnapToChapter"] boolValue] ?: NO;
|
||||
kRedProgressBar = [prefs[@"redProgressBar"] boolValue] ?: NO;
|
||||
kNoPlayerRemixButton = [prefs[@"noPlayerRemixButton"] boolValue] ?: NO;
|
||||
kNoPlayerClipButton = [prefs[@"noPlayerClipButton"] boolValue] ?: NO;
|
||||
kNoPlayerDownloadButton = [prefs[@"noPlayerDownloadButton"] boolValue] ?: NO;
|
||||
kNoHints = [prefs[@"noHints"] boolValue] ?: NO;
|
||||
kNoFreeZoom = [prefs[@"noFreeZoom"] boolValue] ?: NO;
|
||||
kAutoFullscreen = [prefs[@"autoFullscreen"] boolValue] ?: NO;
|
||||
@@ -1132,11 +1298,17 @@ static void reloadPrefs() {
|
||||
kRemoveLibrary = [prefs[@"removeLibrary"] boolValue] ?: NO;
|
||||
kCopyVideoInfo = [prefs[@"copyVideoInfo"] boolValue] ?: NO;
|
||||
kPostManager = [prefs[@"postManager"] boolValue] ?: NO;
|
||||
kSavePostImage = [prefs[@"savePostImage"] boolValue] ?: NO;
|
||||
kSaveProfilePhoto = [prefs[@"savePostImage"] boolValue] ?: NO;
|
||||
kCopyCommentText = [prefs[@"copyCommentText"] boolValue] ?: NO;
|
||||
kSaveProfilePhoto = [prefs[@"saveProfilePhoto"] boolValue] ?: NO;
|
||||
kCommentManager = [prefs[@"commentManager"] boolValue] ?: NO;
|
||||
kFixAlbums = [prefs[@"fixAlbums"] boolValue] ?: NO;
|
||||
kRemovePlayNext = [prefs[@"removePlayNext"] boolValue] ?: NO;
|
||||
kRemoveDownloadMenu = [prefs[@"removeDownloadMenu"] boolValue] ?: NO;
|
||||
kRemoveWatchLaterMenu = [prefs[@"removeWatchLaterMenu"] boolValue] ?: NO;
|
||||
kRemoveSaveToPlaylistMenu = [prefs[@"removeSaveToPlaylistMenu"] boolValue] ?: NO;
|
||||
kRemoveShareMenu = [prefs[@"removeShareMenu"] boolValue] ?: NO;
|
||||
kRemoveNotInterestedMenu = [prefs[@"removeNotInterestedMenu"] boolValue] ?: NO;
|
||||
kRemoveDontRecommendMenu = [prefs[@"removeDontRecommendMenu"] boolValue] ?: NO;
|
||||
kRemoveReportMenu = [prefs[@"removeReportMenu"] boolValue] ?: NO;
|
||||
kNoContinueWatching = [prefs[@"noContinueWatching"] boolValue] ?: NO;
|
||||
kNoSearchHistory = [prefs[@"noSearchHistory"] boolValue] ?: NO;
|
||||
kNoRelatedWatchNexts = [prefs[@"noRelatedWatchNexts"] boolValue] ?: NO;
|
||||
@@ -1144,6 +1316,8 @@ static void reloadPrefs() {
|
||||
kHideSortComments = [prefs[@"hideSortComments"] boolValue] ?: NO;
|
||||
kPlaylistOldMinibar = [prefs[@"playlistOldMinibar"] boolValue] ?: NO;
|
||||
kDisableRTL = [prefs[@"disableRTL"] boolValue] ?: NO;
|
||||
kWiFiQualityIndex = (prefs[@"wifiQualityIndex"] != nil) ? [prefs[@"wifiQualityIndex"] intValue] : 0;
|
||||
kCellQualityIndex = (prefs[@"cellQualityIndex"] != nil) ? [prefs[@"cellQualityIndex"] intValue] : 0;
|
||||
kPivotIndex = (prefs[@"pivotIndex"] != nil) ? [prefs[@"pivotIndex"] intValue] : 0;
|
||||
kAdvancedMode = [prefs[@"advancedMode"] boolValue] ?: NO;
|
||||
kAdvancedModeReminder = [prefs[@"advancedModeReminder"] boolValue] ?: NO;
|
||||
@@ -1180,6 +1354,9 @@ static void reloadPrefs() {
|
||||
@"extraSpeedOptions" : @(kExtraSpeedOptions),
|
||||
@"dontSnapToChapter" : @(kDontSnapToChapter),
|
||||
@"redProgressBar" : @(kRedProgressBar),
|
||||
@"noPlayerRemixButton" : @(kNoPlayerRemixButton),
|
||||
@"noPlayerClipButton" : @(kNoPlayerClipButton),
|
||||
@"noPlayerDownloadButton" : @(kNoPlayerDownloadButton),
|
||||
@"noHints" : @(kNoHints),
|
||||
@"noFreeZoom" : @(kNoFreeZoom),
|
||||
@"autoFullscreen" : @(kAutoFullscreen),
|
||||
@@ -1218,11 +1395,17 @@ static void reloadPrefs() {
|
||||
@"removeLibrary" : @(kRemoveLibrary),
|
||||
@"copyVideoInfo" : @(kCopyVideoInfo),
|
||||
@"postManager" : @(kPostManager),
|
||||
@"savePostImage" : @(kSavePostImage),
|
||||
@"saveProfilePhoto" : @(kSaveProfilePhoto),
|
||||
@"copyCommentText" : @(kCopyCommentText),
|
||||
@"commentManager" : @(kCommentManager),
|
||||
@"fixAlbums" : @(kFixAlbums),
|
||||
@"removePlayNext" : @(kRemovePlayNext),
|
||||
@"removeDownloadMenu" : @(kRemoveDownloadMenu),
|
||||
@"removeWatchLaterMenu" : @(kRemoveWatchLaterMenu),
|
||||
@"removeSaveToPlaylistMenu" : @(kRemoveSaveToPlaylistMenu),
|
||||
@"removeShareMenu" : @(kRemoveShareMenu),
|
||||
@"removeNotInterestedMenu" : @(kRemoveNotInterestedMenu),
|
||||
@"removeDontRecommendMenu" : @(kRemoveDontRecommendMenu),
|
||||
@"removeReportMenu" : @(kRemoveReportMenu),
|
||||
@"noContinueWatching" : @(kNoContinueWatching),
|
||||
@"noSearchHistory" : @(kNoSearchHistory),
|
||||
@"noRelatedWatchNexts" : @(kNoRelatedWatchNexts),
|
||||
@@ -1230,6 +1413,8 @@ static void reloadPrefs() {
|
||||
@"hideSortComments" : @(kHideSortComments),
|
||||
@"playlistOldMinibar" : @(kPlaylistOldMinibar),
|
||||
@"disableRTL" : @(kDisableRTL),
|
||||
@"wifiQualityIndex" : @(kWiFiQualityIndex),
|
||||
@"cellQualityIndex" : @(kCellQualityIndex),
|
||||
@"pivotIndex" : @(kPivotIndex),
|
||||
@"advancedMode" : @(kAdvancedMode),
|
||||
@"advancedModeReminder" : @(kAdvancedModeReminder)
|
||||
@@ -1252,6 +1437,24 @@ static void prefsChanged(CFNotificationCenterRef center, void *observer, CFStrin
|
||||
[prefs writeToFile:path atomically:NO];
|
||||
}
|
||||
|
||||
if (![prefs[@"advancedMode"] boolValue] && ![prefs[@"advancedModeReminder"] boolValue]) {
|
||||
[prefs setObject:@(YES) forKey:@"advancedModeReminder"];
|
||||
[prefs writeToFile:path atomically:NO];
|
||||
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
YTAlertView *alertView = [%c(YTAlertView) confirmationDialogWithAction:^{
|
||||
[prefs setObject:@(YES) forKey:@"advancedMode"];
|
||||
[prefs writeToFile:path atomically:NO];
|
||||
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.dvntm.ytlite.prefschanged"), NULL, NULL, YES);
|
||||
}
|
||||
actionTitle:LOC(@"Yes")
|
||||
cancelTitle:LOC(@"No")];
|
||||
alertView.title = @"YTLite";
|
||||
alertView.subtitle = [NSString stringWithFormat:LOC(@"AdvancedModeReminder"), @"YTLite", LOC(@"Version"), LOC(@"Advanced")];
|
||||
[alertView show];
|
||||
});
|
||||
}
|
||||
|
||||
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)prefsChanged, CFSTR("com.dvntm.ytlite.prefschanged"), NULL, CFNotificationSuspensionBehaviorCoalesce);
|
||||
reloadPrefs();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
#import "../YouTubeHeader/YTAlertView.h"
|
||||
#import "../YouTubeHeader/YTIGuideResponse.h"
|
||||
#import "../YouTubeHeader/YTIGuideResponseSupportedRenderers.h"
|
||||
#import "../YouTubeHeader/YTIPivotBarSupportedRenderers.h"
|
||||
#import "../YouTubeHeader/YTIPivotBarRenderer.h"
|
||||
#import "../YouTubeHeader/YTIBrowseRequest.h"
|
||||
#import "../YouTubeHeader/YTISectionListRenderer.h"
|
||||
#import "../YouTubeHeader/YTQTMButton.h"
|
||||
#import "../YouTubeHeader/YTIButtonRenderer.h"
|
||||
#import "../YouTubeHeader/YTVideoQualitySwitchOriginalController.h"
|
||||
#import "../YouTubeHeader/YTWatchController.h"
|
||||
#import "../YouTubeHeader/YTPlayerOverlay.h"
|
||||
#import "../YouTubeHeader/YTPlayerOverlayProvider.h"
|
||||
#import "../YouTubeHeader/YTSettingsViewController.h"
|
||||
#import "../YouTubeHeader/YTSettingsSectionItem.h"
|
||||
#import "../YouTubeHeader/YTSettingsSectionItemManager.h"
|
||||
#import "../YouTubeHeader/YTSettingsPickerViewController.h"
|
||||
#import "../YouTubeHeader/YTUIUtils.h"
|
||||
#import "../YouTubeHeader/YTIMenuConditionalServiceItemRenderer.h"
|
||||
#import "../YouTubeHeader/YTToastResponderEvent.h"
|
||||
#import "../YouTubeHeader/YTPageStyleController.h"
|
||||
#import "../YouTubeHeader/ASCollectionElement.h"
|
||||
#import "../YouTubeHeader/ASCollectionView.h"
|
||||
#import "../YouTubeHeader/ELMNodeController.h"
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 8.3 KiB |
@@ -67,6 +67,12 @@
|
||||
"DontSnap2ChapterDesc" = "Disables skipping to the next episode by double-tap gesture.";
|
||||
"RedProgressBar" = "Red progress bar";
|
||||
"RedProgressBarDesc" = "Brings back red progress bar.";
|
||||
"NoPlayerRemixButton" = "Remove remix button";
|
||||
"NoPlayerRemixButtonDesc" = "Removes remix button under the player.";
|
||||
"NoPlayerClipButton" = "Remove clip button";
|
||||
"NoPlayerClipButtonDesc" = "Removes clip button under the player.";
|
||||
"NoPlayerDownloadButton" = "Remove download button";
|
||||
"NoPlayerDownloadButtonDesc" = "Removes download button under the player.";
|
||||
"NoHints" = "Disable hints";
|
||||
"NoHintsDesc" = "Disables hints by author which appears at the top-right corner during playback.";
|
||||
"NoFreeZoom" = "Disable free zoom gesture";
|
||||
@@ -147,16 +153,28 @@
|
||||
"CopyVideoInfoDesc" = "Adds button to copy video title and description into Video Description panel.";
|
||||
"PostManager" = "Save post information";
|
||||
"PostManagerDesc" = "Allows to copy post text and save post as image by long tap.";
|
||||
"SavePostImage" = "Save image from community posts";
|
||||
"SavePostImageDesc" = "Saves community post image to the Photos app by long tap.";
|
||||
"SaveProfilePhoto" = "Save profile picture";
|
||||
"SaveProfilePhotoDesc" = "Saves profile picture to the Photos app by long tap.";
|
||||
"CopyCommentText" = "Copy comments text";
|
||||
"CopyCommentTextDesc" = "Copies comments text to the clipboard by long tap.";
|
||||
"CommentManager" = "Save comment information";
|
||||
"CommentManagerDesc" = "Allows to copy comment text and save comment as image by long tap.";
|
||||
"FixAlbums" = "Fix covers";
|
||||
"FixAlbumsDesc" = "Fixes the display of covers for users from Russia.";
|
||||
"RemovePlayNext" = "Remove \"Play next in queue\"";
|
||||
"RemovePlayNextDesc" = "Removes \"Play next in queue\" option from menu.";
|
||||
"RemoveDownloadMenu" = "Remove \"Download\"";
|
||||
"RemoveDownloadMenuDesc" = "Removes \"Download\" option from menu.";
|
||||
"RemoveWatchLaterMenu" = "Remove \"Save to Watch Later\"";
|
||||
"RemoveWatchLaterMenuDesc" = "Removes \"Save to Watch Later\" option from menu.";
|
||||
"RemoveSaveToPlaylistMenu" = "Remove \"Save to playlist\"";
|
||||
"RemoveSaveToPlaylistMenuDesc" = "Removes \"Save to playlist\" option from menu.";
|
||||
"RemoveShareMenu" = "Remove \"Share\"";
|
||||
"RemoveShareMenuDesc" = "Removes \"Share\" option from menu.";
|
||||
"RemoveNotInterestedMenu" = "Remove \"Not interested\"";
|
||||
"RemoveNotInterestedMenuDesc" = "Removes \"Not interested\" option from menu.";
|
||||
"RemoveDontRecommendMenu" = "Remove \"Don't recommend channel\"";
|
||||
"RemoveDontRecommendMenuDesc" = "Removes \"Don't recommend channel\" option from menu.";
|
||||
"RemoveReportMenu" = "Remove \"Report\"";
|
||||
"RemoveReportMenuDesc" = "Removes \"Report\" option from menu.";
|
||||
"NoContinueWatching" = "Remove \"Continue watching\"";
|
||||
"NoContinueWatchingDesc" = "Removes the \"Continue watching\" section containing unfinished videos from the Home page.";
|
||||
"NoSearchHistory" = "Hide search history";
|
||||
@@ -172,6 +190,12 @@
|
||||
"DisableRTL" = "Disable RTL formatting";
|
||||
"DisableRTLDesc" = "Forcefully displays text in left-to-right (LTR) format for languages that are initially displayed in right-to-left (RTL).";
|
||||
|
||||
"PlaybackQualityOnWiFi" = "Playback quality on WiFi";
|
||||
"PlaybackQualityOnCellular" = "Playback quality on Cellular";
|
||||
"SelectQuality" = "Select Quality";
|
||||
"Default" = "Default";
|
||||
"Best" = "Best";
|
||||
|
||||
"Startup" = "Startup page";
|
||||
"Home" = "Home";
|
||||
"Explore" = "Explore";
|
||||
@@ -181,8 +205,8 @@
|
||||
"Warning" = "Warning";
|
||||
"TabIsHidden" = "Hidden tab cannot be selected as startup page";
|
||||
|
||||
"DonateViaPayPal" = "Donate via PayPal";
|
||||
"SupportViaGhSponsors" = "Support development via Github Sponsors";
|
||||
"SupportDevelopment" = "Support development";
|
||||
"SupportDevelopmentDesc" = "If you like YTLite and would like to support its development, you can do it using any of convenient ways below.\nThanks❤";
|
||||
"Version" = "Version";
|
||||
"About" = "About";
|
||||
"Credits" = "Credits";
|
||||
@@ -194,6 +218,7 @@
|
||||
"Japanese" = "Japanese localization";
|
||||
"Vietnamese" = "Vietnamese localization";
|
||||
"Advanced" = "Advanced mode";
|
||||
"AdvancedDesc" = "More customizable mode";
|
||||
"AdvancedModeReminder" = "Would you like to activate Advanced mode for YTLite?\n\nThis mode provides more than 50 additional options to customize and optimize your YouTube experience. You can enable/disable it later from Settings → %@ → %@ → %@.";
|
||||
"ClearCache" = "Clear cache";
|
||||
"ResetSettings" = "Reset YTLite settings";
|
||||
@@ -207,8 +232,15 @@
|
||||
"CopyTitle" = "Copy title";
|
||||
"CopyDescription" = "Copy description";
|
||||
"CopyPostText" = "Copy post text";
|
||||
"SaveCurrentImage" = "Save current image";
|
||||
"CopyCurrentImage" = "Copy current image";
|
||||
"SavePostAsImage" = "Save post as image";
|
||||
"CopyPostAsImage" = "Copy post as image";
|
||||
"CopyCommentText" = "Copy comment text";
|
||||
"SaveCommentAsImage" = "Save comment as image";
|
||||
"CopyCommentAsImage" = "Copy comment as image";
|
||||
"SaveProfilePicture" = "Save profile picture";
|
||||
"CopyProfilePicture" = "Copy profile picture";
|
||||
"Cancel" = "Cancel";
|
||||
"Copied" = "Copied to clipboard";
|
||||
"Saved" = "Saved to Photos";
|
||||
|
||||
@@ -67,6 +67,12 @@
|
||||
"DontSnap2ChapterDesc" = "Desactiva el salto al siguiente episodio mediante el gesto de doble toque.";
|
||||
"RedProgressBar" = "Barra de progreso roja";
|
||||
"RedProgressBarDesc" = "Devuelve la barra de progreso roja.";
|
||||
"NoPlayerRemixButton" = "Quitar botón Remix";
|
||||
"NoPlayerRemixButtonDesc" = "Elimina el botón Remix situado debajo del reproductor.";
|
||||
"NoPlayerClipButton" = "Elimina el botón de clip";
|
||||
"NoPlayerClipButtonDesc" = "Elimina botón de clip debajo del reproductor";
|
||||
"NoPlayerDownloadButton" = "Elimina el botón de descarga";
|
||||
"NoPlayerDownloadButtonDesc" = "Elimina el botón de descarga situado bajo el reproductor";
|
||||
"NoHints" = "Desactivar sugerencias";
|
||||
"NoHintsDesc" = "Desactiva las sugerencias del autor que aparecen en la esquina superior derecha durante la reproducción.";
|
||||
"NoFreeZoom" = "Desactivar gesto de zoom libre";
|
||||
@@ -143,20 +149,32 @@
|
||||
"HideShortsAudioTrackDesc" = "Oculta la pista de audio debajo de la descripción de Shorts.";
|
||||
|
||||
"Other" = "Otro";
|
||||
"CopyVideoInfo" = "Copy video information";
|
||||
"CopyVideoInfoDesc" = "Adds button to copy video title and description into Video Description panel.";
|
||||
"PostManager" = "Save post information";
|
||||
"PostManagerDesc" = "Allows to copy post text and save post as image by long tap.";
|
||||
"SavePostImage" = "Guardar imagen de las entradas de la comunidad";
|
||||
"SavePostImageDesc" = "Guarda la imagen de las publicaciones de la comunidad en la aplicación Fotos con un toque prolongado";
|
||||
"CopyVideoInfo" = "Copia la información del vídeo";
|
||||
"CopyVideoInfoDesc" = "Añade un botón para copiar el título y la descripción del vídeo en el panel de descripción del vídeo.";
|
||||
"PostManager" = "Guardar información de post";
|
||||
"PostManagerDesc" = "Permite copiar el texto de la entrada y guardarla como imagen pulsando prolongadamente";
|
||||
"SaveProfilePhoto" = "Guardar foto de perfil";
|
||||
"SaveProfilePhotoDesc" = "Guarda la imagen de perfil en la aplicación Fotos con un toque prolongado";
|
||||
"CopyCommentText" = "Copy comments text";
|
||||
"CopyCommentTextDesc" = "Copies comments text to the clipboard by long tap.";
|
||||
"CommentManager" = "Guardar información de comentarios";
|
||||
"CommentManagerDesc" = "Permite copiar texto de comentario y guardar comentario como imagen mediante pulsación larga".;
|
||||
"FixAlbums" = "Arreglar portadas";
|
||||
"FixAlbumsDesc" = "Corrige la visualización de portadas para usuarios de Rusia";
|
||||
"RemovePlayNext" = "Eliminar \"Reproducir siguiente en cola\"";
|
||||
"RemovePlayNextDesc" = "Elimina la opción \"Reproducir siguiente en cola\" del menú.";
|
||||
"RemoveDownloadMenu" = "Quitar \"Descargar\"";
|
||||
"RemoveDownloadMenuDesc" = "Elimina la opción \"Descargar\" del menú.";
|
||||
"RemoveWatchLaterMenu" = "Eliminar \"Guardar para ver después\"";
|
||||
"RemoveWatchLaterMenuDesc" = "Elimina del menú la opción \"Guardar para ver más tarde\"";
|
||||
"RemoveSaveToPlaylistMenu" = "Quitar \"Guardar en lista de reproducción\"";
|
||||
"RemoveSaveToPlaylistMenuDesc" = "Elimina la opción \"Guardar en lista de reproducción\" del menú.";
|
||||
"RemoveShareMenu" = "Eliminar \"Compartir\"";
|
||||
"RemoveShareMenuDesc" = "Elimina la opción \"Compartir\" del menú.";
|
||||
"RemoveNotInterestedMenu" = "Eliminar \"No me interesa\"";
|
||||
"RemoveNotInterestedMenuDesc" = "Elimina la opción \"No me interesa\" del menú.";
|
||||
"RemoveDontRecommendMenu" = "Quitar \"No recomiendo canal\"";
|
||||
"RemoveDontRecommendMenuDesc" = "Elimina del menú la opción \"No recomiendo canal\"";
|
||||
"RemoveReportMenu" = "Eliminar \"Reportar\"";
|
||||
"RemoveReportMenuDesc" = "Elimina la opción \"Reportar\" del menú.";
|
||||
"NoContinueWatching" = "Eliminar \"Continuar viendo\"";
|
||||
"NoContinueWatchingDesc" = "Elimina la sección \"Continuar viendo\" que contiene videos sin terminar de la página de inicio.";
|
||||
"NoSearchHistory" = "Ocultar el historial de búsqueda";
|
||||
@@ -172,6 +190,12 @@
|
||||
"DisableRTL" = "Desactivar el formato RTL";
|
||||
"DisableRTLDesc" = "Muestra forzosamente el texto en formato de izquierda a derecha (LTR) para los idiomas que se muestran inicialmente en formato de derecha a izquierda (RTL).";
|
||||
|
||||
"PlaybackQualityOnWiFi" = "Calidad de reproducción en WiFi";
|
||||
"PlaybackQualityOnCellular" = "Calidad de reproducción en Cellular";
|
||||
"SelectQuality" = "Seleccionar calidad";
|
||||
"Default" = "Por defecto";
|
||||
"Best" = "Mejor";
|
||||
|
||||
"Startup" = "Página de inicio";
|
||||
"Home" = "Inicio";
|
||||
"Explore" = "Explorar";
|
||||
@@ -181,8 +205,8 @@
|
||||
"Warning" = "Advertencia";
|
||||
"TabIsHidden" = "No se puede seleccionar una pestaña oculta como página de inicio";
|
||||
|
||||
"DonateViaPayPal" = "Donate via PayPal";
|
||||
"SupportViaGhSponsors" = "Support development via Github Sponsors";
|
||||
"SupportDevelopment" = "Apoya el desarrollo";
|
||||
"SupportDevelopmentDesc" = "Si le gusta YTLite y quiere apoyar su desarrollo, puede hacerlo de cualquiera de las formas que se indican a continuación.\nGracias❤";
|
||||
"Version" = "Versión";
|
||||
"About" = "Acerca de";
|
||||
"Credits" = "Créditos";
|
||||
@@ -194,6 +218,7 @@
|
||||
"Japanese" = "Traducción: Japonés";
|
||||
"Vietnamese" = "Vietnamese localization";
|
||||
"Advanced" = "Modo avanzado";
|
||||
"AdvancedDesc" = "More customizable mode";
|
||||
"AdvancedModeReminder" = "¿Desea activar el modo Avanzado para YTLite?\n\nEste modo ofrece más de 50 opciones adicionales para personalizar y optimizar tu experiencia en YouTube. Puedes activarlo/desactivarlo más tarde desde Ajustes → %@ → %@ → %@.";
|
||||
"ClearCache" = "Clear cache";
|
||||
"ResetSettings" = "Restablecer configuración de YTLite";
|
||||
@@ -203,14 +228,21 @@
|
||||
"Yes" = "Sí";
|
||||
"No" = "No";
|
||||
|
||||
"SelectAction" = "Select action";
|
||||
"CopyTitle" = "Copy title";
|
||||
"CopyDescription" = "Copy description";
|
||||
"CopyPostText" = "Copy post text";
|
||||
"SavePostAsImage" = "Save post as image";
|
||||
"CopyPostAsImage" = "Copy post as image";
|
||||
"Cancel" = "Cancel";
|
||||
"SelectAction" = "Seleccionar acción";
|
||||
"CopyTitle" = "Copiar título";
|
||||
"CopyDescription" = "Copiar descripción";
|
||||
"CopyPostText" = "Copiar texto de post";
|
||||
"SaveCurrentImage" = "Guardar imagen actual";
|
||||
"CopyCurrentImage" = "Copiar imagen actual";
|
||||
"SavePostAsImage" = "Guardar post como imagen";
|
||||
"CopyPostAsImage" = "Copiar post como imagen";
|
||||
"CopyCommentText" = "Copiar texto de comentario";
|
||||
"SaveCommentAsImage" = "Guardar comentario como imagen";
|
||||
"CopyCommentAsImage" = "Copiar comentario como imagen";
|
||||
"SaveProfilePicture" = "Guardar imagen de perfil";
|
||||
"CopyProfilePicture" = "Copiar imagen de perfil";
|
||||
"Cancel" = "Cancelar";
|
||||
"Copied" = "Copiado al portapapeles";
|
||||
"Done" = "Done";
|
||||
"Saved" = "Guardado en Fotos";
|
||||
"Error" = "Error";
|
||||
"Done" = "Hecho";
|
||||
"Error" = "Error";
|
||||
|
||||
@@ -67,6 +67,12 @@
|
||||
"DontSnap2ChapterDesc" = "Désactive le passage à l'épisode suivant en double tapant.";
|
||||
"RedProgressBar" = "Barre de progression rouge";
|
||||
"RedProgressBarDesc" = "Ramène la barre de progression rouge.";
|
||||
"NoPlayerRemixButton" = "Supprimer le bouton de remix";
|
||||
"NoPlayerRemixButtonDesc" = "Supprime le bouton de remix sous le lecteur.";
|
||||
"NoPlayerClipButton" = "Supprimer le bouton de clip";
|
||||
"NoPlayerClipButtonDesc" = "Supprime le bouton de clip sous le lecteur.";
|
||||
"NoPlayerDownloadButton" = "Supprimer le bouton de téléchargement";
|
||||
"NoPlayerDownloadButtonDesc" = "Supprime le bouton de téléchargement sous le lecteur.";
|
||||
"NoHints" = "Désactiver les indices";
|
||||
"NoHintsDesc" = "Désactive les indices de l'auteur qui apparaissent dans le coin supérieur droit pendant la lecture.";
|
||||
"NoFreeZoom" = "Désactiver le geste de zoom libre";
|
||||
@@ -145,18 +151,30 @@
|
||||
"Other" = "Autre";
|
||||
"CopyVideoInfo" = "Copier les informations vidéo";
|
||||
"CopyVideoInfoDesc" = "Ajout d'un bouton permettant de copier le titre et la description de la vidéo dans le panneau Description de la vidéo.";
|
||||
"PostManager" = "Save post information";
|
||||
"PostManagerDesc" = "Allows to copy post text and save post as image by long tap.";
|
||||
"SavePostImage" = "Enregistrer l'image des publications de la communauté";
|
||||
"SavePostImageDesc" = "Enregistre l'image des publications de la communauté dans l'application Photos en appuyant longuement.";
|
||||
"PostManager" = "Gérer les publications";
|
||||
"PostManagerDesc" = "Permet de copier le texte de la publication et de sauvegarder la publication en tant qu'image en maintenant le toucher.";
|
||||
"SaveProfilePhoto" = "Enregistrer la photo de profil";
|
||||
"SaveProfilePhotoDesc" = "Enregistre la photo de profil dans l'application Photos en appuyant longuement.";
|
||||
"CopyCommentText" = "Copier le texte des commentaires";
|
||||
"CopyCommentTextDesc" = "Copie le texte des commentaires dans le presse-papiers par un appui long.";
|
||||
"FixAlbums" = "Réparer les couvertures";
|
||||
"FixAlbumsDesc" = "Répare l'affichage des couvertures pour les utilisateurs de Russie.";
|
||||
"CommentManager" = "Gérer les commentaires";
|
||||
"CommentManagerDesc" = "Permet de copier le texte des commentaires et de sauvegarder le commentaire en tant qu'image en maintenant une pression prolongée.";
|
||||
"FixAlbums" = "Réparer les vignettes";
|
||||
"FixAlbumsDesc" = "Répare l'affichage des vignettes pour les utilisateurs de Russie.";
|
||||
"RemovePlayNext" = "Supprimer \"Placer en première position dans la file d'attente\"";
|
||||
"RemovePlayNextDesc" = "Supprime l'option \"Placer en première position dans la file d'attente\" du menu.";
|
||||
"RemoveDownloadMenu" = "Supprimer \"Télécharger\"";
|
||||
"RemoveDownloadMenuDesc" = "Supprime l'option \"Télécharger\" du menu.";
|
||||
"RemoveWatchLaterMenu" = "Supprimer \"Enregistrer pour plus tard\"";
|
||||
"RemoveWatchLaterMenuDesc" = "Supprime l'option \"Enregistrer pour plus tard\" du menu.";
|
||||
"RemoveSaveToPlaylistMenu" = "Supprimer \"Enregistrer dans une playlist\"";
|
||||
"RemoveSaveToPlaylistMenuDesc" = "Supprime l'option \"Enregistrer dans une playlist\" du menu.";
|
||||
"RemoveShareMenu" = "Supprimer \"Partager\"";
|
||||
"RemoveShareMenuDesc" = "Supprime l'option \"Partager\" du menu.";
|
||||
"RemoveNotInterestedMenu" = "Supprimer \"Pas intéressé\"";
|
||||
"RemoveNotInterestedMenuDesc" = "Supprime l'option \"Pas intéressé\" du menu.";
|
||||
"RemoveDontRecommendMenu" = "Supprimer \"Ne pas recommander la chaîne\"";
|
||||
"RemoveDontRecommendMenuDesc" = "Supprime l'option \"Ne pas recommander la chaîne\" du menu.";
|
||||
"RemoveReportMenu" = "Supprimer \"Signaler\"";
|
||||
"RemoveReportMenuDesc" = "Supprime l'option \"Signaler\" du menu.";
|
||||
"NoContinueWatching" = "Supprimer \"Continuer à regarder\"";
|
||||
"NoContinueWatchingDesc" = "Supprime la section \"Continuer à regarder\" contenant les vidéos inachevées de la page d'accueil.";
|
||||
"NoSearchHistory" = "Masquer l'historique de recherche";
|
||||
@@ -172,6 +190,12 @@
|
||||
"DisableRTL" = "Désactiver le formatage de droite à gauche";
|
||||
"DisableRTLDesc" = "Affiche le texte de force en format de gauche à droite (LTR) pour les langues qui sont initialement affichées de droite à gauche (RTL).";
|
||||
|
||||
"PlaybackQualityOnWiFi" = "Qualité de lecture sur WiFi";
|
||||
"PlaybackQualityOnCellular" = "Qualité de lecture sur réseau cellulaire";
|
||||
"SelectQuality" = "Sélectionner la qualité";
|
||||
"Default" = "Par défaut";
|
||||
"Best" = "Meilleure";
|
||||
|
||||
"Startup" = "Page de démarrage";
|
||||
"Home" = "Accueil";
|
||||
"Explore" = "Explorer";
|
||||
@@ -181,8 +205,8 @@
|
||||
"Warning" = "Avertissement";
|
||||
"TabIsHidden" = "L'onglet masqué ne peut pas être sélectionné comme page de démarrage";
|
||||
|
||||
"DonateViaPayPal" = "Faire un don via PayPal";
|
||||
"SupportViaGhSponsors" = "Soutenir le développement via les sponsors Github";
|
||||
"SupportDevelopment" = "Soutenir le développement";
|
||||
"SupportDevelopmentDesc" = "Si vous aimez YTLite et souhaitez soutenir son développement, vous pouvez le faire en utilisant l'une des méthodes pratiques ci-dessous.\nMerci❤";
|
||||
"Version" = "Version";
|
||||
"About" = "À propos";
|
||||
"Credits" = "Crédits";
|
||||
@@ -194,6 +218,7 @@
|
||||
"Japanese" = "Localisation japonaise";
|
||||
"Vietnamese" = "Localisation vietnamienne";
|
||||
"Advanced" = "Mode avancé";
|
||||
"AdvancedDesc" = "Mode plus personnalisable";
|
||||
"AdvancedModeReminder" = "Voulez-vous activer le mode avancé pour YTLite ?\n\nCe mode offre plus de 50 options supplémentaires pour personnaliser et optimiser votre expérience YouTube. Vous pouvez l'activer/désactiver ultérieurement depuis Paramètres → %@ → %@ → %@.";
|
||||
"ClearCache" = "Effacer le cache";
|
||||
"ResetSettings" = "Réinitialiser les paramètres YTLite";
|
||||
@@ -206,11 +231,16 @@
|
||||
"SelectAction" = "Sélectionner une action";
|
||||
"CopyTitle" = "Copier le titre";
|
||||
"CopyDescription" = "Copier la description";
|
||||
"CopyPostText" = "Copy post text";
|
||||
"SavePostAsImage" = "Save post as image";
|
||||
"CopyPostAsImage" = "Copy post as image";
|
||||
"CopyPostText" = "Copier le texte de la publication";
|
||||
"SavePostAsImage" = "Enregistrer la publication en tant qu'image";
|
||||
"CopyPostAsImage" = "Copier la publication en tant qu'image";
|
||||
"CopyCommentText" = "Copier le texte du commentaire";
|
||||
"SaveCommentAsImage" = "Enregistrer le commentaire en tant qu'image";
|
||||
"CopyCommentAsImage" = "Copier le commentaire en tant qu'image";
|
||||
"SaveProfilePicture" = "Enregistrer la photo de profil";
|
||||
"CopyProfilePicture" = "Copier la photo de profil";
|
||||
"Cancel" = "Annuler";
|
||||
"Copied" = "Copié dans le presse-papiers";
|
||||
"Saved" = "Enregistré dans Photos";
|
||||
"Done" = "Terminé";
|
||||
"Error" = "Erreur";
|
||||
"Error" = "Erreur";
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.3 KiB |
@@ -67,6 +67,12 @@
|
||||
"DontSnap2ChapterDesc" = "ダブルタップジェスチャーで次のエピソードへスキップするのを無効にします";
|
||||
"RedProgressBar" = "赤いプログレスバー";
|
||||
"RedProgressBarDesc" = "赤いプログレスバーを復元します";
|
||||
"NoPlayerRemixButton" = "Remove remix button";
|
||||
"NoPlayerRemixButtonDesc" = "Removes remix button under the player.";
|
||||
"NoPlayerClipButton" = "Remove clip button";
|
||||
"NoPlayerClipButtonDesc" = "Removes clip button under the player.";
|
||||
"NoPlayerDownloadButton" = "Remove download button";
|
||||
"NoPlayerDownloadButtonDesc" = "Removes download button under the player.";
|
||||
"NoHints" = "ヒントを無効化";
|
||||
"NoHintsDesc" = "再生中に右上に表示される投稿者のヒントを無効にします";
|
||||
"NoFreeZoom" = "フリーズームジェスチャーを無効化";
|
||||
@@ -147,16 +153,28 @@
|
||||
"CopyVideoInfoDesc" = "Adds button to copy video title and description into Video Description panel.";
|
||||
"PostManager" = "Save post information";
|
||||
"PostManagerDesc" = "Allows to copy post text and save post as image by long tap.";
|
||||
"SavePostImage" = "Save community posts image";
|
||||
"SavePostImageDesc" = "Saves community posts image to the Photos app by long tap.";
|
||||
"SaveProfilePhoto" = "Save profile picture";
|
||||
"SaveProfilePhotoDesc" = "Saves profile picture to the Photos app by long tap.";
|
||||
"CopyCommentText" = "Copy comments text";
|
||||
"CopyCommentTextDesc" = "Copies comments text to the clipboard by long tap.";
|
||||
"CommentManager" = "Save comment information";
|
||||
"CommentManagerDesc" = "Allows to copy comment text and save comment as image by long tap.";
|
||||
"FixAlbums" = "Fix covers";
|
||||
"FixAlbumsDesc" = "Fixes the display of covers for users from Russia.";
|
||||
"RemovePlayNext" = "\"次に再生\"を削除";
|
||||
"RemovePlayNextDesc" = "メニューから\"次に再生\"オプションを削除します";
|
||||
"RemoveDownloadMenu" = "Remove \"Download\"";
|
||||
"RemoveDownloadMenuDesc" = "Removes \"Download\" option from menu.";
|
||||
"RemoveWatchLaterMenu" = "Remove \"Save to Watch Later\"";
|
||||
"RemoveWatchLaterMenuDesc" = "Removes \"Save to Watch Later\" option from menu.";
|
||||
"RemoveSaveToPlaylistMenu" = "Remove \"Save to playlist\"";
|
||||
"RemoveSaveToPlaylistMenuDesc" = "Removes \"Save to playlist\" option from menu.";
|
||||
"RemoveShareMenu" = "Remove \"Share\"";
|
||||
"RemoveShareMenuDesc" = "Removes \"Share\" option from menu.";
|
||||
"RemoveNotInterestedMenu" = "Remove \"Not interested\"";
|
||||
"RemoveNotInterestedMenuDesc" = "Removes \"Not interested\" option from menu.";
|
||||
"RemoveDontRecommendMenu" = "Remove \"Don't recommend channel\"";
|
||||
"RemoveDontRecommendMenuDesc" = "Removes \"Don't recommend channel\" option from menu.";
|
||||
"RemoveReportMenu" = "Remove \"Report\"";
|
||||
"RemoveReportMenuDesc" = "Removes \"Report\" option from menu.";
|
||||
"NoContinueWatching" = "\"続きを見る\"を削除";
|
||||
"NoContinueWatchingDesc" = "ホームページに未完成の動画を含む\"続きを見る\"セクションを削除します";
|
||||
"NoSearchHistory" = "検索履歴を非表示";
|
||||
@@ -172,6 +190,12 @@
|
||||
"DisableRTL" = "RTLフォーマットを無効化";
|
||||
"DisableRTLDesc" = "RTLで表示される言語を左から右(LTR)の形式で表示するように強制します";
|
||||
|
||||
"PlaybackQualityOnWiFi" = "Playback quality on WiFi";
|
||||
"PlaybackQualityOnCellular" = "Playback quality on Cellular";
|
||||
"SelectQuality" = "Select Quality";
|
||||
"Default" = "Default";
|
||||
"Best" = "Best";
|
||||
|
||||
"Startup" = "スタートアップページ";
|
||||
"Home" = "ホーム";
|
||||
"Explore" = "探索";
|
||||
@@ -181,8 +205,8 @@
|
||||
"Warning" = "警告";
|
||||
"TabIsHidden" = "非表示のタブはスタートアップページとして選択できません";
|
||||
|
||||
"DonateViaPayPal" = "Donate via PayPal";
|
||||
"SupportViaGhSponsors" = "Support development via Github Sponsors";
|
||||
"SupportDevelopment" = "Support development";
|
||||
"SupportDevelopmentDesc" = "If you like YTLite and would like to support its development, you can do it using any of convenient ways below.\nThanks❤";
|
||||
"Version" = "バージョン";
|
||||
"About" = "About";
|
||||
"Credits" = "クレジット";
|
||||
@@ -194,6 +218,7 @@
|
||||
"Japanese" = "日本語翻訳";
|
||||
"Vietnamese" = "Vietnamese localization";
|
||||
"Advanced" = "アドバンスモード";
|
||||
"AdvancedDesc" = "More customizable mode";
|
||||
"AdvancedModeReminder" = "YTLiteでアドバンスモードを有効にしますか?\n\nこのモードでは50以上の追加オプションを使用してYouTubeのカスタマイズと最適化が可能です。後で、設定 → %@ → %@ → %@から変更できます";
|
||||
"ClearCache" = "Clear cache";
|
||||
"ResetSettings" = "YTLiteの設定をリセット";
|
||||
@@ -209,6 +234,11 @@
|
||||
"CopyPostText" = "Copy post text";
|
||||
"SavePostAsImage" = "Save post as image";
|
||||
"CopyPostAsImage" = "Copy post as image";
|
||||
"CopyCommentText" = "Copy comment text";
|
||||
"SaveCommentAsImage" = "Save comment as image";
|
||||
"CopyCommentAsImage" = "Copy comment as image";
|
||||
"SaveProfilePicture" = "Save profile picture";
|
||||
"CopyProfilePicture" = "Copy profile picture";
|
||||
"Cancel" = "Cancel";
|
||||
"Copied" = "Copied to clipboard";
|
||||
"Saved" = "Saved to Photos";
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
@@ -67,6 +67,12 @@
|
||||
"DontSnap2ChapterDesc" = "Отключает жест перемотки к следующему эпизоду двойным нажатием.";
|
||||
"RedProgressBar" = "Красный прогресс-бар";
|
||||
"RedProgressBarDesc" = "Возвращает красный прогресс-бар вместо нового, серого цвета.";
|
||||
"NoPlayerRemixButton" = "Убрать кнопку «Ремикс»";
|
||||
"NoPlayerRemixButtonDesc" = "Убирает кнопку «Ремикс» под плеером.";
|
||||
"NoPlayerClipButton" = "Убрать кнопку «Создать клип»";
|
||||
"NoPlayerClipButtonDesc" = "Убирает кнопку «Создать клип» под плеером.";
|
||||
"NoPlayerDownloadButton" = "Убрать кнопку «Скачать»";
|
||||
"NoPlayerDownloadButtonDesc" = "Убирает кнопку «Скачать» под плеером.";
|
||||
"NoHints" = "Отключить подсказки";
|
||||
"NoHintsDesc" = "Скрывает подсказки от авторов видео, появляющиеся в правом верхнем углу.";
|
||||
"NoFreeZoom" = "Отключить жесты для зума";
|
||||
@@ -147,16 +153,30 @@
|
||||
"CopyVideoInfoDesc" = "Добавляет кнопку для копирования названия и описания видео в панель описания видео.";
|
||||
"PostManager" = "Сохранять информацию с постов";
|
||||
"PostManagerDesc" = "Позволяет скопировать текст из поста или сохранить пост как фото долгим нажатием по нему.";
|
||||
"SavePostImage" = "Сохранять изображения постов";
|
||||
"SavePostImageDesc" = "Сохраняет изображения постов в «Фото» долгим нажатием по ним.";
|
||||
"SaveProfilePhoto" = "Сохранять фото профиля";
|
||||
"SaveProfilePhotoDesc" = "Сохраняет фото профиля в «Фото» долгим нажатием по нему.";
|
||||
"CopyCommentText" = "Копировать текст комментариев";
|
||||
"CopyCommentTextDesc" = "Копирует текст комментариев в буфер обмена долгим нажатием.";
|
||||
"CommentManager" = "Сохранять информацию с комментариев";
|
||||
"CommentManagerDesc" = "Позволяет скопировать текст из комментария или сохранить комментарий как фото долгим нажатием по нему.";
|
||||
"FixAlbums" = "Исправить отображение обложек";
|
||||
"FixAlbumsDesc" = "Исправляет отображение обложек в том случае, если вы из России.";
|
||||
"RemovePlayNext" = "Убрать «Добавить в начало очереди»";
|
||||
"RemovePlayNextDesc" = "Убирает опцию «Добавить в начало очереди» из меню видео.";
|
||||
"RemoveDownloadMenu" = "Убрать «Скачать»";
|
||||
"RemoveDownloadMenuDesc" = "Убирает «Скачать» из меню видео.";
|
||||
"RemoveWatchLaterMenu" = "Убрать «Смотреть позже»";
|
||||
"RemoveWatchLaterMenuDesc" = "Убирает «Смотреть позже» из меню видео.";
|
||||
"RemoveSaveToPlaylistMenu" = "Убрать «Добавить в плейлист»";
|
||||
"RemoveSaveToPlaylistMenuDesc" = "Убирает «Добавить в плейлист» из меню видео.";
|
||||
"RemoveShareMenu" = "Убрать «Поделиться»";
|
||||
"RemoveShareMenuDesc" = "Убирает «Поделиться» из меню видео.";
|
||||
"RemoveNotInterestedMenu" = "Убрать «Не интересует»";
|
||||
"RemoveNotInterestedMenuDesc" = "Убирает «Не интересует» из меню видео.";
|
||||
"RemoveDontRecommendMenu" = "Убрать «Не рекомендовать»";
|
||||
"RemoveDontRecommendMenuDesc" = "Убирает «Не рекомендовать видео с этого канала» из меню видео.";
|
||||
"RemoveReportMenu" = "Убрать «Пожаловаться»";
|
||||
"RemoveReportMenuDesc" = "Убирает «Пожаловаться» из меню видео.";
|
||||
"NoContinueWatching" = "Отключить «Продолжить просмотр»";
|
||||
"NoContinueWatchingDesc" = "Удаляет блок «Продолжить просмотр» содержащий недосмотренные видео с Главной страницы.";
|
||||
"NoSearchHistory" = "Скрыть историю поиска";
|
||||
@@ -172,6 +192,12 @@
|
||||
"DisableRTL" = "Запретить формат «справа налево»";
|
||||
"DisableRTLDesc" = "Принудительно отображает текст в формате слева направо для языков, изначально отображающихся в формате справа налево.";
|
||||
|
||||
"PlaybackQualityOnWiFi" = "Качество по WiFi";
|
||||
"PlaybackQualityOnCellular" = "Качество по мобильной сети";
|
||||
"SelectQuality" = "Выберите качество";
|
||||
"Default" = "По умолчанию";
|
||||
"Best" = "Лучшее";
|
||||
|
||||
"Startup" = "Начальная страница";
|
||||
"Home" = "Главная";
|
||||
"Explore" = "Навигация";
|
||||
@@ -181,8 +207,8 @@
|
||||
"Warning" = "Внимание";
|
||||
"TabIsHidden" = "Скрытая вкладка не может быть выбрана в качестве начальной страницы";
|
||||
|
||||
"DonateViaPayPal" = "Задонатить на PayPal";
|
||||
"SupportViaGhSponsors" = "Поддержать разработку в Github Sponsors";
|
||||
"SupportDevelopment" = "Помочь с развитием проекта";
|
||||
"SupportDevelopmentDesc" = "Если вам понравился YTLite и вы хотели бы поддержать проект, то можете сделать это любым подходящим ниже способом.\nСпасибо❤";
|
||||
"Version" = "Версия";
|
||||
"About" = "О твике";
|
||||
"Credits" = "Авторы";
|
||||
@@ -194,6 +220,7 @@
|
||||
"Japanese" = "Японская локализация";
|
||||
"Vietnamese" = "Вьетнамская локализация";
|
||||
"Advanced" = "Расширенный режим";
|
||||
"AdvancedDesc" = "Более настраиваемый режим";
|
||||
"AdvancedModeReminder" = "Хотите ли вы активировать расширенный режим настроек YTLite?\n\nДанный режим добавляет более 50 опций для тонкой настройки YouTube. Вы всегда сможете включить/отключить расширенный режим перейдя в Настройки → %@ → %@ → %@.";
|
||||
"ClearCache" = "Очистить кеш";
|
||||
"ResetSettings" = "Сбросить настройки твика";
|
||||
@@ -206,9 +233,16 @@
|
||||
"SelectAction" = "Выберите действие";
|
||||
"CopyTitle" = "Скопировать название";
|
||||
"CopyDescription" = "Скопировать описание";
|
||||
"CopyPostText" = "Копировать текст поста";
|
||||
"CopyPostText" = "Скопировать текст поста";
|
||||
"SaveCurrentImage" = "Сохранить данное фото";
|
||||
"CopyCurrentImage" = "Скопировать данное фото";
|
||||
"SavePostAsImage" = "Сохранить пост как фото";
|
||||
"CopyPostAsImage" = "Скопировать пост как фото";
|
||||
"CopyCommentText" = "Скопировать текст комментария";
|
||||
"SaveCommentAsImage" = "Сохранить комментарий как фото";
|
||||
"CopyCommentAsImage" = "Скопировать комментарий как фото";
|
||||
"SaveProfilePicture" = "Сохранить фото профиля";
|
||||
"CopyProfilePicture" = "Скопировать фото профиля";
|
||||
"Cancel" = "Отмена";
|
||||
"Copied" = "Скопировано в буфер обмена";
|
||||
"Saved" = "Сохранено в Фото";
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
"NoYTLogoDesc" = "Xóa logo YouTube trong thanh Điều hướng.";
|
||||
|
||||
"Overlay" = "Lớp phủ";
|
||||
"HideAutoplay" = "Ẩn công tắc Tự động phát";
|
||||
"HideAutoplayDesc" = "Ẩn công tắc Tự động phát khỏi lớp phủ.";
|
||||
"HideAutoplay" = "Ẩn nút Tự động phát";
|
||||
"HideAutoplayDesc" = "Ẩn nút Tự động phát trong trình phát video.";
|
||||
"HideSubs" = "Ẩn nút phụ đề";
|
||||
"HideSubsDesc" = "Ẩn nút Phụ đề khỏi lớp phủ.";
|
||||
"NoHUDMsgs" = "Ẩn tin nhắn HUD";
|
||||
"NoHUDMsgs" = "Ẩn thông báo HUD";
|
||||
"NoHUDMsgsDesc" = "Ẩn tất cả các thông báo tính năng từ người chơi. Ví dụ: CC được bật/tắt, Vòng lặp video được bật, v.v.";
|
||||
"HidePrevNext" = "Ẩn nút Trước và Tiếp theo";
|
||||
"HidePrevNextDesc" = "Ẩn các nút Trước và Tiếp theo khỏi lớp phủ video.";
|
||||
@@ -43,40 +43,46 @@
|
||||
"NoRelatedVidsDesc" = "Xóa các video liên quan được hiển thị trong lớp phủ bằng cách vuốt lên.";
|
||||
"NoPromotionCards" = "Ẩn thẻ Quảng cáo trả phí";
|
||||
"NoPromotionCardsDesc" = "Ẩn thẻ \"Bao gồm quảng cáo trả phí\" trong các video có quảng cáo.";
|
||||
"NoWatermarks" = "Ẩn hình mờ";
|
||||
"NoWatermarksDesc" = "Ẩn hình mờ kênh khỏi trình phát.";
|
||||
"NoWatermarks" = "Ẩn watermark của kênh";
|
||||
"NoWatermarksDesc" = "Ẩn watermark của kênh trong video. Yêu cầu khởi động lại ứng dụng.";
|
||||
|
||||
"Player" = "Trình phát";
|
||||
"Miniplayer" = "Bật trình phát mini";
|
||||
"MiniplayerDesc" = "Bật trình phát mini cho các video ban đầu không được thiết kế cho trình phát đó, chẳng hạn như các video dành cho trẻ em.";
|
||||
"Miniplayer" = "Cho phép sử dụng trình phát thu nhỏ với mọi video";
|
||||
"MiniplayerDesc" = "Cho phép sử dụng trình phát thu nhỏ với mọi video ban đầu không được thiết kế cho trình phát đó, chẳng hạn như các video dành cho trẻ em.";
|
||||
"PortraitFullscreen" = "Chế độ toàn màn hình dọc";
|
||||
"PortraitFullscreenDesc" = "Cho phép hỗ trợ chế độ toàn màn hình dọc.";
|
||||
"CopyWithTimestamp" = "Sao chép các liên kết có dấu thời gian";
|
||||
"CopyWithTimestampDesc" = "Cho phép sao chép liên kết có dấu thời gian vào bảng tạm bằng cách nhấn nút tạm dừng.";
|
||||
"DisableAutoplay" = "Tắt video Tự động phát";
|
||||
"DisableAutoplayDesc" = "Ngăn chặn phát lại video sau khi mở.";
|
||||
"DisableAutoCaptions" = "Tắt phụ đề tự động";
|
||||
"DisableAutoCaptionsDesc" = "Ngăn chặn việc tự động kích hoạt phụ đề.";
|
||||
"DisableAutoCaptions" = "Tắt chú thích tự động";
|
||||
"DisableAutoCaptionsDesc" = "Ngăn chặn việc tự động kích hoạt chú thích.";
|
||||
"NoContentWarning" = "Bỏ qua cảnh báo nội dung";
|
||||
"NoContentWarningDesc" = "Bỏ qua thông báo cảnh báo nội dung nhạy cảm.";
|
||||
"ClassicQuality" = "Chất lượng video cổ điển";
|
||||
"ClassicQualityDesc" = "Mang lại menu lựa chọn chất lượng video cổ điển.";
|
||||
"ExtraSpeedOptions" = "Bổ sung tùy chọn tốc độ";
|
||||
"ExtraSpeedOptionsDesc" = "Thêm nhiều tùy chọn tốc độ phát lại video vào menu trình phát.";
|
||||
"DontSnap2Chapter" = "Tắt tính năng chuyển sang tập tiếp theo";
|
||||
"DontSnap2ChapterDesc" = "Vô hiệu hóa việc chuyển sang tập tiếp theo bằng cử chỉ nhấn đúp.";
|
||||
"ExtraSpeedOptionsDesc" = "Thêm nhiều tùy chọn tốc độ phát video vào menu trình phát.";
|
||||
"DontSnap2Chapter" = "Tắt tự động chuyển tới chương";
|
||||
"DontSnap2ChapterDesc" = "Tắt tính năng tự động chuyển tới chương gần nhất khi tua video.";
|
||||
"RedProgressBar" = "Thanh tiến trình màu đỏ";
|
||||
"RedProgressBarDesc" = "Mang lại thanh tiến trình màu đỏ.";
|
||||
"NoPlayerRemixButton" = "Xóa nút phối lại";
|
||||
"NoPlayerRemixButtonDesc" = "Xóa nút phối lại bên dưới trình phát.";
|
||||
"NoPlayerClipButton" = "Xóa nút clip";
|
||||
"NoPlayerClipButtonDesc" = "Xóa nút clip bên dưới trình phát.";
|
||||
"NoPlayerDownloadButton" = "Xóa nút tải xuống";
|
||||
"NoPlayerDownloadButtonDesc" = "Xóa nút tải xuống dưới trình phát.";
|
||||
"NoHints" = "Tắt gợi ý";
|
||||
"NoHintsDesc" = "Tắt gợi ý của tác giả xuất hiện ở góc trên bên phải trong khi phát lại.";
|
||||
"NoFreeZoom" = "Tắt cử chỉ thu phóng";
|
||||
"NoFreeZoomDesc" = "Tắt các cử chỉ thu phóng mới.";
|
||||
"NoFreeZoom" = "Tắt tính năng chạm để thu phóng";
|
||||
"NoFreeZoomDesc" = "Tắt tính năng chạm để thu phóng";
|
||||
"AutoFullscreen" = "Phát video ở chế độ toàn màn hình";
|
||||
"AutoFullscreenDesc" = "Tự động phát video ở chế độ toàn màn hình.";
|
||||
"ExitFullscreen" = "Thoát chế độ toàn màn hình khi hoàn tất";
|
||||
"ExitFullscreenDesc" = "Thoát khỏi chế độ toàn màn hình khi kết thúc phát video.";
|
||||
"NoDoubleTap2Seek" = "Tắt tính năng nhấn đúp để tìm kiếm";
|
||||
"NoDoubleTap2SeekDesc" = "Tắt cử chỉ nhấn đúp để tìm kiếm.";
|
||||
"NoDoubleTap2Seek" = "Tắt tình năng chạm 2 lần để tua";
|
||||
"NoDoubleTap2SeekDesc" = "Tắt tình năng chạm 2 lần để tua";
|
||||
|
||||
"Tabbar" = "Thanh tab";
|
||||
"RemoveLabels" = "Xóa nhãn";
|
||||
@@ -107,8 +113,8 @@
|
||||
"PinchToFullscreenShortsDesc" = "Quản lý khả năng hiển thị của lớp phủ bằng cử chỉ chụm vào và kéo ra, hiển thị Shorts ở chế độ toàn màn hình.";
|
||||
"ShortsToRegular" = "Từ Shorts đến video thông thường";
|
||||
"ShortsToRegularDesc" = "Mở Shorts như video thông thường.";
|
||||
"ResumeShorts" = "Đừng bắt đầu từ tab Shorts";
|
||||
"ResumeShortsDesc" = "Ngăn chặn việc bắt đầu từ Shorts ở ứng dụng đang mở, điều này xảy ra nếu YouTube bị đóng trong khi xem Shorts.";
|
||||
"ResumeShorts" = "Tắt tính năng tự động tiếp tục Shorts";
|
||||
"ResumeShortsDesc" = "Nếu bạn thoát YouTube trong khi đang xem video Shorts, video Shorts đó sẽ không tự động phát khi bạn mở lại YouTube.";
|
||||
"HideShortsLogo" = "Ẩn biểu tượng Shorts";
|
||||
"HideShortsLogoDesc" = "Ẩn biểu tượng Shorts ở góc trên cùng bên trái.";
|
||||
"HideShortsSearch" = "Ẩn nút Tìm kiếm";
|
||||
@@ -145,18 +151,30 @@
|
||||
"Other" = "Khác";
|
||||
"CopyVideoInfo" = "Sao chép thông tin video";
|
||||
"CopyVideoInfoDesc" = "Thêm nút để sao chép tiêu đề và mô tả video vào bảng Mô tả Video.";
|
||||
"PostManager" = "Save post information";
|
||||
"PostManagerDesc" = "Allows to copy post text and save post as image by long tap.";
|
||||
"SavePostImage" = "Lưu hình ảnh từ bài đăng trên cộng đồng";
|
||||
"SavePostImageDesc" = "Lưu hình ảnh bài đăng của cộng đồng vào ứng dụng Ảnh bằng cách nhấn giữ.";
|
||||
"PostManager" = "Lưu bài đăng";
|
||||
"PostManagerDesc" = "Cho phép sao chép văn bản bài đăng và lưu bài đăng dưới dạng hình ảnh bằng cách nhấn giữ.";
|
||||
"SaveProfilePhoto" = "Lưu ảnh hồ sơ";
|
||||
"SaveProfilePhotoDesc" = "Lưu ảnh hồ sơ vào ứng dụng Ảnh bằng cách nhấn và giữ.";
|
||||
"CopyCommentText" = "Sao chép văn bản bình luận";
|
||||
"CopyCommentTextDesc" = "Sao chép văn bản nhận xét vào clipboard bằng cách nhấn giữ.";
|
||||
"CommentManager" = "Lưu bình luận";
|
||||
"CommentManagerDesc" = "Cho phép sao chép văn bản bình luận và lưu bình luận dưới dạng hình ảnh bằng cách nhấn giữ.";
|
||||
"FixAlbums" = "Sửa Albums";
|
||||
"FixAlbumsDesc" = "Sửa lỗi hiển thị Albums cho người dùng Nga.";
|
||||
"RemovePlayNext" = "Xóa \"Chơi tiếp theo trong hàng đợi\"";
|
||||
"RemovePlayNextDesc" = "Xóa tùy chọn \"Chơi tiếp theo trong hàng đợi\" khỏi menu.";
|
||||
"RemovePlayNext" = "Xóa \"Phát tiếp theo trong danh sách chờ\"";
|
||||
"RemovePlayNextDesc" = "Xóa tùy chọn \"Phát tiếp theo trong danh sách chờ\" khỏi menu.";
|
||||
"RemoveDownloadMenu" = "Xóa \"Tải video xuống\"";
|
||||
"RemoveDownloadMenuDesc" = "Xóa tùy chọn \"Tải video xuống\" khỏi menu.";
|
||||
"RemoveWatchLaterMenu" = "Xóa \"Lưu vào danh sách Xem sau\"";
|
||||
"RemoveWatchLaterMenuDesc" = "Xóa tùy chọn \"Lưu vào danh sách Xem sau\" khỏi menu.";
|
||||
"RemoveSaveToPlaylistMenu" = "Xóa \"Lưu vào danh sách phát\"";
|
||||
"RemoveSaveToPlaylistMenuDesc" = "Xóa tùy chọn \"Lưu vào danh sách phát\" khỏi menu.";
|
||||
"RemoveShareMenu" = "Xóa \"Chia sẻ\"";
|
||||
"RemoveShareMenuDesc" = "Xóa tùy chọn \"Chia sẻ\" khỏi menu.";
|
||||
"RemoveNotInterestedMenu" = "Xóa \"Không quan tâm\"";
|
||||
"RemoveNotInterestedMenuDesc" = "Xóa tùy chọn \"Không quan tâm\" khỏi menu.";
|
||||
"RemoveDontRecommendMenu" = "Xóa \"Không đề xuất kênh này\"";
|
||||
"RemoveDontRecommendMenuDesc" = "Xóa tùy chọn \"Không đề xuất kênh này\" khỏi menu.";
|
||||
"RemoveReportMenu" = "Xóa \"Báo vi phạm\"";
|
||||
"RemoveReportMenuDesc" = "Xóa tùy chọn \"Báo vi phạm\" khỏi menu.";
|
||||
"NoContinueWatching" = "Xóa \"Tiếp tục xem\"";
|
||||
"NoContinueWatchingDesc" = "Xóa phần \"Tiếp tục xem\" chứa các video chưa xem hết khỏi Trang chủ.";
|
||||
"NoSearchHistory" = "Ẩn lịch sử tìm kiếm";
|
||||
@@ -165,13 +183,19 @@
|
||||
"NoRelatedWatchNextsDesc" = "Ẩn tất cả video bên dưới trình phát, chỉ để lại phần thông tin video và nhận xét.";
|
||||
"StickSortComments" = "Dán tiêu đề bình luận";
|
||||
"StickSortCommentsDesc" = "Ghim sắp xếp tiêu đề nhận xét (Hàng đầu, Mới nhất) để nó không biến mất khi cuộn.";
|
||||
"HideSortComments" = "Ẩn tiêu đề bình luận";
|
||||
"HideSortCommentsDesc" = "Ẩn tiêu đề nhận xét sắp xếp (Hàng đầu, Mới nhất) để nó không bao giờ xuất hiện.";
|
||||
"HideSortComments" = "Ẩn bình luận";
|
||||
"HideSortCommentsDesc" = "Ẩn bình luận Short, sắp xếp (Hàng đầu, Mới nhất) để nó không bao giờ xuất hiện.";
|
||||
"PlaylistOldMinibar" = "Danh sách phát mini bar cũ";
|
||||
"PlaylistOldMinibarDesc" = "Thay thế bảng điều khiển danh sách phát nổi mới bằng bảng điều khiển cũ.";
|
||||
"DisableRTL" = "Tắt định dạng RTL";
|
||||
"DisableRTLDesc" = "Hiển thị mạnh mẽ văn bản ở định dạng từ trái sang phải (LTR) cho các ngôn ngữ ban đầu được hiển thị ở định dạng từ phải sang trái (RTL).";
|
||||
|
||||
"PlaybackQualityOnWiFi" = "Chất lượng Video trên mạng Wi-Fi";
|
||||
"PlaybackQualityOnCellular" = "Chất lượng Video trên mạng di động";
|
||||
"SelectQuality" = "Chọn chất lượng";
|
||||
"Default" = "Mặc định";
|
||||
"Best" = "Tốt nhất";
|
||||
|
||||
"Startup" = "Trang khởi động";
|
||||
"Home" = "Trang chủ";
|
||||
"Explore" = "Khám phá";
|
||||
@@ -181,8 +205,8 @@
|
||||
"Warning" = "Cảnh báo";
|
||||
"TabIsHidden" = "Không thể chọn Tab ẩn làm trang khởi động";
|
||||
|
||||
"DonateViaPayPal" = "Quyên góp qua PayPal";
|
||||
"SupportViaGhSponsors" = "Hỗ trợ phát triển thông qua Github";
|
||||
"SupportDevelopment" = "Hỗ trợ phát triển";
|
||||
"SupportDevelopmentDesc" = "Nếu bạn thích YTLite và muốn hỗ trợ sự phát triển của nó, bạn có thể thực hiện bằng bất kỳ cách thuận tiện nào dưới đây.\nCảm ơn❤";
|
||||
"Version" = "Phiên bản";
|
||||
"About" = "Giới thiệu";
|
||||
"Credits" = "Credits";
|
||||
@@ -194,6 +218,7 @@
|
||||
"Japanese" = "Tiếng Nhật";
|
||||
"Vietnamese" = "Tiếng Việt";
|
||||
"Advanced" = "Chế độ nâng cao";
|
||||
"AdvancedDesc" = "Chế độ tùy chỉnh";
|
||||
"AdvancedModeReminder" = "Bạn có muốn kích hoạt Chế độ nâng cao cho YTLite không?\n\nChế độ này cung cấp hơn 50 tùy chọn bổ sung để tùy chỉnh và tối ưu hóa trải nghiệm YouTube của bạn. Bạn có thể Bật/Tắt nó sau từ Cài đặt → %@ → %@ → %@.";
|
||||
"ClearCache" = "Xóa bộ nhớ đệm";
|
||||
"ResetSettings" = "Đặt lại cài đặt YTLite";
|
||||
@@ -206,11 +231,16 @@
|
||||
"SelectAction" = "Chọn hành động";
|
||||
"CopyTitle" = "Sao chép tiêu đề";
|
||||
"CopyDescription" = "Sao chép mô tả";
|
||||
"CopyPostText" = "Copy post text";
|
||||
"SavePostAsImage" = "Save post as image";
|
||||
"CopyPostAsImage" = "Copy post as image";
|
||||
"CopyPostText" = "Sao chép văn bản bài đăng";
|
||||
"SavePostAsImage" = "Lưu bài đăng dưới dạng hình ảnh";
|
||||
"CopyPostAsImage" = "Sao chép bài đăng dưới dạng hình ảnh";
|
||||
"CopyCommentText" = "Sao chép văn bản bình luận";
|
||||
"SaveCommentAsImage" = "Lưu bình luận dưới dạng hình ảnh";
|
||||
"CopyCommentAsImage" = "Sao chép bình luận dưới dạng hình ảnh";
|
||||
"SaveProfilePicture" = "Lưu ảnh hồ sơ";
|
||||
"CopyProfilePicture" = "Sao chép ảnh hồ sơ";
|
||||
"Cancel" = "Hủy bỏ";
|
||||
"Copied" = "Sao chép vào clipboard";
|
||||
"Saved" = "Đã lưu vào Ảnh";
|
||||
"Done" = "Xong";
|
||||
"Error" = "Lỗi";
|
||||
"Error" = "Lỗi";
|
||||
|
||||
+43
-13
@@ -67,6 +67,12 @@
|
||||
"DontSnap2ChapterDesc" = "禁用通过双击手势跳到下一集。";
|
||||
"RedProgressBar" = "红色进度条";
|
||||
"RedProgressBarDesc" = "加回红色进度条。";
|
||||
"NoPlayerRemixButton" = "移除混剪按钮";
|
||||
"NoPlayerRemixButtonDesc" = "移除播放器下方的混剪按钮。";
|
||||
"NoPlayerClipButton" = "移除剪辑按钮";
|
||||
"NoPlayerClipButtonDesc" = "移除播放器下方的剪辑按钮。";
|
||||
"NoPlayerDownloadButton" = "移除下载按钮";
|
||||
"NoPlayerDownloadButtonDesc" = "移除播放器下方的下载按钮。";
|
||||
"NoHints" = "禁用提示";
|
||||
"NoHintsDesc" = "禁用播放期间出现在右上角的作者提示。";
|
||||
"NoFreeZoom" = "禁用自由缩放手势";
|
||||
@@ -145,18 +151,30 @@
|
||||
"Other" = "其他";
|
||||
"CopyVideoInfo" = "复制视频信息";
|
||||
"CopyVideoInfoDesc" = "添加按钮从“视频说明”面板中复制视频的标题和描述。";
|
||||
"PostManager" = "Save post information";
|
||||
"PostManagerDesc" = "Allows to copy post text and save post as image by long tap.";
|
||||
"SavePostImage" = "保存社区帖子图片";
|
||||
"SavePostImageDesc" = "长按社区帖子图片保存到照片应用程序。";
|
||||
"PostManager" = "保存帖子信息";
|
||||
"PostManagerDesc" = "允许通过长按复制帖子文本并将帖子另存为图片。";
|
||||
"SaveProfilePhoto" = "保存个人资料图片";
|
||||
"SaveProfilePhotoDesc" = "长按个人资料图片保存到照片应用程序。";
|
||||
"CopyCommentText" = "复制评论文本";
|
||||
"CopyCommentTextDesc" = "长按将评论文本复制到剪贴板。";
|
||||
"CommentManager" = "保存评论信息";
|
||||
"CommentManagerDesc" = "允许通过长按复制评论文本并将评论保存为图片。";
|
||||
"FixAlbums" = "修复封面";
|
||||
"FixAlbumsDesc" = "修复来自俄罗斯用户的封面显示问题。";
|
||||
"RemovePlayNext" = "删除“播放队列中的下一个”";
|
||||
"RemovePlayNextDesc" = "从菜单中删除“播放队列中的下一个”选项。";
|
||||
"RemoveDownloadMenu" = "删除“下载”";
|
||||
"RemoveDownloadMenuDesc" = "从菜单中删除“下载”选项。";
|
||||
"RemoveWatchLaterMenu" = "删除“保存到稍后观看”";
|
||||
"RemoveWatchLaterMenuDesc" = "从菜单中删除“保存到稍后观看”选项。";
|
||||
"RemoveSaveToPlaylistMenu" = "删除“保存到播放列表”";
|
||||
"RemoveSaveToPlaylistMenuDesc" = "从菜单中删除“保存到播放列表”选项。";
|
||||
"RemoveShareMenu" = "删除“分享”";
|
||||
"RemoveShareMenuDesc" = "从菜单中删除“分享”选项。";
|
||||
"RemoveNotInterestedMenu" = "删除“不感兴趣”";
|
||||
"RemoveNotInterestedMenuDesc" = "从菜单中删除“不感兴趣”选项。";
|
||||
"RemoveDontRecommendMenu" = "删除“不推荐此频道”";
|
||||
"RemoveDontRecommendMenuDesc" = "从菜单中删除“不推荐此频道”选项。";
|
||||
"RemoveReportMenu" = "删除“举报”";
|
||||
"RemoveReportMenuDesc" = "从菜单中删除“举报”选项。";
|
||||
"NoContinueWatching" = "删除“继续观看”";
|
||||
"NoContinueWatchingDesc" = "从首页中删除包含未完成视频的“继续观看”部分。";
|
||||
"NoSearchHistory" = "隐藏搜索历史记录";
|
||||
@@ -170,7 +188,13 @@
|
||||
"PlaylistOldMinibar" = "旧播放列表";
|
||||
"PlaylistOldMinibarDesc" = "将新的浮动播放列表面板替换为旧的浮动播放列表面板。";
|
||||
"DisableRTL" = "禁用 RTL 格式";
|
||||
"DisableRTLDesc" = "对于最初以从右到左 (RTL) 显示的语言,强制以从左到右 (LTR) 格式显示文本。";
|
||||
"DisableRTLDesc" = "对于最初以从右到左(RTL)显示的语言,强制以从左到右(LTR)格式显示文本。";
|
||||
|
||||
"PlaybackQualityOnWiFi" = "WiFi网络播放质量";
|
||||
"PlaybackQualityOnCellular" = "蜂窝网络播放质量";
|
||||
"SelectQuality" = "选择质量";
|
||||
"Default" = "默认";
|
||||
"Best" = "最好";
|
||||
|
||||
"Startup" = "启动页";
|
||||
"Home" = "首页";
|
||||
@@ -181,8 +205,8 @@
|
||||
"Warning" = "警告";
|
||||
"TabIsHidden" = "无法选择隐藏选项卡作为启动页。";
|
||||
|
||||
"DonateViaPayPal" = "PayPal 赞助";
|
||||
"SupportViaGhSponsors" = "通过 Github 赞助支持开发";
|
||||
"SupportDevelopment" = "支持开发";
|
||||
"SupportDevelopmentDesc" = "如果您喜欢YTLite并愿意支持其开发,可以使用以下任何便捷的方式来赞助。\n感谢❤";
|
||||
"Version" = "版本";
|
||||
"About" = "关于";
|
||||
"Credits" = "信息";
|
||||
@@ -194,6 +218,7 @@
|
||||
"Japanese" = "日语本地化";
|
||||
"Vietnamese" = "越南语本地化";
|
||||
"Advanced" = "高级模式";
|
||||
"AdvancedDesc" = "更多自定义的功能";
|
||||
"AdvancedModeReminder" = "想为YTLite激活高级模式吗?\n\n此模式提供了50多个额外的选项来自定义和优化您的YouTube体验。\n可以稍后从设置中启用/禁用它 → %@ → %@ → %@。";
|
||||
"ClearCache" = "清除缓存";
|
||||
"ResetSettings" = "重置YTLite设置";
|
||||
@@ -206,11 +231,16 @@
|
||||
"SelectAction" = "选择操作";
|
||||
"CopyTitle" = "复制标题";
|
||||
"CopyDescription" = "复制描述";
|
||||
"CopyPostText" = "Copy post text";
|
||||
"SavePostAsImage" = "Save post as image";
|
||||
"CopyPostAsImage" = "Copy post as image";
|
||||
"CopyPostText" = "复制帖子文本";
|
||||
"SavePostAsImage" = "帖子另存为图片";
|
||||
"CopyPostAsImage" = "帖子作为图片复制";
|
||||
"CopyCommentText" = "复制评论文本";
|
||||
"SaveCommentAsImage" = "评论另存为图片";
|
||||
"CopyCommentAsImage" = "评论作为图片复制";
|
||||
"SaveProfilePicture" = "保存个人资料图片";
|
||||
"CopyProfilePicture" = "复制个人资料图片";
|
||||
"Cancel" = "取消";
|
||||
"Copied" = "已复制到剪贴板";
|
||||
"Saved" = "已保存到照片";
|
||||
"Done" = "完成";
|
||||
"Error" = "错误";
|
||||
"Error" = "错误";
|
||||
|
||||
+44
-12
@@ -67,6 +67,12 @@
|
||||
"DontSnap2ChapterDesc" = "停用點兩下手勢跳轉到下一集";
|
||||
"RedProgressBar" = "紅色進度條";
|
||||
"RedProgressBarDesc" = "恢復紅色的進度條";
|
||||
"NoPlayerRemixButton" = "移除Remix按鈕";
|
||||
"NoPlayerRemixButtonDesc" = "移除播放器下方的Remix按鈕";
|
||||
"NoPlayerClipButton" = "移除剪輯片段按鈕";
|
||||
"NoPlayerClipButtonDesc" = "移除播放器下方的剪輯片段按鈕";
|
||||
"NoPlayerDownloadButton" = "移除下載按鈕";
|
||||
"NoPlayerDownloadButtonDesc" = "移除播放器下方的下載按鈕";
|
||||
"NoHints" = "停用提示";
|
||||
"NoHintsDesc" = "在播放過程中出現在右上角的作者提示";
|
||||
"NoFreeZoom" = "停用自由縮放手勢";
|
||||
@@ -145,18 +151,30 @@
|
||||
"Other" = "其它";
|
||||
"CopyVideoInfo" = "複製影片資訊";
|
||||
"CopyVideoInfoDesc" = "新增按鈕將影片標題和說明,複製到影片說明欄";
|
||||
"PostManager" = "Save post information";
|
||||
"PostManagerDesc" = "Allows to copy post text and save post as image by long tap.";
|
||||
"SavePostImage" = "儲存社群貼文圖片";
|
||||
"SavePostImageDesc" = "長按社群貼文圖片儲存到照片應用";
|
||||
"PostManager" = "儲存貼文資訊";
|
||||
"PostManagerDesc" = "長按可以複製貼文內容或將貼文儲存為圖片";
|
||||
"SaveProfilePhoto" = "儲存個人檔案照片";
|
||||
"SaveProfilePhotoDesc" = "長按個人檔案照片儲存到照片應用";
|
||||
"CopyCommentText" = "複製評論文字";
|
||||
"CopyCommentTextDesc" = "長按評論文字複製到剪貼簿";
|
||||
"CommentManager" = "儲存留言資訊";
|
||||
"CommentManagerDesc" = "長按可以複製留言內容或將留言儲存為圖片";
|
||||
"FixAlbums" = "修復封面";
|
||||
"FixAlbumsDesc" = "為俄羅斯使用者修復封面顯示問題";
|
||||
"RemovePlayNext" = "移除「播放下一個」";
|
||||
"RemovePlayNextDesc" = "從選單移除「播放下一個」";
|
||||
"RemoveDownloadMenu" = "移除「下載影片」";
|
||||
"RemoveDownloadMenuDesc" = "從選單移除「下載影片」選項";
|
||||
"RemoveWatchLaterMenu" = "移除「儲存至稍後觀看清單」";
|
||||
"RemoveWatchLaterMenuDesc" = "從選單移除「儲存至稍後觀看清單」選項";
|
||||
"RemoveSaveToPlaylistMenu" = "移除「儲存至播放清單」";
|
||||
"RemoveSaveToPlaylistMenuDesc" = "從選單移除「儲存至播放清單」選項";
|
||||
"RemoveShareMenu" = "移除「分享」";
|
||||
"RemoveShareMenuDesc" = "從選單中移除「分享」選項";
|
||||
"RemoveNotInterestedMenu" = "移除「不感興趣」";
|
||||
"RemoveNotInterestedMenuDesc" = "從選單移除「不感興趣」選項";
|
||||
"RemoveDontRecommendMenu" = "移除「不要推薦這個頻道」";
|
||||
"RemoveDontRecommendMenuDesc" = "從選單移除「不要推薦這個頻道」選項";
|
||||
"RemoveReportMenu" = "移除「檢舉」";
|
||||
"RemoveReportMenuDesc" = "從選單移除「檢舉」選項";
|
||||
"NoContinueWatching" = "移除「繼續觀看」";
|
||||
"NoContinueWatchingDesc" = "從首頁中移除包含未完成影片的「繼續觀看」部分";
|
||||
"NoSearchHistory" = "隱藏搜尋記錄";
|
||||
@@ -172,6 +190,12 @@
|
||||
"DisableRTL" = "停用RTL格式";
|
||||
"DisableRTLDesc" = "強制將初始顯示從右到左(RTL)格式的語言,改為從左到右(LTR)顯示";
|
||||
|
||||
"PlaybackQualityOnWiFi" = "使用Wi-Fi時的影片畫質";
|
||||
"PlaybackQualityOnCellular" = "使用行動網路時的影片畫質";
|
||||
"SelectQuality" = "選擇畫質";
|
||||
"Default" = "預設";
|
||||
"Best" = "最佳";
|
||||
|
||||
"Startup" = "啟動頁面";
|
||||
"Home" = "首頁";
|
||||
"Explore" = "探索";
|
||||
@@ -181,8 +205,8 @@
|
||||
"Warning" = "警告";
|
||||
"TabIsHidden" = "無法將隱藏的標籤選為啟動頁面";
|
||||
|
||||
"DonateViaPayPal" = "透過PayPal贊助";
|
||||
"SupportViaGhSponsors" = "透過Github贊助支持開發";
|
||||
"SupportDevelopment" = "支持開發";
|
||||
"SupportDevelopmentDesc" = "如果您喜歡 YTLite 並且願意支持開發,可以使用以下任何方便的方式支持。\n感謝❤";
|
||||
"Version" = "版本";
|
||||
"About" = "關於";
|
||||
"Credits" = "貢獻";
|
||||
@@ -194,6 +218,7 @@
|
||||
"Japanese" = "日本語在地化";
|
||||
"Vietnamese" = "越南語在地化";
|
||||
"Advanced" = "進階模式";
|
||||
"AdvancedDesc" = "更多自訂功能";
|
||||
"AdvancedModeReminder" = "您是否想啟用YTLite的進階模式?\n\n這個模式提供了50多個額外的選項,可以自訂義和優化您的YouTube使用體驗。您稍後可以在「設定」中 → %@ → %@ → %@ 啟用或停用它。";
|
||||
"ClearCache" = "清除快取";
|
||||
"ResetSettings" = "重置YTLite設定";
|
||||
@@ -206,11 +231,18 @@
|
||||
"SelectAction" = "選擇動作";
|
||||
"CopyTitle" = "複製標題";
|
||||
"CopyDescription" = "複製說明";
|
||||
"CopyPostText" = "Copy post text";
|
||||
"SavePostAsImage" = "Save post as image";
|
||||
"CopyPostAsImage" = "Copy post as image";
|
||||
"CopyPostText" = "複製貼文內容";
|
||||
"SavePostAsImage" = "貼文儲存為圖片";
|
||||
"CopyPostAsImage" = "複製貼文為圖片";
|
||||
"SaveCurrentImage" = "儲存當前圖片";
|
||||
"CopyCurrentImage" = "複製當前圖片";
|
||||
"CopyCommentText" = "複製留言內容";
|
||||
"SaveCommentAsImage" = "留言儲存為圖片";
|
||||
"CopyCommentAsImage" = "儲存留言為圖片";
|
||||
"SaveProfilePicture" = "儲存個人檔案照片";
|
||||
"CopyProfilePicture" = "複製個人檔案照片";
|
||||
"Cancel" = "取消";
|
||||
"Copied" = "已複製到剪貼簿";
|
||||
"Saved" = "已儲存到照片應用";
|
||||
"Done" = "Done";
|
||||
"Error" = "發生錯誤";
|
||||
"Error" = "發生錯誤";
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user