-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhide_ai.js
44 lines (32 loc) · 965 Bytes
/
hide_ai.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
(function() {
'use strict';
function startPlugin() {
var manifest = {
type: 'other',
version: '0.1.0',
name: 'Скрытие AI',
description: 'Плагин для скрытия AI-элементов',
component: 'hide_ai',
};
Lampa.Manifest.plugins = manifest;
// Lampa.Template.add('hhh', '<style type="text/css">\n.search-source.selector:contains("TMDB") {display:none}\n</style>');
// $('head').append(Lampa.Template.get('hhh', {}, true));
Lampa.Listener.follow('full', function (e) {
console.log('full', e);
if (e.type == 'complite') {
$('.button--options').hide();
$('.search-source.selector:contains("AI")').hide();
}
});
}
if (window.appready) {
startPlugin();
} else {
Lampa.Listener.follow('app', function(e) {
console.log('app', e);
if (e.type == 'ready') {
startPlugin();
}
});
}
})();