MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / f

Function f

scripts/backup/openfbchat.js:81–129  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

79 );
80 }
81 function f(a) {
82 a = a.split(".");
83 var b = a.length,
84 c;
85 if (b >= 3) c = [void 0, void 0];
86 else
87 switch (b) {
88 case 0:
89 c = [void 0, void 0];
90 break;
91 case 1:
92 b = a[0];
93 c = [b, void 0];
94 break;
95 case 2:
96 b = a[0];
97 a = a[1];
98 c = /^[1-9]\d*$/.test(a) ? [b, a] : [void 0, void 0];
99 break;
100 }
101 b = c[1];
102 a = c[0];
103 if (a === void 0) return;
104 switch (a) {
105 case "g":
106 if (b !== void 0)
107 return {
108 NAME: "Group",
109 VAL: b,
110 };
111 else return;
112 case "p":
113 if (b !== void 0)
114 return {
115 NAME: "Page",
116 VAL: b,
117 };
118 else return;
119 case "u":
120 if (b !== void 0)
121 return {
122 NAME: "User",
123 VAL: b,
124 };
125 else return;
126 default:
127 return;
128 }
129 }
130 function h(a, b, e) {
131 b = c("bs_caml_int64").of_int32(b);
132 if (c("bs_caml").i64_eq(b, d("MessagingThreadType.bs").oneToOne))

Callers 2

aFunction · 0.70
lFunction · 0.70

Calls 5

bFunction · 0.70
jFunction · 0.70
kFunction · 0.70
dFunction · 0.50
cFunction · 0.50

Tested by

no test coverage detected