From da5a62bf1556a09f4a74fa72304d342d2bc9f376 Mon Sep 17 00:00:00 2001 From: m8rge Date: Sat, 23 Jun 2018 19:48:53 +0500 Subject: [PATCH] first commit --- README.md | 10 ++++++++++ build.sh | 3 +++ og-image.png | Bin 0 -> 25514 bytes renderer.js | 40 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 53 insertions(+) create mode 100755 build.sh create mode 100644 og-image.png create mode 100644 renderer.js diff --git a/README.md b/README.md index f2eb01c..2e6b356 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # yandex.music.app Yandex Music web app. Electron powered + +# Requirements + +* https://github.com/jiahaog/nativefier + +# Build + +```bash +$ ./build.sh +``` \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..ed29cc0 --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +nativefier https://music.yandex.ru --single-instance -n Yandex.Music -i ./og-image.png --inject ./renderer.js --internal-urls "(?:music|passport)\.yandex\.ru/.*" \ No newline at end of file diff --git a/og-image.png b/og-image.png new file mode 100644 index 0000000000000000000000000000000000000000..9a97c4d400df7e2056b34a5a927beb2336a9b455 GIT binary patch literal 25514 zcmeFYXH-+$+b_C85LB8S=_(0GM?fIdxKSX0fFK|prAt#lkRG;$t@IT_Zz@GPQUz&l z+-T?m(u+zcO4HD!-??!A-*fMK&b{}`9p}?!IEKkwb3XO=lsVVT6MbC`mcyKfAqZk2 zXkIpeAbRkT9y-VX{tMv|c>w-Hc^PQ@0Tp+0e}f=fJHq8l*Y6L{j|IF=vkwy7UMgSf z>H5|6dH5zBm*Fbvw4g*pO5zdgNEO5h33G&KtjGf0p2f&kh6DY#$f-zfeoC`@*S`Nw#NCNblqR3MG z6cM=Y9G9%CkaqmG7i>Sx0C}?uf+d@7s*MGLkdLboJjKCn;ouGt=^%(WE(WQ)bg-O0 zeIp&`wHsZ7f)F_SmqVxBEa4IX)A(o4=JHcKg7GxycpEc#)Y817Br9jL?BIol6o|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>ZRn1f z7=Wp><+qqI(bq%0WcoWW%S7Jp`_^|H#(xT58fKVj`LK7OCOv$$GL9?tYr?uu3DU-^ zE~U4_iGKHr?~-_jP^R=vCwj%eV6F)&-&@4?-^T`S0WB9|Xd48n>=BV&q>b;}&uB*` zouWGbk(ZA~QS$OLx`nFhkpl~L;YZ55g*vlMpBD;z2XoLS`aj||b1KP5LXDN*Kcv9| zvzZ>7ueGhiQxT!=HRPs2LDXO-zgB$5YfuB0|Np=L(-R1*nR8i!CXMW%1y^AU)7`vW Jt9FK+`5)PU%`^Z2 literal 0 HcmV?d00001 diff --git a/renderer.js b/renderer.js new file mode 100644 index 0000000..ba27c32 --- /dev/null +++ b/renderer.js @@ -0,0 +1,40 @@ +'use strict'; +const {globalShortcut, dialog} = require('electron').remote; +const currentWindow = require('electron').remote.getCurrentWindow(); +const currentWebContents = currentWindow.webContents; + +const init = () => { + if (window.location.host !== 'music.yandex.ru') { + return; + } + + var ret; + + ret = globalShortcut.register('MediaPlayPause', () => { + externalAPI.togglePause(); + }); + if (!ret) { + dialog.showErrorBox('Cant bind global shortcut', 'Cant bind MediaPlayPause. Closing tab.\nPossible second opened tab?'); + currentWindow.close(); + return; + } + + ret = globalShortcut.register('MediaNextTrack', () => { + externalAPI.next(); + }); + if (!ret) { + dialog.showErrorBox('Cant bind global shortcut', 'Cant bind MediaNextTrack. Closing tab. \nPossible second opened tab?'); + currentWindow.close(); + return; + } + + ret = globalShortcut.register('MediaPreviousTrack', () => { + externalAPI.prev(); + }); + if (!ret) { + dialog.showErrorBox('Cant bind global shortcut', 'Cant bind MediaPreviousTrack. Closing tab. \nPossible second opened tab?'); + currentWindow.close(); + } +}; + +currentWebContents.on('did-finish-load', init);