forked from Neondertalec/tsmod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsole-tsmod.js
5634 lines (5062 loc) · 169 KB
/
console-tsmod.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
globalThis.temp1 = undefined;
globalThis.temp2 = undefined;
globalThis.temp3 = undefined;
globalThis.CANR = true;
console.log("%c IMPORTANT! \nIF THERE IS NO 'Script loaded.' TEXT, YOU PROBABLY HAVE MORE THAT 1 SCRIPT ENABLED THAT CONFLICTS. PLEASE TURN OF THE SCRIPTS YOU DONT NEED.","color: red; font-size: 20px; background: black;border-radius:10px;");
console.log("%cScript loading... ","color: green; font-size: 20px");
console.groupCollapsed("what happened between loading")
console.log("...")
window.customTags = [
{
names: [],
color: "#FFA390",
text: "[TW]",
rainbow: false,
prior:0,
lock:false,
},
]
window.vers = {
v: "99.99.99",
cl:{
ts:`#ad86d8`,
to:`#6f8fd5`,
jrm:`#f1c40f`,
mod:`#e67e22`,
sm:`#ff6b5b`,
hm:`#f03333`,
example: `#f99261`,
cmd: `#aaa`,
scriptmsg: `#ffceb7`,
scripter: `#ff00bc`,
},
toVers:function(v){
return `<b style="text-decoration: underline;" onclick="document.querySelector(\`[logid='${v}']\`).scrollIntoView()">${v}</b>`;
},
filllogp:function(){
window.vers.changeLog = [
{
version:`1.1.96`,
news:[
`Some fixes.`,
[`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} Kaluub is now managing all the tags`,
`TS tags are back.`,
`All tags should now be up to date.`,
]
],
},
{
version:`1.1.94 (95)`,
news:[
`Some fixes.`,
`In the /profile page you can now see if the player is online or not by the green/gray indicator to the right of the players name.`,
`In the usercard you can now see energy, max energy and energy regeneration if the player is in the same area as you.`
],
},
{
version:`1.1.93`,
news:[
`Some fixes.`,
`In the usercard there are now mute/kick/ban buttons for mods.`
],
},
{
version:`1.1.92`,
news:[
`Some fixes.`,
],
},
{
version:`1.1.91`,
news:[
`Some fixes.`,
`In the profile page you can now see users <b>Highest Areas Achieved!</b>`,
`In the Hall of Fame you can search users by their name!`,
],
},
{
version:`1.1.90`,
news:[
`Some fixes.`,
[`New promotions for ${`[Mod]`.fontcolor(this.cl.mod)}:`,
`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} Raqzv`,
`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} trevr`,
],
`You can now toggle tiles on/off.<br><i>${`Reentering the area is required`.fontcolor(this.cl.cmd)}</i>`,
],
},
{
version:`1.1.89`,
news:[
`Some fixes.`,
`Some Updates with the new pormotions (late).`,
[
`Thirteenth and fourteenth custom tags:`,
`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} <font class="rainbowText">[Kyng]</font> koraiii`,
`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} <font class="rainbowText">[oop]</font> trevr`,
],
`Removed TS and TO tags from display.<br>`+
`<details><summary>Reasons:</summary><ul>`+
`<li>Left TO</li>`+
`<li>Hard To manage unlike moderator tags</li>`+
`<li>Requested by Piger</li>`+
`</ul></details>`
],
},
{
version:`1.1.88`,
news:[
`Fixed new heroes and maps displaying in the user card and logs`,
[`New promotions for ${`[TO]`.fontcolor(this.cl.to)}:`,
`${`[Mod]`.fontcolor(this.cl.mod)} Amasterclasher`,
`${`[TS]`.fontcolor(this.cl.ts)} trevr`,
`${`[TS]`.fontcolor(this.cl.ts)} Raqzv`,
],
[`New promotions for ${`[TS]`.fontcolor(this.cl.ts)}:`,
`Dreamz`,
`4chan.org`,
`Dinonuggy`,
`BJG`
],
[
`Twelfth custom tag:`,
`${`[Mod]`.fontcolor(this.cl.mod)} 🤡 nosok`
],
],
},
{
version:`1.1.87`,
news:[
`${`Glob`.fontcolor(`#14a300`)}, ${`Magon`.fontcolor(`#ff005d`)}, ${`Ignis`.fontcolor(`#cd501f`)} and`+
` ${`Burning Bunker Hard`.fontcolor(`#e01b1b`)}, ${`Magnetic Monopole Hard`.fontcolor(`#bf00ff`)}, ${`Toxic Territory Hard`.fontcolor(`#5c5c5c`)}, ${`Restless Ridge Hard`.fontcolor(`#a88b64`)},`+
` are now displayed properly in the user card and logs.`,
[`New promotions for ${`[Mod]`.fontcolor(this.cl.mod)}:`,
`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} Nickchm`,
`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} nosok`,
`Vikenti`
],
[`New promotions for ${`[TS]`.fontcolor(this.cl.ts)}:`,
`${`[Mod]`.fontcolor(this.cl.mod)} nosok`,
`Jester`,
`546000`
]
],
},
{
version:`1.1.86`,
news:[
[`New promotions for ${`[TS]`.fontcolor(this.cl.ts)}:`,
`trevr`,
'Ventinari',
`Ashton94949`,
]
],
},
{
version:`1.1.85`,
news:[
`Fixed the chat that was breaking the game.`,
`Added a badge to Evades Olympics winners.`
],
},
{
version:`1.1.84`,
news:[
[`New promotion for ${`[TS]`.fontcolor(this.cl.ts)}:`,
`CZheng`,
],
[`New command ${`#arealb`.fontcolor(this.cl.cmd)}.<br>`+
`By using the command you will see a leaderboard in the chat in this format:<br>`+
`Name ;; Level ;; XP ;; Hero<br>`+
`You can sort it by typing ${`#arealb arg`.fontcolor(this.cl.cmd)} where arg is:`,
`area`,
`xp`,
`hero`,
`name`],
],
},
{
version:`1.1.83`,
news:[
[`New promotion for ${`[TS]`.fontcolor(this.cl.ts)}:`,
`Lann`,
],
`Bug fixes.`,
],
},
{
version:`1.1.82`,
news:[
[
`Eleventh custom tag:`,
`${`[h`.fontcolor("#c01fed")}${`u]`.fontcolor("#25e8be")} haha0201`
],
[`New promotions for ${`[TS]`.fontcolor(this.cl.ts)}:`,
`Raqzv`,
],
[
`Recolored custom tag:`,
`<font class="rainbowText">[buster]</font> AWEN<br>`
],
`Bug fixes.`,
],
},
{
version:`1.1.81`,
news:[
`Removed ${`[TS]`.fontcolor(this.cl.ts)} from ThatHodgeGuy.`,
[
`Tenth custom tag:`,
`${`[Capri-Sun]`.fontcolor("#B026FF")} Vikenti`
],
[
`Recolored custom tags:`,
`<font class="rainbowText">[Loy]</font> L0YqL<br>`
],
`Bug fixes.`,
],
},
{
version:`1.1.80`,
news:[
`In the profile page you can now see the users hats too!`,
`3rd tab in the changelog - links. It contains some faq links and videoes.`,
`Bug fixes.`,
],
},
{
version:`1.1.79`,
news:[
[`New promotions for ${`[TO]`.fontcolor(this.cl.to)}:`,
`${`[TS]`.fontcolor(this.cl.ts)} nexxyst`,
],
`In the profile page you can now see the VP graph!<br>`+
`${`<i>Actually something new?</i>`.fontcolor(this.cl.cmd)}`,
],
},
{
version:`1.1.78`,
news:[
[`New promotions for ${`[TS]`.fontcolor(this.cl.ts)}:`,
`๖ۣۜCorrupt 🆉`,
],
],
},
{
version:`1.1.77`,
news:[
[`New promotion for ${`[Jr. Mod]`.fontcolor(this.cl.jrm)}:`,
`${`[YouTuber]`.fontcolor("#2accac")} R0YqL`
],
[`New promotion for ${`[Mod]`.fontcolor(this.cl.mod)}:`,
`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} LightY`
],
`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} Exscord got demoted.`,
],
},
{
version:`1.1.76`,
news:[
[`New promotions for ${`[Jr. Mod]`.fontcolor(this.cl.jrm)}:`,
`nosok`,
`${`[TO]`.fontcolor(this.cl.to)} DepressionOwU`,
`${`[TO]`.fontcolor(this.cl.to)} Nickchm`,
`${`[TS]`.fontcolor(this.cl.ts)} Zade`
],
`Congratulations to <br>${`[Sr. Mod]`.fontcolor(this.cl.sm)} Jackal with his promotion to ${`[H. Mod]`.fontcolor(this.cl.hm)}!`,
],
},
{
version:`1.1.75`,
news:[
[`New promotions for ${`[TS]`.fontcolor(this.cl.ts)}:`,
`nexxyst`,
],
`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} Exscord is back.`,
],
},
{
version:`1.1.74`,
news:[
`fAtKiD got his ${`[TO]`.fontcolor(this.cl.to)} tag.`,
`Removed ${`[TS]`.fontcolor(this.cl.ts)} from Ventinari.`
],
},
{
version:`1.1.73`,
news:[
[`New promotions for ${`[TO]`.fontcolor(this.cl.to)}:`,
`${`[TS]`.fontcolor(this.cl.ts)} Nickchm`,
`[BREAK POINT]`,
`<i>fAtKiD became a ${`[TO]`.fontcolor(this.cl.to)} too but no tag for him.. yet..</i>`
],
`New command ${`#autodc`.fontcolor(this.cl.cmd)}, also added in to the R -> Commands.<br>`+
`The command allows you to automatically disconnect on F5 / Ctrl + R instead of being supposed to type /dc in to the chat.`
],
},
{
version:`1.1.72`,
news:[
`Fixed leaderboard being thin when showing heroes is enabled.`,
[`New promotion and demotions.`,
`${`[Mod]`.fontcolor("#e67e22")} Pasemrus`,
`${`<strike>[Jr. Mod]</strike>`.fontcolor(this.cl.jrm)} piger`,
`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} AWEN`,
],
],
},
{
version:`1.1.71`,
news:[
`Main menu now has a shortcut button to the leaderboard.`,
],
},
{
version:`1.1.70`,
news:[
`Removed ${`TO`.fontcolor(this.cl.to)} from CrEoP.`,
[
`New VP colors in the usercard:`,
`${`### / Not found`.fontcolor(`#aaa`)}`,
`${`0-74`.fontcolor(`#ff0000`)}`,
`${`75-499`.fontcolor(`#00ff00`)}`,
`${`500-19'999`.fontcolor(`#0095ff`)}`,
`<font class="rainbowText">20'000 and more</font>`,
],
],
},
{
version:`1.1.69`,
news:[
`A bugfix :/`
],
},
{
version:`1.1.68`,
news:[
`FPS and ping??<br>`+
`${`<i>Note: fps is updating every second, Ping is updating when YOU send a message.</i>`.fontcolor(this.cl.cmd)}`,
[
`1 new command (# for help)`,
`${`#togglefps`.fontcolor(this.cl.cmd)}`,
`[BREAK POINT]`,
`This command toggles ping and fps. It was also added to the ${`R -> Commands.`.fontcolor(this.cl.cmd)}`
],
`${`[TW]`.fontcolor(`#FFA390`)} tag is now remade to the new way too. It will now be possible to see someone like:<br>`+
`${`[TO]`.fontcolor(this.cl.to)} ${`[TW]`.fontcolor(`#FFA390`)} ${`[Hu]`.fontcolor(`#2FA390`)} Cool Guy.`
],
},
{
version:`1.1.67`,
news:[
[
`Tags are now done in a different way. Now there is an ability to have multiple tags.<br>`+
`Some tags now:`,
`${`[TS]`.fontcolor(this.cl.ts)} <font class="rainbowText">[Roy]</font> R0YqL`,
`${`[TO]`.fontcolor(this.cl.to)} ${`[SCR]`.fontcolor(this.cl.scripter)} DepressionOwU`,
`${`[TO]`.fontcolor(this.cl.to)} <font class="rainbowText">[Dep's BFF]</font> Jayyyyyyyyyyyyyy`,
`[BREAK POINT]`,
`${`<i>For people with custom tag scripts: The old tags are still supported.</i>`.fontcolor(this.cl.cmd)}`,
],
`The change logs are now a one-piece thing, editing the css wont make other stuff go off if you do it correctly.`
],
},
{
version:`1.1.66`,
news:[
[
`New promotions for ${`[TO]`.fontcolor(this.cl.to)}:`,
`${`[Jr. Mod]`.fontcolor(this.cl.jrm)} piger`,
`${`[TS]`.fontcolor(this.cl.ts)} DepressionOwU`
],
[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `Lumaz`]
],
},
{
version:`1.1.65`,
news:[
`Removed ${`TS`.fontcolor(this.cl.ts)} from Creazy.`,
[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `TimiT`, `Ventinari`]
],
},
{
version:`1.1.64`,
news:[
`Added a new permanent badge for the people who won in the olympics:`+
`<br><br><image src="https://cdn.discordapp.com/attachments/617049086452957189/869889869827178516/olympics.png"></image>`,
`The ${window.vers.toVers("1.1.63")} update now works with the ban commands too.`
],
},
{
version:`1.1.63`,
news:[
`For mods:<br>The mute command has more abilities now. The example of usage:<br><b>/mute <name> 1d 1s</b> - mutes for 1 day and 1 second<br>`+
`available duration letters: <b>s, m, h, d, w,</b> (russian keys<b>, с, м, ч, д, н</b>).<br>`+
`Note: you can use multiple same arguments e.g. <b>1s 1s 1h</b> will be the same as <b>2s 1h</b>.<br>`+
`${`<i>It works only if the player is currently in the server.</i>`.fontcolor(this.cl.cmd)}`,
],
},
{
version:`1.1.62`,
news:[
[
`Ninth custom tag:`,
`${`[10$]`.fontcolor("#12e612")} AWEN`,
`${`[REALLY]`.fontcolor("#12e612")} NoAwen`,
]
],
},
{
version:`1.1.61`,
news:[
`In the Export/Import logs window when you click on the name a user card will appear instead of simpe logs.`,
[
`Eighth custom tags:`,
`${`[Capri-Sun]`.fontcolor("#ff8700")} L0YqL`,
],
[
`Recolored custom tags:`,
`<font class="rainbowText">[Roy]</font> R0YqL<br>`,
`${`[SCR]`.fontcolor(this.cl.scripter)} DepressionOwU`
]
],
},
{
version:`1.1.60`,
news:[
[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `ElFeyer`],
]
},
{
version:`1.1.59`,
news:[
`Some bug fixes.`,
]
},
{
version:`1.1.58`,
news:[
`Some bug fixes.`,
`${`[TW]`.fontcolor(`#FFA390`)} no longer shows in the leaderboard. ${`<i>Yes, that wasnt a feature.</i>`.fontcolor(this.cl.cmd)}`,
[
`new buttons in the R key window:`,
`Team logger`,
`Friends & Notes`
],
[`new ${`[TS]`.fontcolor(this.cl.ts)} and ${`[TO]`.fontcolor(this.cl.to)}:`,
`${`[YouTuber]`.fontcolor("#2accac")} Strat`]
]
},
{
version:`1.1.57`,
news:[
`${`Burning Bunker`.fontcolor(`#e01b1b`)} is now displayed properly in logs.`,
`In the usercard you can left-click on the users name and a window will appear.<br>`+
`In the window you can mark the user as a friend (${`[F]`.fontcolor(`#0f0`)}) or put a warning (${`[!]`.fontcolor(`#f00`)}) that will appear in the leaderboard to the left of the users name.<br>`+
`You can also leave a note on the user.`,
`The R key now works in a different way. Too much to explain, just try it out.`,
`Some fixes with the list of players with a role e.g. TS, TO, etc.`,
]
},
{
version:`1.1.56`,
news:[
`Bug fixes.`,
`The ${window.vers.toVers("1.1.41")} update 1st part:<br>`+
`The place where you need to sellect the team players now has a button <b>[A]</b><br>`+
`The button toggles between 2 list. The 1st list is with the players who were in the area at the time the window got opened.<br>`+
`The 2nd list shows all players that have been detected.`,
`In the leaderboard you can now see ${`[M]`.fontcolor(`#e67e22`)} and ${`[D]`.fontcolor(`#3498db`)} tags. ${`[M]`.fontcolor(`#e67e22`)} is for moderators, ${`[D]`.fontcolor(`#3498db`)} is for developers`,
[
`1 new command (# for help)`,
`${`#togglelbtags`.fontcolor(this.cl.cmd)}`,
`[BREAK POINT]`,
`This command toggles the tags in the leaderboard. The ${window.vers.toVers("1.1.52")} update is changed again.`
],
`The log of death in SS now shows the level instead of area.`,
`More stuff for the custom commands.`,
]
},
{
version:`1.1.55`,
news:[
`Bug fixes.`,
`Custom commands? Well.. You need to know how stuff works to make them...`,
`The ${window.vers.toVers("1.1.52")} update is now changed a bit.<br>Check the <a style="color:${this.cl.cmd}" target="_blank" href="https://github.com/Neondertalec/tsmod#update-1152">[README.md]</a> and update it to the new way.`,
`New tag ${`[TW]`.fontcolor(`#FFA390`)} is added. It will not require you to update the script when a tourney is over.`
]
},
{
version:`1.1.54`,
news:[
`Bug fixes.`
]
},
{
version:`1.1.53`,
news:[
[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `prepackagedsushi`],
]
},
{
version:`1.1.52`,
news:[
`Bug fixes.`,
[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `Rxpct`, `Antony666`],
[
`Seventh custom tag:`,
`${`[THICC]`.fontcolor("#9D2005")} thiccsucc`
],
`Local tag (chat) and prefix (ingame over the name #toggletag) support.<br><a style="color:${this.cl.cmd}" target="_blank" href="https://github.com/Neondertalec/tsmod#update-1152">[see this for details]</a>.`
]
},
{
version:`1.1.51`,
news:[
[
`New promotions for ${`[Jr. Mod]`.fontcolor(this.cl.jrm)}:`,
`${`[TS]`.fontcolor(this.cl.ts)} Exscord`,
],
[
`Fourth, fifth and sixth custom tags:`,
`${`[Roy]`.fontcolor("#009b77")} R0YqL`,
`${`[Air]`.fontcolor("#51dddd")} Pasemrus`
],
`<font class="rainbowText">[Dep's BFF]</font> Jayyyyyyyyyyyyyy<br>`+
`${`WaIt... It ChAnGeS CoLoRs?!`.fontcolor(this.cl.cmd)}`
]
},
{
version:`1.1.50`,
news:[
`Some css fixes.`,
[
`Second and Third custom tags:`,
`${`[Invi]`.fontcolor("#51dddd")} Invi`,
`${`[litijo]`.fontcolor(`#f19dba`)} LightY`
],
]
},
{
version:`1.1.49`,
news:[
[`1 new command (# for help)`, `${`#toggletimer`.fontcolor(this.cl.cmd)}`],
[
`New promotions for ${`[Jr. Mod]`.fontcolor(this.cl.jrm)}:`,
`${`[TS]`.fontcolor(this.cl.ts)} piger`,
`${`[TS]`.fontcolor(this.cl.ts)} LightY`,
`${`[TO]`.fontcolor(this.cl.to)} asdfasdfasdf1234`,
`${`[TO]`.fontcolor(this.cl.to)} Pasemrus`,
`${`[TO]`.fontcolor(this.cl.to)} thiccsucc`
],
[`First ever custom tag:`,`${`[evader]`.fontcolor(`#009b77`)} Gianni`],
]
},
{
version:`1.1.48`,
news:[
`GRB go woosh...`,
`Removed ${`TS`.fontcolor(this.cl.ts)} from DEFA <i>${`(temporally)`.fontcolor(this.cl.cmd)}<i>.`,
]
},
{
version:`1.1.47`,
news:[
`Bug fixes`,
[
`the following keys now can accept a splitter argument:`,
`${`{name}`.fontcolor(this.cl.cmd)}`,
`${`{hero}`.fontcolor(this.cl.cmd)}`,
`${`{hero num}`.fontcolor(this.cl.cmd)}`,
`[BREAK POINT]`,
`For example if you type ${`{name}`.fontcolor(this.cl.cmd)}, the splitter will be "+".<br>But if you type ${`{name &}`.fontcolor(this.cl.cmd)}, the splitter will be "&".`,
]
]
},
{
version:`1.1.46`,
news:[
[
`GRB Bug fixes:`,
`The command doesn't lock upgrade buttons anymore.`,
`When you turn GRB off you automatically stop.`,
],
]
},
{
version:`1.1.45`,
news:[
`Bug fixes.`,
`The hero displayed in the user card is now depending on the last log time you sellect analogically to the ${window.vers.toVers("1.1.44")} update.`,
`Team result generation window in the format part now has buttons.<br>By clicking on a button the text of it will be added to the end of the format input.`
]
},
{
version:`1.1.44`,
news:[
`The hero in the result generator now depends on the last log time you sellect.<br>`+
`That means: if a user rejoins the game with another hero and your last log for the generation is before the refresh log, `+
`the log generator will give the hero, the player was before reconnecting.<br><b title="`+
`log 1: join as Magmax\n`+
`log 23: join as Necro\n`+
`log 52: join as Shade\n`+
`if last log sellected is 1-22 - Magmax\n`+
`if last log sellected is 23-51 - Necro\n`+
`if last log sellected is 52+ - Shade\n`+
`" style="text-decoration: underline;">${`[Hoverable example]`.fontcolor(this.cl.example)}</b>`,
`New log key for the team log generator: ${`{hero num}`.fontcolor(this.cl.cmd)}<br>Example: 1 Necro + 4 Chrono.`,
[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `PotatoNuke`],
//`Removed ${`TS`.fontcolor(`#ad86d8`)} from Creazy.`,
`Some bug fixes.`,
]
},
{
version:`1.1.43`,
news:[
`Now you need to see a player just one time to know its vp instead of being suppost to be in the same area as the player.`,
`Current result format is now clickable too.`,
`"Show heroes" in settings now saves.`,
`Leaderboard now shows "EU" or "NA" too.`,
`When you open user log window it will be automatically scrolled down.<br>`+
`If the window is fully scrolled down and a new log adds, it will automatically get scrolled.`,
]
},
{
version:`1.1.42`,
news:[`Some bug fixes.`,
[`1 new command (# for help)`, `${`#toggleusercard`.fontcolor(this.cl.cmd)}`],
`Every <b>bold</b> text from the ${`[SCRIPT]`.fontcolor(this.cl.scriptmsg)} message is now acting as a button. Some buttons replace the text in the chat input and others add the text.`]
},
{
version:`1.1.41`,
news:[[`When you leftclick on the area on the leaderboard a window will show.<br>In the window you need to:`,
`Sellect the players that were on that area when the popup was opened`,
`Sellect log id's that you need. (a R button is there to update the list)`,
`Set the format of the result (It saves), hover for the hint.`],
`Areas in the leaderboard now have a number to the left of them that show the amount of players that are in it right now`,
[`1 new command (# for help)`, `${`#toggleusers`.fontcolor(this.cl.cmd)}`]]
},
{
version:`1.1.40`,
news:[`Removed ${`TS`.fontcolor(this.cl.ts)} from prod1gy.`]
},
{
version:`1.1.39`,
news:[`${`Boldrock`.fontcolor(`#a18446`)} and ${`Assorted Alcove`.fontcolor(`#805b12`)} are now displayed properly in the user card and logs.`]
},
{
version:`1.1.38`,
news:[[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `R0YqL`, `Nickchm`]]
},
{
version:`1.1.37`,
news:[
`New Log type of ${`purple color`.fontcolor("#7b478e")} that shows when the user leaves or joins the server.`,
`Some CSS fixes.`,
`Bug fixes.`
]
},
{
version:`1.1.36`,
news:[`Leaderboard now has a number to the right of it that shows the server you are in right now.`,
[`2 new commands (# for help)`, `${`#format`.fontcolor(this.cl.cmd)}`, `${`#setformat`.fontcolor(this.cl.cmd)}`],
`New button G in the user card.<br>By clicking on it you get the run of the user coppied in to your clipboard by the format setd by the commands above.`,
`Some CSS fixes.`
]
},
{
version:`1.1.35`,
news:[`Fixed a bug where you needed to change area to be able to rightclick on a player in the leaderboard.`]
},
{
version:`1.1.34`,
news:[[`Added piger's alt to ${`TS`.fontcolor(this.cl.ts)}:`, `1333333`]]
},
{
version:`1.1.33`,
news:[`Changelog!`, `Fixed a bug when you could get a gray screen at a random moment.`]
},
{
version:`1.1.32`,
news:[`Display current and new version if an update is available.`]
},
{
version:`1.1.29`,
news:[[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `DEFA`]]
},
{
version:`1.1.28`,
news:[[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `,DSG,`,`piger`]]
},
{
version:`1.1.27`,
news:[`GRB (Go Right Bot)<br>Added new command: ${`#grb`.fontcolor(this.cl.cmd)}.`]
},
{
version:`1.1.26`,
news:[[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `prod1gy`, `Zade`]]
},
{
version:`1.1.23`,
news:[`Allowed heroes.<br>On hero click a popup will appear.<br>In the popup you can sellect heroes you want to see crossed in the user card.`]
},
{
version:`1.1.22`,
news:[`Removed ${`TS`.fontcolor(this.cl.ts)} from Priox.`]
},
{
version:`1.1.21`,
news:[`Made user cards and user logs dragable.`]
},
{
version:`1.1.19`,
news:[`Added 'BANNED' to user who are banned from tournaments.`]
},
{
version:`1.1.15`,
news:[`Removed ${`TS`.fontcolor(this.cl.ts)} from drippyk.`]
},
{
version:`1.1.13`,
news:[[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `LightY`]]
},
{
version:`1.1.12`,
news:[`From now on the script will work all the time.`]
},
{
version:`1.1.10`,
news:[[`Added new ${`TS`.fontcolor(this.cl.ts)}:`, `Stryker123`], `Became a TS and made my tag ${`[TS&Scripter]`.fontcolor(this.cl.scripter)} instead of ${`[Scripter]`.fontcolor(this.cl.scripter)}.`]
},
{
version:`1.1.2`,
news:[`Updated user card.`, `Export/Import logs.`]
},
];
window.vers.links = [
{
version: ["1", `<a href="https://github.com/Neondertalec/tsmod">Info</a>`],
news:[
`<a href="https://www.youtube.com/watch?v=XRXmW23zyWw&feature=youtu.be&ab_channel=itsme">How to install (18s video).</a>`,
`<a href="https://www.youtube.com/watch?v=MA9A8OmK0Xo&ab_channel=PigerthePig">1.0.0 version video (by piger).</a>`,
`Found a bug or someone is missing a tag? lmk:<br><i><b>${`🎀Aggression🎀#5556`.fontcolor("#ff00ff")}</b></i>`,
],
},
{
version: ["1", `<a href="https://github.com/Neondertalec/tsmod/blob/main/faq.md">FAQ</a>`],
news:[
`<a href="https://github.com/Neondertalec/tsmod/blob/main/faq.md#how-to-install">How to install.</a>`,
`<a href="https://github.com/Neondertalec/tsmod/blob/main/faq.md#how-to-update">How to update.</a>`,
`<a href="https://github.com/Neondertalec/tsmod/blob/main/faq.md#script-doesnt-work">Something is wrong/not working?</a>`,
],
}
];
},
getm: function(){
try{
var xm=new XMLHttpRequest();
xm.open("GET","https://raw.githubusercontent.com/Neondertalec/tsmod/main/meta.json",false);
xm.send();
let data = JSON.parse(xm.response);
const olCache = {};
let loadOl = (ol)=>{
if(olCache[ol])return olCache[ol];
xm.open("GET",data[ol],false);
xm.send();
return olCache[ol] = xm.response;
}
if(data["ol-tw"]){
let olData = loadOl("ol-tw");
data.tw = JSON.parse(olData).tw;
}
if(data["ol-ctags"]){
let olData = loadOl("ol-ctags");
data.ctags = {...(data.ctags || []), ...JSON.parse(olData).tags};
}
if(data["ol-tags"]){
let olData = loadOl("ol-tags");
data.tags = [...(data.tags || []), ...JSON.parse(olData).tags];
}
return data;
}catch(e){console.error("failed to load meta!", e)}
},
checkVer: function(v1, v2){
[v1, v2] = [v1.split(".").map((v)=>parseInt(v)), v2.split(".").map((v)=>parseInt(v))]
for(var i = 0; i < v1.length; i++){
if(v1[i] < v2[i]){
return true;
}
}
return false;
},
check: function(){
const d = this.getm();
if(d.tw){
let names = d.tw;
globalThis.tags.tags["[TW]"] = names;
globalThis.customTags[0].names = names;
}
if(d.tags){
try{
for(let i in d.tags){
let ntag = d.tags[i];
globalThis.customTags.push({
names: [...ntag.names],
color: ntag.color || "#ff0000",
text: ntag.text || "[?]",
rainbow: !!ntag.rainbow,
join: !!ntag.join,
prior: ntag.prior || 0,
lock: !!ntag.lock,
});
}
}catch(e){console.error(e)}
}
if(d.ctags){
try{
for(let i in d.ctags){
let tag = d.ctags[i];
globalThis.tags.tagsData[i] = tag;
if(!globalThis.tags.tags[i]) globalThis.tags.tags[i] = [atwne];
globalThis.tags.tags[i].push(...(tag.players||[]))
}
}catch(e){console.error(e)};
}
if(this.checkVer(this.v,d.v)){
const ver = document.createElement("div");
ver.id = "version-warning";
ver.innerHTML = `<div class="v-title">TS mod</div><br><div class="v-cv">Current version: </div><div>${this.v}</div><br><div class="v-nv">Latest version: </div><div>${d.v}</div>`;
document.body.appendChild(ver);
}
tags.calcOldTags();
},
genLog: function(version, news){
let id = version, ver = version;
if(typeof version == "object"){
id = version[0]; ver = version[1];
}
let newData =
`<div class="changelog-section" logid="${id}">`+
`<div class="changelog-section-header">`+
`<span style="vertical-align: middle;">${ver}</span>`+
`</div>`+
`<ul class="changelog-change-list">`;
for(let i = 0; i < news.length; i++){
if(typeof news[i] == "string"){
newData += `<li>${news[i]}</li>`
}else{
newData += `<li>${news[i][0]}`
newData += `<ul>`;
let brkd = -1;
for(let j = 1; j < news[i].length; j++){
if(news[i][j] === "[BREAK POINT]"){
brkd = j+1;
break;
}
newData += `<li>${news[i][j]}</li>`
}
if(brkd != -1){
newData += `</ul>`
for(let j = brkd; j < news[i].length; j++){
newData += news[i][j];
}
newData += `</li>`
}else{
newData += `</ul></li>`
}
}
}
newData +=
`</ul>`+
`</div>`;
return newData;
},
chlog:[null,null],
swi: function(who){
this.chlog[0] = document.querySelector(".changelog");
this.chlog[1] = document.querySelector(".ts-changelog");
this.chlog[2] = document.querySelector(".ts-links");
if(this.chlog[1].innerHTML == ""){
this.chlog[1].innerHTML = `<div class="changelog-header">TS Mod Changelog</div>`;
const arr = window.vers.changeLog;
for(let i = 0; i < arr.length; i++){
this.chlog[1].innerHTML += window.vers.genLog(arr[i].version, arr[i].news);
}
}
if(this.chlog[2].innerHTML == ""){
this.chlog[2].innerHTML = `<div class="changelog-header">Links</div>`;
const arr = window.vers.links;
for(let i = 0; i < arr.length; i++){
this.chlog[2].innerHTML += window.vers.genLog(arr[i].version, arr[i].news);
}
}
if(!this.chlog[0])return void (console.warn(".changelog not found"));
if(!this.chlog[1])return void (console.warn(".ts-changelog not found"));
if(!this.chlog[2])return void (console.warn(".ts-links not found"));
let l = ["ev", "ts", "li"]
this.chlog.forEach((e,i)=>{
if(who != l[i]){
e.classList.contains("hidden")||
e.classList.add("hidden")
}else{
e.classList.contains("hidden")&&
e.classList.remove("hidden")
}
});
}
/*color: function(text, color){
return `<aa style="${color}">${text}</aa>`;
}*/
}
document.createElementP = function(name, args = null, fnc=null){
const element = document.createElement(name)
if(["input", "textarea"].includes(name))element.setAttribute("c-lock", "")
if(args != null)Object.assign(element,args);
if(fnc) fnc(element);
return element;
}
window.vers.filllogp();
globalThis.CacheTs = class CacheTs{
_data = {};
setVal(key, val){
return this._data[key] = val;
}
getVal(key, def = undefined){
return this._data[key] ?? def;
}
delVal(key){
if(key in this._data) delete this._data[key];
}
hasVal(key){
return key in this._data;
}
}
new MutationObserver(function (m){
if(document.querySelector(".leaderboard-line.Central-Core-Dull")){
window.updateLeaderboard();
this.disconnect();
}
}).observe(document, {childList: true, subtree: true});
window.blaclist = ["GuestRex", "TournamentPlox", "Wayward", "xxloki", "Zeratuone1", "papumpirulitoPD", "Creazy", "creæzy", "【𝟔𝟗】ᴄʀᴇᴀᴢʏ", "wre4th", "CrEaZy ", "Strat", "Zwaze"];
try{
var xm=new XMLHttpRequest();
xm.open("GET","https://docs.google.com/document/d/1kk2PaGMxSIO7fnvF2PHL2rOiI7ApUMrI34evAaGdN8E/edit",false);
xm.send();
if(xm.response.length > 1000){
let newArr = [];
xm.response.slice(xm.response.indexOf("anned Players\\n\\n\\u0010\\u0012\\u001cPlayer"), xm.response.indexOf("\\n\\u0011")).replace(/\\u0012\\u001c/gm, "\n").replace(/\\n\\u001c/gm, "/n").split("\n").forEach((e,i)=>{if(i>1){newArr._d = 1;newArr.push(e.split("/n")[0])}})
if(newArr._d){
delete newArr._d
window.blaclist = newArr;
}
}
}catch{}
globalThis.tagsEX = globalThis.tagsEX ?? {};
globalThis.tagDataEX = globalThis.tagsEX ?? {};
globalThis.tagsEX = {...globalThis.tagsEX,...{'[SCR]':['DepressionOwU'],}}
globalThis.tagDataEX = {...globalThis.tagDataEX,...{'[SCR]': {presudo:"[TO&Scripter]", color:"#ff00bc"},}};