Skip to content

Commit d99aa02

Browse files
Sem VissscherSem Vissscher
authored andcommitted
Added like and dislike buttons
1 parent 3ea859d commit d99aa02

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

plugins/touchbar/back.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const titleSelector = '.title.style-scope.ytmusic-player-bar';
1717
const imageSelector = '#layout > ytmusic-player-bar > div.middle-controls.style-scope.ytmusic-player-bar > img';
1818

1919
// These keys will be used to go backwards, pause and skip songs
20-
const keys = ['k', 'space', 'j'];
20+
const keys = ['k', 'space', 'j', '+', '_'];
2121

2222
const presskey = (window, key) => {
2323
window.webContents.sendInputEvent({
@@ -58,13 +58,19 @@ module.exports = win => {
5858
mode: 'buttons',
5959
segments: [
6060
new TouchBarButton({
61-
label: '<'
61+
label: ''
6262
}),
6363
new TouchBarButton({
6464
label: '⏯️'
6565
}),
6666
new TouchBarButton({
67-
label: '>'
67+
label: '⏭'
68+
}),
69+
new TouchBarButton({
70+
label: '👍'
71+
}),
72+
new TouchBarButton({
73+
label: '👎'
6874
})
6975
],
7076
change: i => presskey(win, keys[i])

0 commit comments

Comments
 (0)