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

Function getUniversalCdnUrl

scripts/insta_GLOBAL.js:19–27  ·  view source on GitHub ↗
(cdnLink)

Source from the content-addressed store, hash-verified

17 }
18}
19export function getUniversalCdnUrl(cdnLink) {
20 try {
21 const cdn = new URL(cdnLink);
22 cdn.host = "scontent.cdninstagram.com";
23 return cdn.href;
24 } catch (e) {
25 return cdnLink;
26 }
27}
28
29// WARNING: not working anymore??
30export async function getAllMedia({ uid, progressCallback, limit = 0 }) {

Callers 1

getBiggestMediaFromNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected