-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
50 lines (45 loc) · 896 Bytes
/
main.js
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
'use strict';
if (typeof my_utils === 'undefined') include('utils.js');
const loadAsync = window.GetProperty('Load Find & Play Asynchronously', true);
async function readFiles(files) {
for (const file of files) {
if (window.ID) { // fix pss issue
await include(my_utils.getScriptPath + file);
}
}
}
const files = [
'helpers.js',
'properties.js',
'interface.js',
'names.js',
'panel.js',
'medialibrary.js',
'text.js',
'playlists.js',
'library.js',
'blacklistvideo.js',
'web.js',
'mtags.js',
'scrollbar.js',
'autodj.js',
'albums.js',
'search.js',
'buttons.js',
'images.js',
'timers.js',
'menu.js',
'tagger.js',
'popupbox.js',
'initialise.js',
'callbacks.js'
];
if (loadAsync) {
readFiles(files).then(() => {
if (!window.ID) return; // fix pss issue
on_size();
window.Repaint();
});
} else {
files.forEach(v => include(my_utils.getScriptPath + v));
}