Skip to content

Instantly share code, notes, and snippets.

@nikhilw
Last active March 9, 2018 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikhilw/fabb65dac685b3b60d26c6313ca92c2f to your computer and use it in GitHub Desktop.
Save nikhilw/fabb65dac685b3b60d26c6313ca92c2f to your computer and use it in GitHub Desktop.
Create amazon prime music desktop player for Linux
# 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/
"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