meta-horizon 0.0.1-security → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of meta-horizon might be problematic. Click here for more details.

Files changed (119) hide show
  1. package/.cache/replit/__replit_disk_meta.json +1 -0
  2. package/.cache/replit/nix/env.json +1 -0
  3. package/.config/configstore/update-notifier-npm.json +4 -0
  4. package/.config/configstore/update-notifier-npm.json.1735545094 +4 -0
  5. package/.gitattributes +2 -0
  6. package/.replit +80 -0
  7. package/.upm/store.json +1 -0
  8. package/Extra/Database/index.js +469 -0
  9. package/Extra/ExtraAddons.js +82 -0
  10. package/Extra/ExtraFindUID.js +62 -0
  11. package/Extra/ExtraGetThread.js +340 -0
  12. package/Extra/ExtraScreenShot.js +430 -0
  13. package/Extra/ExtraUptimeRobot.js +38 -0
  14. package/Extra/Html/Classic/script.js +833 -0
  15. package/Extra/Html/Classic/scriptbackup.js +119 -0
  16. package/Extra/Html/Classic/style.css +1222 -0
  17. package/Extra/Html/Classic/stylebackup.css +8 -0
  18. package/Extra/Security/Index.js +173 -0
  19. package/Extra/Security/Step_1.js +6 -0
  20. package/Extra/Security/Step_2.js +22 -0
  21. package/Extra/Security/Step_3.js +22 -0
  22. package/Extra/Src/Change_Environment.js +24 -0
  23. package/Extra/Src/Check_Update.js +66 -0
  24. package/Extra/Src/History.js +115 -0
  25. package/Extra/Src/Instant_Update.js +64 -0
  26. package/Extra/Src/Last-Run.js +65 -0
  27. package/Extra/Src/Release_Memory.js +41 -0
  28. package/Extra/Src/image/checkmate.jpg +0 -0
  29. package/Extra/Src/uuid.js +137 -0
  30. package/Func/AcceptAgreement.js +31 -0
  31. package/Func/ClearCache.js +64 -0
  32. package/Func/ReportV1.js +54 -0
  33. package/Index.js +379 -0
  34. package/LICENSE +21 -0
  35. package/Language/index.json +223 -0
  36. package/Main.js +1110 -0
  37. package/Mainbackup.js +1211 -0
  38. package/README.md +142 -3
  39. package/broadcast.js +40 -0
  40. package/indexbackup.js +386 -0
  41. package/logger.js +66 -0
  42. package/package.json +95 -3
  43. package/replit.nix +8 -0
  44. package/src/Dev_Horizon_Data.js +125 -0
  45. package/src/Premium.js +25 -0
  46. package/src/Screenshot.js +83 -0
  47. package/src/addExternalModule.js +16 -0
  48. package/src/addUserToGroup.js +79 -0
  49. package/src/changeAdminStatus.js +79 -0
  50. package/src/changeArchivedStatus.js +41 -0
  51. package/src/changeAvt.js +85 -0
  52. package/src/changeBio.js +65 -0
  53. package/src/changeBlockedStatus.js +36 -0
  54. package/src/changeGroupImage.js +106 -0
  55. package/src/changeNickname.js +45 -0
  56. package/src/changeThreadColor.js +62 -0
  57. package/src/changeThreadEmoji.js +42 -0
  58. package/src/createNewGroup.js +70 -0
  59. package/src/createPoll.js +60 -0
  60. package/src/deleteMessage.js +45 -0
  61. package/src/deleteThread.js +43 -0
  62. package/src/forwardAttachment.js +48 -0
  63. package/src/getAccessToken.js +28 -0
  64. package/src/getCurrentUserID.js +7 -0
  65. package/src/getEmojiUrl.js +27 -0
  66. package/src/getFriendsList.js +73 -0
  67. package/src/getMessage.js +80 -0
  68. package/src/getThreadHistory.js +537 -0
  69. package/src/getThreadInfo.js +425 -0
  70. package/src/getThreadList.js +213 -0
  71. package/src/getThreadMain.js +220 -0
  72. package/src/getThreadPictures.js +59 -0
  73. package/src/getUID.js +59 -0
  74. package/src/getUserID.js +62 -0
  75. package/src/getUserInfo.js +113 -0
  76. package/src/getUserInfoMain.js +65 -0
  77. package/src/getUserInfoV2.js +32 -0
  78. package/src/getUserInfoV3.js +63 -0
  79. package/src/getUserInfoV4.js +55 -0
  80. package/src/getUserInfoV5.js +61 -0
  81. package/src/handleFriendRequest.js +46 -0
  82. package/src/handleMessageRequest.js +49 -0
  83. package/src/httpGet.js +49 -0
  84. package/src/httpPost.js +48 -0
  85. package/src/httpPostFormData.js +41 -0
  86. package/src/listenMqtt.js +786 -0
  87. package/src/logout.js +68 -0
  88. package/src/markAsDelivered.js +48 -0
  89. package/src/markAsRead.js +70 -0
  90. package/src/markAsReadAll.js +43 -0
  91. package/src/markAsSeen.js +51 -0
  92. package/src/muteThread.js +47 -0
  93. package/src/removeUserFromGroup.js +49 -0
  94. package/src/resolvePhotoUrl.js +37 -0
  95. package/src/searchForThread.js +43 -0
  96. package/src/sendMessage.js +379 -0
  97. package/src/sendTypingIndicator.js +80 -0
  98. package/src/setMessageReaction.js +109 -0
  99. package/src/setPostReaction.js +102 -0
  100. package/src/setTitle.js +74 -0
  101. package/src/threadColors.js +39 -0
  102. package/src/unfriend.js +43 -0
  103. package/src/unsendMessage.js +40 -0
  104. package/test/Database_Test.js +4 -0
  105. package/test/Db2.js +530 -0
  106. package/test/Meta_Database/A_README.md +1 -0
  107. package/test/Meta_Database/Database.db +0 -0
  108. package/test/data/shareAttach.js +146 -0
  109. package/test/data/something.mov +0 -0
  110. package/test/data/test.png +0 -0
  111. package/test/data/test.txt +7 -0
  112. package/test/env/.env +0 -0
  113. package/test/example-config.json +18 -0
  114. package/test/example-db.db +0 -0
  115. package/test/memoryleak.js +18 -0
  116. package/test/test-page.js +140 -0
  117. package/test/test.js +385 -0
  118. package/test/testv2.js +18 -0
  119. package/utils.js +1684 -0
@@ -0,0 +1,119 @@
1
+ var c = document.getElementById("myCanvas");
2
+ var ctx = c.getContext("2d");
3
+ var mask;
4
+
5
+ var pointCount = 500;
6
+ var str = "Horizon";
7
+ var fontStr = "bold 100pt Helvetica Neue, Helvetica, Arial, sans-serif";
8
+
9
+ ctx.font = fontStr;
10
+ ctx.textAlign = "auto";
11
+ c.width = (ctx.measureText(str).width);
12
+ c.height = 100; // Set to font size
13
+
14
+ var whitePixels = [];
15
+ var points = [];
16
+ var point = function(x,y,vx,vy){
17
+ this.x = x;
18
+ this.y = y;
19
+ this.vx = vx || 1;
20
+ this.vy = vy || 1;
21
+ };
22
+ point.prototype.update = function() {
23
+ ctx.beginPath();
24
+ ctx.fillStyle = "#95a5a6";
25
+ ctx.arc(this.x,this.y,1,0,2*Math.PI);
26
+ ctx.fill();
27
+ ctx.closePath();
28
+
29
+ // Change direction if running into black pixel
30
+ if (this.x+this.vx >= c.width || this.x+this.vx < 0 || mask.data[coordsToI(this.x+this.vx, this.y, mask.width)] != 255) {
31
+ this.vx *= -1;
32
+ this.x += this.vx*2;
33
+ }
34
+ if (this.y+this.vy >= c.height || this.y+this.vy < 0 || mask.data[coordsToI(this.x, this.y+this.vy, mask.width)] != 255) {
35
+ this.vy *= -1;
36
+ this.y += this.vy*2;
37
+ }
38
+
39
+ for (var k = 0, m = points.length; k<m; k++) {
40
+ if (points[k]===this) continue;
41
+
42
+ var d = Math.sqrt(Math.pow(this.x-points[k].x,2)+Math.pow(this.y-points[k].y,2));
43
+ if (d < 5) {
44
+ ctx.lineWidth = .2;
45
+ ctx.beginPath();
46
+ ctx.moveTo(this.x,this.y);
47
+ ctx.lineTo(points[k].x,points[k].y);
48
+ ctx.stroke();
49
+ }
50
+ if (d < 20) {
51
+ ctx.lineWidth = .1;
52
+ ctx.beginPath();
53
+ ctx.moveTo(this.x,this.y);
54
+ ctx.lineTo(points[k].x,points[k].y);
55
+ ctx.stroke();
56
+ }
57
+ }
58
+
59
+ this.x += this.vx;
60
+ this.y += this.vy;
61
+ };
62
+
63
+ function loop() {
64
+ ctx.clearRect(0,0,c.width,c.height);
65
+ for (var k = 0, m = points.length; k < m; k++) {
66
+ points[k].update();
67
+ }
68
+ }
69
+
70
+ function init() {
71
+ // Draw text
72
+ ctx.beginPath();
73
+ ctx.fillStyle = "#000";
74
+ ctx.rect(0,0,c.width,c.height);
75
+ ctx.fill();
76
+ ctx.font = fontStr;
77
+ ctx.textAlign = "left";
78
+ ctx.fillStyle = "#fff";
79
+ ctx.fillText(str,0,c.height/2+(c.height / 2));
80
+ ctx.closePath();
81
+
82
+ // Save mask
83
+ mask = ctx.getImageData(0,0,c.width,c.height);
84
+
85
+ // Draw background
86
+ ctx.clearRect(0,0,c.width,c.height);
87
+
88
+ // Save all white pixels in an array
89
+ for (var i = 0; i < mask.data.length; i += 4) {
90
+ if (mask.data[i] == 255 && mask.data[i+1] == 255 && mask.data[i+2] == 255 && mask.data[i+3] == 255) {
91
+ whitePixels.push([iToX(i,mask.width),iToY(i,mask.width)]);
92
+ }
93
+ }
94
+
95
+ for (var k = 0; k < pointCount; k++) {
96
+ addPoint();
97
+ }
98
+ }
99
+
100
+ function addPoint() {
101
+ var spawn = whitePixels[Math.floor(Math.random()*whitePixels.length)];
102
+
103
+ var p = new point(spawn[0],spawn[1], Math.floor(Math.random()*2-1), Math.floor(Math.random()*2-1));
104
+ points.push(p);
105
+ }
106
+
107
+ function iToX(i,w) {
108
+ return ((i%(4*w))/4);
109
+ }
110
+ function iToY(i,w) {
111
+ return (Math.floor(i/(4*w)));
112
+ }
113
+ function coordsToI(x,y,w) {
114
+ return ((mask.width*y)+x)*4;
115
+
116
+ }
117
+
118
+ setInterval(loop,50);
119
+ init();