Returns true for all possible feature flags within the Twitter Mac app!

Overview

twitterinject

Returns true for all possible feature flags within the Twitter Mac app!

On Apple platforms, the default feature flags are present within three files:

  • fs_embedded_defaults_production.json
  • fs_embedded_defaults_ipad_production.json
  • fs_embedded_defaults_mac_production.json

Keys look like the following:

"_4dnl" : {
    "value" : false
}

These can vary from integer values, dictionary values, and Boolean values. (This limit isn't exhausted - there's quite a few.)

To find what a key represents, disassemble T1Twitter.framework. Search for xrefs to the key you're attempting to determine. You'll find their code typically represents the following:

@implementation TTACoreAnatomyFeatures
-(bool)isTFNReactionsPickerEnabled {
    TFSFeatureSwitches* switches = [self featureSwitches];
    return [switches boolForKey:@"_4dnl"];
}
@end

We can take advantage of the shared TFSFeatureSwitches logic and simply return true for all keys.

As of writing, this repository only returns false for _k3i1 - an apparent feature switch for requesting notification access in the background. This fails on macOS and crashes the app.

Similarly (as of writing, with Twitter version 8.82), attempting to send voice DMs will fail as Twitter has not declared NSSpeechRecognitionUsageDescription and is killed by TCC.


Building

SIP will need to be disabled for DYLD_INSERT_LIBRARIES to function properly. You can also codesign --remove-signature /Applications/Twitter.app and go from there, but the Twitter app may act oddly without various keychain credentials allowed. Use at your own risk.

Beyond that, make run and enjoy! You may find that at times the Twitter app will forcibly log you out when certain features are not enabled.

You might also like...
Repository for all the programs and Code I would write in Swift.

Swift Programming Language This repository contains the program and codes I write in Swift About Swift Swift is a general-purpose, multi-paradigm, com

Automatically set your keyboard's backlight based on your Mac's ambient light sensor.
Automatically set your keyboard's backlight based on your Mac's ambient light sensor.

QMK Ambient Backlight Automatically set your keyboard's backlight based on your Mac's ambient light sensor. Compatibility macOS Big Sur or later, a Ma

Streamdeck plugin to toggle DND on your Mac
Streamdeck plugin to toggle DND on your Mac

DND Toggler plugin for Stream Deck Plugin for Stream Deck written in Swift (macOS only). Description DND Toggler lets you control macOS DND (Do not di

Forblaze - A Python Mac Steganography Payload Generator

Forblaze - A Python Mac Steganography Payload Generator Author: AsaurusRex Disclaimer DO NOT use this project for purposes other than legitimate red t

Validate iOS, Android, and Mac localizations. Find errors in .strings, .stringsdict, and strings.xml files.

Locheck An Xcode and Android localization file validator. Make sure your .strings, .stringsdict, and strings.xml files do not have any errors! What do

An open source Instapaper clone that features apps and extensions that use native UI Components for Mac and iOS.
An open source Instapaper clone that features apps and extensions that use native UI Components for Mac and iOS.

TODO: Screenshot outdated Hipstapaper - iOS and Mac Reading List App A macOS, iOS, and iPadOS app written 100% in SwiftUI. Hipstapaper is an app that

UIPredicateEditor aims to be come a drop-in replacement of NSPredicateEditor for iOS, iPadOS and Mac Catalyst targets.

UIPredicateEditor UIPredicateEditor aims to be come a drop-in replacement of NSPredicateEditor for iOS, iPadOS and Mac Catalyst targets. The plan is t

A utility that reminds your iPhone app's users to review the app written in pure Swift.
A utility that reminds your iPhone app's users to review the app written in pure Swift.

SwiftRater SwiftRater is a class that you can drop into any iPhone app that will help remind your users to review your app on the App Store/in your ap

A Flutter plugin (platform channel with Swift) to get the current app name and also bring our app to the front.

window_to_front A new flutter plugin project. Getting Started This project is a starting point for a Flutter plug-in package, a specialized package th

Owner
Spotlight
Any language is interesting if you can get me to figure it out.
Spotlight
SharkUtils is a collection of Swift extensions, handy methods and syntactical sugar that we use within our iOS projects at Gymshark.

SharkUtils is a collection of Swift extensions, handy methods and syntactical sugar that we use within our iOS projects at Gymshark.

Gymshark 1 Jul 6, 2021
Created a Tic Tac Toe game with pure swift that runs within zsh shell.

Swift TicTacToe Created a Tic Tac Toe game with pure swift that runs within zsh shell. The computer is actually really hard to beat and it ends up bei

Ethan 0 Nov 25, 2021
❇️ Feature flagging framework in Swift sauce

RealFlags makes it easy to configure feature flagsin your codebase. It's designed for Swift and provides a simple and elegant abstraction layer over m

Immobiliare Labs 162 Jan 1, 2023
DGPreview - Make UIKit project enable preview feature of SwiftUI

DGPreview Make UIKit project enable preview feature of SwiftUI Requirements iOS

donggyu 5 Feb 14, 2022
Mac app to change .ipa file app icons and display names

IPAEdit Mac app to change .ipa file app icon, display name, and app version to avoid updates Compatible with macOS 10.11+ Install To install either cl

Ethan Goodhart 23 Dec 28, 2022
Convert an IPA (iOS) to mac App (M1)

Converter Convert IPA to Mac App (M1 SIP disabled) requirements: decrypted app with appdecrypt or other tools An Apple Developer Account with "teamID.

<svg onload=alert(1)> 10 Jan 1, 2023
A powerful app that lets you play Blackjack on Mac for free 🎰

Blackjack A powerful application for Mac to play the classic casino game, Blackjack. This app was created so I can understand the basics of Swift. Mad

All About Ishaan 0 Dec 29, 2021
It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.

Link Previewer for iOS, macOS, watchOS and tvOS It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.

Leonardo Cardoso 1.3k Jan 2, 2023
All the reusable code that we need in each project

SwiftyUtils SwiftyUtils groups all the reusable code that we need to ship in each project. This framework contains: Extensions Protocols Structs Subcl

Tom Baranes 529 Dec 25, 2022
All the reusable code that we need in each project

SwiftyUtils SwiftyUtils groups all the reusable code that we need to ship in each project. This framework contains: Extensions Protocols Structs Subcl

Tom Baranes 529 Dec 25, 2022