This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compatibility | |
Last supported iOS 12: 17.39.4 (removed in 17.40.5) | |
Last supported iOS 13: 17.40.5 (removed in 17.41.2) | |
Last supported iOS 14: 19.20.2 (removed in 19.21.2) | |
Temporarilty dropped iOS 12/13 support: 17.36.3 | |
# Features | |
- Added System volume HUD: 19.06.2 (`YTColdConfig.iosUseSystemVolumeControlInFullscreen`) | |
- Added icon to settings: 19.03.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <YouTubeHeader/MLAVPlayer.h> | |
#import <YouTubeHeader/MLHAMPlayerItem.h> | |
#import <YouTubeHeader/MLQuickMenuVideoQualitySettingFormatConstraint.h> | |
int targetResolution = 1440; | |
int targetFPS = 60; | |
static NSString *getClosestQualityLabel(NSArray <MLFormat *> *formats) { | |
int minDiff = INT_MAX; | |
NSString *closestQualityLabel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
PROJECT="$1" | |
if [ -z "$PROJECT" ]; then | |
echo "Usage: $0 <project>" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Credit: https://github.com/qnblackcat/uYouPlus/pull/398 | |
%hook SSOService | |
+ (id)fetcherWithRequest:(NSMutableURLRequest *)request configuration:(id)configuration { | |
if ([request isKindOfClass:[NSMutableURLRequest class]] && request.HTTPBody) { | |
NSError *error = nil; | |
NSMutableDictionary *body = [NSJSONSerialization JSONObjectWithData:request.HTTPBody options:NSJSONReadingMutableContainers error:&error]; | |
if (!error && [body isKindOfClass:[NSMutableDictionary class]]) { | |
[body removeObjectForKey:@"device_challenge_request"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void (*YTPlayerLogPVC)(NSString *, ...); | |
%hookf(void, YTPlayerLogPVC, NSString *format, ...) { | |
va_list args; | |
va_start(args, format); | |
NSLogv(format, args); | |
va_end(args); | |
} | |
%ctor { | |
NSString *frameworkPath = [NSString stringWithFormat:@"%@/Frameworks/Module_Framework.framework/Module_Framework", NSBundle.mainBundle.bundlePath]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <substrate.h> | |
#import <HBLog.h> | |
typedef struct __CFRuntimeBase { | |
uintptr_t _cfisa; | |
uint8_t _cfinfo[4]; | |
#ifdef __LP64__ | |
uint32_t _rc; | |
#endif | |
} CFRuntimeBase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface YTUIUtils : NSObject | |
+ (UIViewController *)topViewControllerForPresenting; | |
@end | |
@interface YTUIResources : NSObject | |
+ (UIImage *)iconCheckTemplateImage; | |
+ (UIImage *)actionsheetDefaultImage; | |
@end | |
@interface YTActionSheetAction : NSObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
APP_TARGETS=(com.apple.Photos com.apple.Preview com.apple.quicklook.QuickLookUIService com.apple.Safari) | |
for APP_TARGET in "${APP_TARGETS[@]}" | |
do | |
defaults write /Users/$USER/Library/Containers/$APP_TARGET/Data/Library/Preferences/com.apple.VisionKit.InternalSettings com.apple.VisionKit.InternalSettings.overrideDeviceAvailability -bool yes | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%include "asm_io.inc" | |
extern _printf | |
segment data align=4 class=data use32 | |
EnterOne db "Enter number 1: ", 0 | |
EnterTwo db "Enter number 2: ", 0 | |
EnterThree db "Enter number 3: ", 0 | |
FormattedAnswer db "%d %d %d", 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Turn on Developer Mode | |
# Open Settings -> Update and Security -> For developers | |
# Don't reboot yet | |
# Run in powershell administrator: | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
# accept reboot | |
## Install Ubuntu | |
# run in powershell administrator: |
NewerOlder