mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 19:31:46 +00:00
Switched like/dislike positions
Switched like/dislike positions to match youtube musics layout
This commit is contained in:
@ -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';
|
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
|
// 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) => {
|
const presskey = (window, key) => {
|
||||||
window.webContents.sendInputEvent({
|
window.webContents.sendInputEvent({
|
||||||
@ -67,10 +67,10 @@ module.exports = win => {
|
|||||||
label: '⏭'
|
label: '⏭'
|
||||||
}),
|
}),
|
||||||
new TouchBarButton({
|
new TouchBarButton({
|
||||||
label: '👍'
|
label: '👎'
|
||||||
}),
|
}),
|
||||||
new TouchBarButton({
|
new TouchBarButton({
|
||||||
label: '👎'
|
label: '👍'
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
change: i => presskey(win, keys[i])
|
change: i => presskey(win, keys[i])
|
||||||
|
|||||||
Reference in New Issue
Block a user