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.
- package/.cache/replit/__replit_disk_meta.json +1 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.config/configstore/update-notifier-npm.json +4 -0
- package/.config/configstore/update-notifier-npm.json.1735545094 +4 -0
- package/.gitattributes +2 -0
- package/.replit +80 -0
- package/.upm/store.json +1 -0
- package/Extra/Database/index.js +469 -0
- package/Extra/ExtraAddons.js +82 -0
- package/Extra/ExtraFindUID.js +62 -0
- package/Extra/ExtraGetThread.js +340 -0
- package/Extra/ExtraScreenShot.js +430 -0
- package/Extra/ExtraUptimeRobot.js +38 -0
- package/Extra/Html/Classic/script.js +833 -0
- package/Extra/Html/Classic/scriptbackup.js +119 -0
- package/Extra/Html/Classic/style.css +1222 -0
- package/Extra/Html/Classic/stylebackup.css +8 -0
- package/Extra/Security/Index.js +173 -0
- package/Extra/Security/Step_1.js +6 -0
- package/Extra/Security/Step_2.js +22 -0
- package/Extra/Security/Step_3.js +22 -0
- package/Extra/Src/Change_Environment.js +24 -0
- package/Extra/Src/Check_Update.js +66 -0
- package/Extra/Src/History.js +115 -0
- package/Extra/Src/Instant_Update.js +64 -0
- package/Extra/Src/Last-Run.js +65 -0
- package/Extra/Src/Release_Memory.js +41 -0
- package/Extra/Src/image/checkmate.jpg +0 -0
- package/Extra/Src/uuid.js +137 -0
- package/Func/AcceptAgreement.js +31 -0
- package/Func/ClearCache.js +64 -0
- package/Func/ReportV1.js +54 -0
- package/Index.js +379 -0
- package/LICENSE +21 -0
- package/Language/index.json +223 -0
- package/Main.js +1110 -0
- package/Mainbackup.js +1211 -0
- package/README.md +142 -3
- package/broadcast.js +40 -0
- package/indexbackup.js +386 -0
- package/logger.js +66 -0
- package/package.json +95 -3
- package/replit.nix +8 -0
- package/src/Dev_Horizon_Data.js +125 -0
- package/src/Premium.js +25 -0
- package/src/Screenshot.js +83 -0
- package/src/addExternalModule.js +16 -0
- package/src/addUserToGroup.js +79 -0
- package/src/changeAdminStatus.js +79 -0
- package/src/changeArchivedStatus.js +41 -0
- package/src/changeAvt.js +85 -0
- package/src/changeBio.js +65 -0
- package/src/changeBlockedStatus.js +36 -0
- package/src/changeGroupImage.js +106 -0
- package/src/changeNickname.js +45 -0
- package/src/changeThreadColor.js +62 -0
- package/src/changeThreadEmoji.js +42 -0
- package/src/createNewGroup.js +70 -0
- package/src/createPoll.js +60 -0
- package/src/deleteMessage.js +45 -0
- package/src/deleteThread.js +43 -0
- package/src/forwardAttachment.js +48 -0
- package/src/getAccessToken.js +28 -0
- package/src/getCurrentUserID.js +7 -0
- package/src/getEmojiUrl.js +27 -0
- package/src/getFriendsList.js +73 -0
- package/src/getMessage.js +80 -0
- package/src/getThreadHistory.js +537 -0
- package/src/getThreadInfo.js +425 -0
- package/src/getThreadList.js +213 -0
- package/src/getThreadMain.js +220 -0
- package/src/getThreadPictures.js +59 -0
- package/src/getUID.js +59 -0
- package/src/getUserID.js +62 -0
- package/src/getUserInfo.js +113 -0
- package/src/getUserInfoMain.js +65 -0
- package/src/getUserInfoV2.js +32 -0
- package/src/getUserInfoV3.js +63 -0
- package/src/getUserInfoV4.js +55 -0
- package/src/getUserInfoV5.js +61 -0
- package/src/handleFriendRequest.js +46 -0
- package/src/handleMessageRequest.js +49 -0
- package/src/httpGet.js +49 -0
- package/src/httpPost.js +48 -0
- package/src/httpPostFormData.js +41 -0
- package/src/listenMqtt.js +786 -0
- package/src/logout.js +68 -0
- package/src/markAsDelivered.js +48 -0
- package/src/markAsRead.js +70 -0
- package/src/markAsReadAll.js +43 -0
- package/src/markAsSeen.js +51 -0
- package/src/muteThread.js +47 -0
- package/src/removeUserFromGroup.js +49 -0
- package/src/resolvePhotoUrl.js +37 -0
- package/src/searchForThread.js +43 -0
- package/src/sendMessage.js +379 -0
- package/src/sendTypingIndicator.js +80 -0
- package/src/setMessageReaction.js +109 -0
- package/src/setPostReaction.js +102 -0
- package/src/setTitle.js +74 -0
- package/src/threadColors.js +39 -0
- package/src/unfriend.js +43 -0
- package/src/unsendMessage.js +40 -0
- package/test/Database_Test.js +4 -0
- package/test/Db2.js +530 -0
- package/test/Meta_Database/A_README.md +1 -0
- package/test/Meta_Database/Database.db +0 -0
- package/test/data/shareAttach.js +146 -0
- package/test/data/something.mov +0 -0
- package/test/data/test.png +0 -0
- package/test/data/test.txt +7 -0
- package/test/env/.env +0 -0
- package/test/example-config.json +18 -0
- package/test/example-db.db +0 -0
- package/test/memoryleak.js +18 -0
- package/test/test-page.js +140 -0
- package/test/test.js +385 -0
- package/test/testv2.js +18 -0
- 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();
|