alicezetion 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cache/replit/__replit_disk_meta.json +1 -1
- package/Main.js +23 -5
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"nonce":
|
1
|
+
{"nonce":5196796132528607608,"last_updated":{"seconds":1693559125,"nanos":786672000}}
|
package/Main.js
CHANGED
@@ -263,8 +263,9 @@ function setOptions(globalOptions, options) {
|
|
263
263
|
* @param {{ getCookies: (arg0: string) => any[]; }} jar
|
264
264
|
*/
|
265
265
|
|
266
|
+
/*
|
266
267
|
function buildAPI(globalOptions, html, jar) {
|
267
|
-
var maybeCookie = jar.getCookies("https://www.facebook.com").filter(function(/** @type {{ cookieString: () => string; }}
|
268
|
+
var maybeCookie = jar.getCookies("https://www.facebook.com").filter(function(/** @type {{ cookieString: () => string; }} val) { return val.cookieString().split("=")[0] === "c_user"; });
|
268
269
|
|
269
270
|
if (maybeCookie.length === 0) {
|
270
271
|
if (global.Fca.Require.FastConfig.AutoLogin) {
|
@@ -275,17 +276,17 @@ function buildAPI(globalOptions, html, jar) {
|
|
275
276
|
else if (!global.Fca.Require.FastConfig.AutoLogin) {
|
276
277
|
return global.Fca.Require.logger.Error(global.Fca.Require.Language.Index.ErrAppState);
|
277
278
|
}
|
278
|
-
}
|
279
|
+
}*/
|
280
|
+
/*
|
279
281
|
else {
|
280
|
-
|
282
|
+
if (html.indexOf("/checkpoint/block/?next") > -1) log.warn("login", Language.CheckPointLevelI);
|
281
283
|
|
282
284
|
var userID = maybeCookie[0].cookieString().split("=")[1].toString();
|
283
|
-
process.env['UID'] =
|
285
|
+
process.env['UID'] = logger.Normal(getText(Language.UID,userID), userID);
|
284
286
|
|
285
287
|
clearInterval(checkVerified);
|
286
288
|
|
287
289
|
var clientID = (Math.random() * 2147483648 | 0).toString(16);
|
288
|
-
/*
|
289
290
|
var CHECK_MQTT = {
|
290
291
|
oldFBMQTTMatch: html.match(/irisSeqID:"(.+?)",appID:219994525426954,endpoint:"(.+?)"/),
|
291
292
|
newFBMQTTMatch: html.match(/{"app_id":"219994525426954","endpoint":"(.+?)","iris_seq_id":"(.+?)"}/),
|
@@ -338,7 +339,24 @@ function buildAPI(globalOptions, html, jar) {
|
|
338
339
|
*/
|
339
340
|
|
340
341
|
|
342
|
+
|
341
343
|
// LeiamNash » modified starts
|
344
|
+
function buildAPI(globalOptions, html, jar) {
|
345
|
+
var maybeCookie = jar.getCookies("https://www.facebook.com").filter(function (val) {
|
346
|
+
return val.cookieString().split("=")[0] === "c_user";
|
347
|
+
});
|
348
|
+
|
349
|
+
if (maybeCookie.length === 0) {
|
350
|
+
throw { error: "Error retrieving userID. This can be caused by a lot of things, including getting blocked by Facebook for logging in from an unknown location. Try logging in with a browser to verify." };
|
351
|
+
}
|
352
|
+
if (html.indexOf("/checkpoint/block/?next") > -1) {
|
353
|
+
log.warn("login", "Checkpoint detected. Please log in with a browser to verify.");
|
354
|
+
}
|
355
|
+
var userID = maybeCookie[0].cookieString().split("=")[1].toString();
|
356
|
+
try {
|
357
|
+
clearInterval(checkVerified);
|
358
|
+
} catch (_) { }
|
359
|
+
var clientID = (Math.random() * 2147483648 | 0).toString(16);
|
342
360
|
let oldFBMQTTMatch = html.match(/irisSeqID:"(.+?)",appID:219994525426954,endpoint:"(.+?)"/);
|
343
361
|
let mqttEndpoint = null;
|
344
362
|
let region = null;
|