MCPcopy Create free account
hub / github.com/6dylan6/jdm / getUUID

Function getUUID

jd_share.js:412–422  ·  view source on GitHub ↗
(format = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', UpperCase = 0)

Source from the content-addressed store, hash-verified

410
411}
412function getUUID(format = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', UpperCase = 0) {
413 return format.replace(/[xy]/g, function (c) {
414 var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
415 if (UpperCase) {
416 uuid = v.toString(36).toUpperCase();
417 } else {
418 uuid = v.toString(36)
419 }
420 return uuid;
421 });
422}
423function checkCookie() {
424 const options = {
425 url: "https://me-api.jd.com/user_new/info/GetJDUserInfoUnion",

Callers 1

jd_share.jsFile · 0.70

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected