Created
February 22, 2024 08:05
-
-
Save ptrcnull/bd177e34bb4a791f6bb3b3591a23621d to your computer and use it in GitHub Desktop.
Enable DevTools in Microsoft Teams classic desktop app
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
needle = b'this.appStateService.isDebugModeEnabled()' | |
better = b'true/*ppStateService.isDebugModeEnabled*/' | |
with open('/Applications/Microsoft Teams classic.app/Contents/Resources/app.asar', 'r+b') as f: | |
x = f.read() | |
off = x.find(needle) | |
f.seek(off) | |
f.write(better) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment