Last active
February 26, 2020 10:31
-
-
Save keymon/ce19faca07200ed16e0beb582eb193a9 to your computer and use it in GitHub Desktop.
Whatsapp nativifier
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
| # wget https://userstyles.org/styles/userjs/142096/dark-whatsapp-theme-by-mew.user.js -O Downloads/dark-whatsapp-theme-by-mew.user.js | |
| wget https://userstyles.org/styles/userjs/142096/dark-whatsapp-by-vednoc.user.js -O Downloads/dark-whatsapp-by-vednoc.user.js | |
| wget https://raw.githubusercontent.com/DocBox12/WhatsApp-nativefier-fix/master/whatsapp_fix.js -O Downloads/whatsapp_fix.js | |
| cat Downloads/dark-whatsapp-by-vednoc.user.js Downloads/whatsapp_fix.js > Downloads/whasapp_inject.js | |
| nativefier -n "whatsapp" --inject Downloads/whasapp_inject.js --tray --title-bar-style hidden --width 500 --height 400 --single-instance https://web.whatsapp.com/ nativefier-apps/ | |
| # https://github.com/jiahaog/nativefier/issues/204 | |
| mkdir -p ~/.local/share/applications | |
| cat <<EOF > ~/.local/share/applications/WhatsApp.desktop | |
| [Desktop Entry] | |
| Type=Application | |
| Encoding=UTF-8 | |
| Name=WhatsApp | |
| Comment=WhatsApp (nativefier) | |
| Exec=env FIREFOX_PROFILE=keymon $HOME/nativefier-apps/whatsapp-linux-x64/whatsapp | |
| Icon=$HOME/nativefier-apps/whatsapp-linux-x64/resources/app/icon.png | |
| Terminal=false | |
| EOF | |
| chmod +x ~/.local/share/applications/WhatsApp.desktop | |
| update-desktop-database ~/.local/share/applications/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment