Skip to content

Instantly share code, notes, and snippets.

@babakness
Last active October 22, 2024 21:17
Show Gist options
  • Save babakness/839ee2fb307816a77dbf8feeb3f57d00 to your computer and use it in GitHub Desktop.
Save babakness/839ee2fb307816a77dbf8feeb3f57d00 to your computer and use it in GitHub Desktop.
A list of commands to disable the back gesture for Chrome, FireFox, Brave, and Safari

When working with online editor, the back gesture on a Mac can become very frustrating. Here are some helpful commands disable the back gesture:

# Disable back gesture in specific apps

# Chrome
defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE
# FireFox
defaults write org.mozilla.firefox AppleEnableSwipeNavigateWithScrolls -bool FALSE
# Brave
defaults write com.brave.Browser AppleEnableSwipeNavigateWithScrolls -bool FALSE
# Safari
defaults write com.apple.Safari AppleEnableSwipeNavigateWithScrolls -bool FALSE

You'll have to restart your browser for the change to take effect. To turn back on, change FALSE to TRUE.

@nathfavour
Copy link

doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment