Created
November 5, 2025 06:13
-
-
Save tshabatyn/c2dab1252be00c74fddfe6b2a5a99ac3 to your computer and use it in GitHub Desktop.
returning back ublock to chrome on macos
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 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