Skip to content

Instantly share code, notes, and snippets.

@alkuzad
Created August 9, 2020 12:49
Show Gist options
  • Save alkuzad/cf5d084769d7344cdf67c3ec2f58feda to your computer and use it in GitHub Desktop.
Save alkuzad/cf5d084769d7344cdf67c3ec2f58feda to your computer and use it in GitHub Desktop.
DuckDuckGo is free search engine, not spying as google
rem asar v3.0.3, slack 4.8.0
rem sed is from scoop git package, also in unxutils-separated or standard unxutils
set SLACK_HOME=%USERPROFILE%\scoop\apps\slack\current
npm install -g asar
cd %SLACK_HOME%\resources
asar extract app.asar slack-source
del app.asar
sed -i "s@searchGoogle@searchDuckDuckGo@g" slack-source/dist/main.bundle.js
sed -i "s@https://www.google.com/search?q=@https://duckduckgo.com/?q=@" slack-source/dist/main.bundle.js
sed -i "s@Search with Google@Search with DuckDuckGo@" slack-source/dist/main.bundle.js
asar pack slack-source app.asar
rd /q /s slack-source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment