MCPcopy Create free account
hub / github.com/Semporia/Scripts / getAuthorShareCode

Function getAuthorShareCode

jd_cash.js:514–532  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

512}
513
514function getAuthorShareCode(url) {
515 return new Promise(resolve => {
516 $.get({url, headers:{
517 "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 Edg/87.0.4280.88"
518 }, timeout: 200000,}, async (err, resp, data) => {
519 $.authorCode = [];
520 try {
521 if (err) {
522 } else {
523 $.authorCode = []
524 }
525 } catch (e) {
526 $.logErr(e, resp)
527 } finally {
528 resolve();
529 }
530 })
531 })
532}
533function getAuthorShareCode2(url) {
534 return new Promise(resolve => {
535 $.get({url, headers:{

Callers 1

jd_cash.jsFile · 0.70

Calls 2

getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected