-
Notifications
You must be signed in to change notification settings - Fork 248
/
items.json
67 lines (67 loc) · 11.2 KB
/
items.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[
{
"name": "Now Playing (YouTube Music)",
"type": "appleScriptTitledButton",
"source": {
"inline": "if application \"Safari\" is running then\r\ttell application \"Safari\"\r\t\trepeat with t in tabs of windows\r\t\t\ttell t\r\t\t\t\tif URL starts with \"https:\/\/music.youtube.com\" or URL starts with \"http:\/\/music.youtube.com\" then\r\t\t\t\t\ttry\r\t\t\t\t\t\tlocal groupName, trackName, timeTrack, response\r\t\t\t\t\t\tset response to \"\"\r\t\t\t\t\t\tset groupName to do JavaScript \"document.getElementsByClassName('byline ytmusic-player-bar')[0]?.firstChild.innerText || ''\"\r\t\t\t\t\t\tset trackName to do JavaScript \"document.getElementsByClassName('title ytmusic-player-bar')[0]?.innerText|| ''\"\r\t\t\t\t\t\tset timeTrack to do JavaScript \"document.getElementsByClassName('time-info ytmusic-player-bar')[0]?.innerText|| ''\"\r\t\t\t\t\t\t\r\t\t\t\t\t\tif timeTrack is not equal to \"\" then\r\t\t\t\t\t\t\tset response to response & \"(\" & timeTrack & \") \"\r\t\t\t\t\t\tend if\r\t\t\t\t\t\t\r\t\t\t\t\t\tif groupName is not equal to \"\" then\r\t\t\t\t\t\t\tset response to response & groupName\r\t\t\t\t\t\tend if\r\t\t\t\t\t\t\r\t\t\t\t\t\tif trackName is not equal to \"\" then\r\t\t\t\t\t\t\tif response is not equal to \"\" then\r\t\t\t\t\t\t\t\tset response to response & \" - \" & trackName\r\t\t\t\t\t\t\telse\r\t\t\t\t\t\t\t\tset response to response & trackName\r\t\t\t\t\t\t\tend if\r\t\t\t\t\t\tend if\r\t\t\t\t\t\t\r\t\t\t\t\t\tif response is equal to \"\" then return \"...........................\"\r\t\t\t\t\t\treturn response\r\t\t\t\t\ton error errorMsg\r\t\t\t\t\t\treturn errorMsg\r\t\t\t\t\tend try\r\t\t\t\tend if\r\t\t\tend tell\r\t\tend repeat\r\tend tell\rend if\rreturn \"Open YouTube Music\""
},
"action": "appleScript",
"actionAppleScript": {
"inline": "if application \"Safari\" is not running then\r\ttell application \"Safari\" to activate\rend if\r\rtell application \"Safari\"\r\trepeat with t in tabs of windows\r\t\ttell t\r\t\t\tif URL starts with \"https:\/\/music.youtube.com\" or URL starts with \"http:\/\/music.youtube.com\" then\r\t\t\t\treturn\r\t\t\tend if\r\t\tend tell\r\tend repeat\rend tell\r\rtell application \"Safari\" to open location \"https:\/\/music.youtube.com\""
},
"refreshInterval": 15,
"image": {
"base64": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAKZlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgExAAIAAAAiAAAAWodpAAQAAAABAAAAfAAAAAAAAABIAAAAAQAAAEgAAAABQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAAAYoAMABAAAAAEAAAAYAAAAACssTnYAAAAJcEhZcwAACxMAAAsTAQCanBgAAASWaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA1LjQuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAg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c43Jy0yQv1s8Wob3yeDGudCIcX0ZiVJ2T9Z/lGeejcdgqD53N6f70gRWVCO1pbta0dHdw5577/AOlUDGDMp3KrAAAAAElFTkSuQmCC"
},
},
{
"name": "Previous (YouTube Music)",
"type": "staticButton",
"title": "",
"action": "appleScript",
"align": "right",
"width": 52,
"bordered": false,
"actionAppleScript": {
"inline": "if application \"Safari\" is running then\r\ttell application \"Safari\"\r\t\trepeat with t in tabs of windows\r\t\t\ttell t\r\t\t\t\tif URL starts with \"https:\/\/music.youtube.com\" or URL starts with \"http:\/\/music.youtube.com\" then\r\t\t\t\t\tdo JavaScript \"document.getElementsByClassName('previous-button ytmusic-player-bar')[0].click()\"\r\t\t\t\tend if\r\t\t\tend tell\r\t\tend repeat\r\tend tell\rend if"
},
"refreshInterval": 15,
"image": {
"base64": "iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAAG5lWElmTU0AKgAAAAgAAwESAAMAAAABAAEAAAExAAIAAAARAAAAModpAAQAAAABAAAARAAAAABBZG9iZSBJbWFnZVJlYWR5AAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAPKADAAQAAAABAAAAPAAAAAA0BeEQAAABy2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBJbWFnZVJlYWR5PC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgopLs09AAAB70lEQVRoBe2X4W2DMBCFoeoAjEBGyAbJJjBBs0HTCToC3qArZIRsUEbIBvRZ8kmoSjC27yJaPf4cGO7xvhfrFKqKBxNgAkyACTABJsAEmAATYAJMgAkwASbABP5bAvUzgYZh6Oq6fsc7m2ma9n3fjxrvn+m20N0t6b5qvDCmAUMHgA54rp0968/H2XXyaY6uKXAw5H/RQzLNQkOJrgkwDLVh63YLvpNvaeiqAsNQE0BPyTQLDZq6KsDeEPyeAPuG6s9VDgvdYmCYksnbqlAGESvdbGAYujd5i5mtdMVYMnAwtKnJKzBr6mpggG528q4BlWeiwAA1mbww0DjnPlFVJ7qAPapRYEzeb2/ukUDuOnS/cntL+l5Kmv9ibxTY/8kHmNOGg25voRvzGQX2Xx5d1/UB/BITTLhvpbtoIQos3QC/AvwI8CPWrrJeWq10H/laDSwCMHgB+D5syVHWS6uV7m9fycAiAIMO4DuAf2DtJuul1UpXfGUDiwAMngEt4LJcXK10i4E9GczdxCAunV/TOCx0VYAFDgZHbHP1ia6pqwo8A9/sRDcBnoFf8ItvaqKbAs/AHcBlsMlEH+V+bsVWv6cr+rmyun3+68t/auqqVpWVrrZP6jEBJsAEmAATYAJMgAkwASbABJgAE2ACT0jgB4rq8/kXJxbYAAAAAElFTkSuQmCC"
}
},
{
"type": "play",
"bordered": false,
"align": "right",
"width": 52
},
{
"name": "Next (YouTube Music)",
"type": "staticButton",
"title": "",
"action": "appleScript",
"align": "right",
"width": 52,
"bordered": false,
"actionAppleScript": {
"inline": "if application \"Safari\" is running then\r\ttell application \"Safari\"\r\t\trepeat with t in tabs of windows\r\t\t\ttell t\r\t\t\t\tif URL starts with \"https:\/\/music.youtube.com\" or URL starts with \"http:\/\/music.youtube.com\" then\r\t\t\t\t\tdo JavaScript \"document.getElementsByClassName('next-button ytmusic-player-bar')[0].click()\"\r\t\t\t\tend if\r\t\t\tend tell\r\t\tend repeat\r\tend tell\rend if"
},
"refreshInterval": 5,
"image": {
"base64": "iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAAG5lWElmTU0AKgAAAAgAAwESAAMAAAABAAEAAAExAAIAAAARAAAAModpAAQAAAABAAAARAAAAABBZG9iZSBJbWFnZVJlYWR5AAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAPKADAAQAAAABAAAAPAAAAAA0BeEQAAABy2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBJbWFnZVJlYWR5PC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgopLs09AAACEUlEQVRoBe2XgW2DMBBFQ9UBGIFu0BHSDTpC2KCdoOoG7QSwQdmgjNANwghsQM/IQo5l7MM+kyj6kVCwz37x/z+9ksMBLzgAB+AAHIADcAAOwAE4AAfgAByAA3AADtybA0VIUNu2Z1pTTtP0Te9fdV2PoT2cei5u6LMfQguoXtFVFkXxQde5aZoTjSVeFUFM7psENMTgJDw5IAMl/k5pd44aa4oSXuN+ErdlQSIWcRJ2YStK+4cO/UuJH10LIucUt8nAXY4Tm/AC0DedTnywC2vjlYTt5T1xKfCazbUB9jg2YZvzqv6+SQQF3pR2MWF8NLhVAmfZKpXwAqSbkdPRmQlv5pobXPdSCZtss/OezELivcmN7ug5ErZ1OTt6RMIu7uaOniNh+2A31dH3SNg2YO7oqhnZhcQxq6PvkbCtY+7o9qTAeO7o9F/i2ce6hmDfebLXriFYffVeMiibufSQ8udjP/qKwrWLbk1dWgp/wQ1B9xCsHkTUDw0xhVpUFDenYNYTVygRRz2Jm0twq1MdHQdOmUrmSgvutNAhRZVjrxhXSnBPQtVjXu84bMqUODdV8KAT7VJUOfbm4h5iBavGcTOd12HY6tRWwUkdcvUUzN/Qnv3sEkew6rQlXa1OVarz5uJ6xQcFk8gnJZga0uAlbSzm4m48BpbDATgAB+AAHIADcAAOwAE4AAfgAByAA/fowD9H2jXwFBuGHwAAAABJRU5ErkJggg=="
}
},
{
"type": "battery",
"refreshInterval": 60,
"align": "right",
"bordered": false
},
{
"type": "timeButton",
"formatTemplate": "HH:mm",
"width": 45,
"align": "right"
}
]