This file contains hidden or 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
| // | |
| // NSApplication+NSResponderDebug.swift | |
| // | |
| // Created by Stephan Casas on 3/18/24. | |
| // | |
| import Cocoa; | |
| extension NSApplication { | |
This file contains hidden or 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
| sudo /usr/libexec/PlistBuddy -c "Add 'GelatoCore:Enabled' bool false" /Library/Preferences/FeatureFlags/Domain/Messages.plist | |
| sudo /usr/libexec/PlistBuddy -c "Add 'Gelato:Enabled' bool false" /Library/Preferences/FeatureFlags/Domain/Sharing.plist | |
| To restore defaults: | |
| sudo /usr/libexec/PlistBuddy -c "delete 'GelatoCore:Enabled'" /Library/Preferences/FeatureFlags/Domain/Messages.plist | |
| sudo /usr/libexec/PlistBuddy -c "delete 'Gelato:Enabled'" /Library/Preferences/FeatureFlags/Domain/Sharing.plist | |
| Reboot your machine after these changes. |
This file contains hidden or 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 osascript -l JavaScript | |
| const App = Application.currentApplication(); | |
| App.includeStandardAdditions = true; | |
| const kCFPrefsFeatureFlagsDir = '/Library/Preferences/FeatureFlags/Domain'; | |
| const kCFPrefsFeatureEnabledKey = 'Enabled'; | |
| const kUIKitDomainPrefsTemporaryPath = '/tmp/UIKit.plist'; | |
| const kUIKitRedesignedTextCursorKey = 'redesigned_text_cursor'; |
This file contains hidden or 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
| // To compile: clang++ -arch x86_64 -arch arm64 -std=c++20 library_injector.cpp -lbsm -lEndpointSecurity -o library_injector, | |
| // then codesign with com.apple.developer.endpoint-security.client and run the | |
| // program as root. | |
| #include <EndpointSecurity/EndpointSecurity.h> | |
| #include <algorithm> | |
| #include <array> | |
| #include <bsm/libbsm.h> | |
| #include <cstddef> | |
| #include <cstdint> |