Skip to content

Instantly share code, notes, and snippets.

@tshabatyn
Created November 5, 2025 06:13
Show Gist options
  • Select an option

  • Save tshabatyn/c2dab1252be00c74fddfe6b2a5a99ac3 to your computer and use it in GitHub Desktop.

Select an option

Save tshabatyn/c2dab1252be00c74fddfe6b2a5a99ac3 to your computer and use it in GitHub Desktop.
returning back ublock to chrome on macos
#!/usr/bin/env bash
cd '/Applications/Google Chrome.app/Contents/MacOS' || exit 1
if [ -f 'Google-Chrome-bin' ]; then
echo 'It is already fixed.'
exit 1
fi
mv 'Google Chrome' 'Google-Chrome-bin'
cat > 'Google Chrome' << 'EOF'
#!/bin/bash
exec "\$(dirname "\$0")"/Google-Chrome-bin --disable-features=ExtensionManifestV2Unsupported,ExtensionManifestV2Disabled
EOF
chmod +x 'Google Chrome'
echo 'Fixed successfully.'
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment