Last active
March 9, 2018 13:20
-
-
Save nikhilw/fabb65dac685b3b60d26c6313ca92c2f to your computer and use it in GitHub Desktop.
Create amazon prime music desktop player for Linux
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
# You need | |
# 1. nativefier installed, install it as: npm install -g nativefier | |
# 2. a logo for your app, download and place locally as logo.png | |
#! /bin/sh | |
nativefier --name "Amazon music" --inject ./user-agent-switch.js --icon ./logo.png https://music.amazon.in/ |
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
"use strict;" | |
Object.defineProperty(navigator, 'userAgent', { | |
get: function () { return 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36'; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment