-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathOwnAllianceMissionCount.user.js
68 lines (66 loc) · 3 KB
/
OwnAllianceMissionCount.user.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// ==UserScript==
// @name LSS-Own-Alliance-Mission-Count
// @namespace http://tampermonkey.net/
// @version 1.0.2
// @description shows number of own alliance missions
// @author Jan (jxn_30)
// @match https://www.operacni-stredisko.cz/
// @match https://policie.operacni-stredisko.cz/
// @match https://www.alarmcentral-spil.dk/
// @match https://politi.alarmcentral-spil.dk/
// @match https://www.leitstellenspiel.de/
// @match https://polizei.leitstellenspiel.de/
// @match https://www.missionchief-australia.com/
// @match https://police.missionchief-australia.com/
// @match https://www.missionchief.co.uk/
// @match https://police.missionchief.co.uk/
// @match https://www.missionchief.com/
// @match https://police.missionchief.com/
// @match https://www.centro-de-mando.es/
// @match https://www.centro-de-mando.mx/
// @match https://www.hatakeskuspeli.com/
// @match https://poliisi.hatakeskuspeli.com/
// @match https://www.operateur112.fr/
// @match https://police.operateur112.fr/
// @match https://www.operatore112.it/
// @match https://polizia.operatore112.it/
// @match https://www.missionchief-japan.com/
// @match https://www.missionchief-korea.com/
// @match https://www.nodsentralspillet.com/
// @match https://politiet.nodsentralspillet.com/
// @match https://www.meldkamerspel.com/
// @match https://politie.meldkamerspel.com/
// @match https://www.operatorratunkowy.pl/
// @match https://policja.operatorratunkowy.pl/
// @match https://www.operador193.com/
// @match https://www.jogo-operador112.com/
// @match https://policia.jogo-operador112.com/
// @match https://www.jocdispecerat112.com/
// @match https://www.dispetcher112.ru/
// @match https://www.dispecerske-centrum.com/
// @match https://www.larmcentralen-spelet.se/
// @match https://polis.larmcentralen-spelet.se/
// @match https://www.112-merkez.com/
// @match https://www.dyspetcher101-game.com/
// @grant none
// ==/UserScript==
(function() {
'use strict';
var Frei
if (I18n.locale == "de_DE") Frei = "Frei: "
else if (I18n.locale == "nl_NL") Frei = "Team: "
else Frei = "Alliance: "
$('#search_input_field_missions')
.css('width', '80%')
.after(` <span id="own_alliance_missions">` + Frei +`${$('#mission_list :not(.mission_deleted) .panel-success').length}</span>`);
let missionMarkerAddOrig = missionMarkerAdd;
missionMarkerAdd = (t) => {
missionMarkerAddOrig(t);
$('#own_alliance_missions').text(Frei + `${$('#mission_list :not(.mission_deleted) .panel-success').length}`);
};
let missionDeleteOrig = missionDelete;
missionDelete = (e) => {
missionDeleteOrig(e);
$('#own_alliance_missions').text(Frei + `${$('#mission_list :not(.mission_deleted) .panel-success').length}`);
}
})();