MCPcopy Create free account
hub / github.com/ClydeTime/Surge / string2object

Function string2object

Script/Task/BiliBili.js:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 format(new Date().toDateString()) > config[key].time
75
76const string2object = cookie => {
77 let obj = {}
78 let arr = cookie.split("; ")
79 arr.forEach(function (val) {
80 let array = val.split("=")
81 obj[array[0]] = array[1]
82 })
83 return obj
84}
85
86const isFlag = exec_times =>
87 config.user.num === 0 ||

Callers 1

getCookieFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected