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

Function parse

scripts/ggdrive_downloadVideo.js:125–135  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

123 // Post: https://www.facebook.com/groups/j2team.community/posts/974953859503401/
124 getLinkVideoGDriveFromDocId: async function (docid) {
125 function parse(e) {
126 let result = {};
127 let a = new URLSearchParams(e);
128 a.entries().forEach((e) => {
129 result[e[0]] = e[1];
130 });
131 return result;
132
133 // Array.from(new URLSearchParams("").entries())
134 // .reduce((total, cur) => ({ ...total, [cur[0]]: cur[1] }), {});
135 }
136
137 function parseStream(e) {
138 var d = [];

Callers 2

parseStreamFunction · 0.85
getLinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected