-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontinue.js
More file actions
35 lines (25 loc) · 774 Bytes
/
continue.js
File metadata and controls
35 lines (25 loc) · 774 Bytes
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
(function () {
'use strict';
function startPlugin() {
if (!window.Lampa || !Lampa.Menu) return;
Lampa.Menu.add({
title: 'M3U8 Потік',
icon: '<svg viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg>',
onSelect: function () {
let url = prompt("Вставте M3U8 потік:");
if (!url) return;
Lampa.Player.play({
title: 'M3U8 Stream',
url: url,
subtitles: []
});
}
});
}
if (window.appready) startPlugin();
else {
Lampa.Listener.follow('app', function (e) {
if (e.type === 'ready') startPlugin();
});
}
})();