meta-horizonn 1.3.5 → 1.3.8
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/Main.js +3 -4
- package/package.json +1 -1
- package/src/unsendMqttMessage.js +2 -2
- package/utils.js +42 -14
package/Main.js
CHANGED
@@ -280,8 +280,8 @@ function setOptions(globalOptions, options) {
|
|
280
280
|
});
|
281
281
|
}
|
282
282
|
|
283
|
-
function BypassAutomationNotification(response, jar, globalOptions, appstate,ID) {
|
284
|
-
global.Fca.BypassAutomationNotification = BypassAutomationNotification
|
283
|
+
function BypassAutomationNotification(response, jar, globalOptions, appstate, ID) {
|
284
|
+
global.Fca.BypassAutomationNotification = BypassAutomationNotification;
|
285
285
|
try {
|
286
286
|
let UID;
|
287
287
|
if (ID) UID = ID
|
@@ -296,8 +296,7 @@ function BypassAutomationNotification(response, jar, globalOptions, appstate,ID)
|
|
296
296
|
const jazoest = utils.getFrom(response.body, 'jazoest=', '",');
|
297
297
|
const lsd = utils.getFrom(response.body, "[\"LSD\",[],{\"token\":\"", "\"}");
|
298
298
|
const FormBypass = {
|
299
|
-
av: UID,
|
300
|
-
fb_dtsg, jazoest, lsd,
|
299
|
+
av: UID, fb_dtsg, jazoest, lsd,
|
301
300
|
fb_api_caller_class: "RelayModern",
|
302
301
|
fb_api_req_friendly_name: "FBScrapingWarningMutation",
|
303
302
|
variables: JSON.stringify({}),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "meta-horizonn",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.8",
|
4
4
|
"description": "Facebook-Chat-API Protect and Deploy by Kanzu and HZI Team. Kem is redeveloped. Rename package is Meta Horizonn and package supported ChatBot Messenger.",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
package/src/unsendMqttMessage.js
CHANGED
package/utils.js
CHANGED
@@ -2425,6 +2425,34 @@ function getFrom(str, startToken, endToken) {
|
|
2425
2425
|
return lastHalf.substring(0, end);
|
2426
2426
|
};
|
2427
2427
|
|
2428
|
+
function getFroms(str, startToken, endToken) {
|
2429
|
+
//advanced search by kanzuuuuuuuuuu
|
2430
|
+
let results = [];
|
2431
|
+
let currentIndex = 0;
|
2432
|
+
|
2433
|
+
while (true) {
|
2434
|
+
let start = str.indexOf(startToken, currentIndex);
|
2435
|
+
if (start === -1) break;
|
2436
|
+
|
2437
|
+
start += startToken.length;
|
2438
|
+
|
2439
|
+
let lastHalf = str.substring(start);
|
2440
|
+
let end = lastHalf.indexOf(endToken);
|
2441
|
+
|
2442
|
+
if (end === -1) {
|
2443
|
+
if (results.length === 0) {
|
2444
|
+
throw Error("Could not find endToken `" + endToken + "` in the given string.");
|
2445
|
+
}
|
2446
|
+
break;
|
2447
|
+
}
|
2448
|
+
|
2449
|
+
results.push(lastHalf.substring(0, end));
|
2450
|
+
currentIndex = start + end + endToken.length;
|
2451
|
+
}
|
2452
|
+
|
2453
|
+
return results.length === 0 ? "" : results.length === 1 ? results[0] : results;
|
2454
|
+
}
|
2455
|
+
|
2428
2456
|
/**
|
2429
2457
|
* @param {string} html
|
2430
2458
|
*/
|
@@ -3016,21 +3044,21 @@ function cleanHTML (text) {
|
|
3016
3044
|
|
3017
3045
|
module.exports = {
|
3018
3046
|
cleanHTML,
|
3019
|
-
isReadableStream:isReadableStream,
|
3020
|
-
get:get,
|
3021
|
-
post:post,
|
3022
|
-
postFormData:postFormData,
|
3023
|
-
generateThreadingID:generateThreadingID,
|
3024
|
-
generateOfflineThreadingID:generateOfflineThreadingID,
|
3025
|
-
getGUID:getGUID,
|
3026
|
-
getFrom:getFrom,
|
3027
|
-
makeParsable:makeParsable,
|
3028
|
-
arrToForm:arrToForm,
|
3029
|
-
getSignatureID:getSignatureID,
|
3047
|
+
isReadableStream: isReadableStream,
|
3048
|
+
get: get,
|
3049
|
+
post: post,
|
3050
|
+
postFormData: postFormData,
|
3051
|
+
generateThreadingID: generateThreadingID,
|
3052
|
+
generateOfflineThreadingID: generateOfflineThreadingID,
|
3053
|
+
getGUID: getGUID,
|
3054
|
+
getFrom: getFrom,
|
3055
|
+
makeParsable: makeParsable,
|
3056
|
+
arrToForm: arrToForm,
|
3057
|
+
getSignatureID: getSignatureID,
|
3030
3058
|
getJar: request.jar,
|
3031
|
-
generateTimestampRelative:generateTimestampRelative,
|
3032
|
-
makeDefaults:makeDefaults,
|
3033
|
-
parseAndCheckLogin:parseAndCheckLogin,
|
3059
|
+
generateTimestampRelative: generateTimestampRelative,
|
3060
|
+
makeDefaults: makeDefaults,
|
3061
|
+
parseAndCheckLogin: parseAndCheckLogin,
|
3034
3062
|
getGender: getGenderByPhysicalMethod,
|
3035
3063
|
getData_Path,
|
3036
3064
|
setData_Path,
|