Switched like/dislike positions

Switched like/dislike positions to match youtube musics layout
This commit is contained in:
Sem Vissscher
2020-12-16 20:30:01 +01:00
parent ba3779db07
commit f71e0e9da9

View File

@ -17,7 +17,7 @@ const titleSelector = '.title.style-scope.ytmusic-player-bar';
const imageSelector = '#layout > ytmusic-player-bar > div.middle-controls.style-scope.ytmusic-player-bar > img';
// These keys will be used to go backwards, pause, skip songs, like songs, dislike songs
const keys = ['k', 'space', 'j', '+', '_'];
const keys = ['k', 'space', 'j', '_', '+'];
const presskey = (window, key) => {
window.webContents.sendInputEvent({
@ -67,10 +67,10 @@ module.exports = win => {
label: '⏭'
}),
new TouchBarButton({
label: '👍'
label: '👎'
}),
new TouchBarButton({
label: '👎'
label: '👍'
})
],
change: i => presskey(win, keys[i])