Skip to content

Instantly share code, notes, and snippets.

View joshuaseltzer's full-sized avatar

Joshua Seltzer joshuaseltzer

View GitHub Profile
@joshuaseltzer
joshuaseltzer / spoof.x
Last active October 5, 2025 02:09
Spoof Version Hook
static NSString *spoofVersion = @"2518.1";
%hook NSBundle
- (NSDictionary *)infoDictionary
{
NSMutableDictionary *mutableInfoDictionary = [NSMutableDictionary dictionaryWithDictionary:%orig];
[mutableInfoDictionary setValue:spoofVersion forKey:@"CFBundleShortVersionString"];
[mutableInfoDictionary setValue:spoofVersion forKey:@"CFAppReleaseVersion"];
return [mutableInfoDictionary copy];
@joshuaseltzer
joshuaseltzer / hide_cells.xm
Created November 18, 2024 02:09
Hide Buttons in the Action Bar
// hide useless buttons under the video player
static BOOL shouldHideCell(ASNodeController *nodeController, NSArray <NSString *> *identifiers, NSArray <NSString *> *titles) {
for (id child in [nodeController children]) {
if ([child isKindOfClass:%c(ELMComponent)]) {
ELMComponent *elmChild = (ELMComponent *)child;
if ([[elmChild templateURI] containsString:@"video_action_button_with_vm_input"]) {
return shouldHideCell([elmChild materializedInstance], identifiers, titles);
} else {
for (NSString *identifier in identifiers) {
if ([[elmChild templateURI] containsString:identifier]) {