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

Function method1

scripts/insta_injectDownloadBtn.js:573–579  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

571 async function findMediaId() {
572 // method 1: extract from url.
573 function method1() {
574 let href = window.location.href;
575 let match = href.match(
576 /www.instagram.com\/stories\/[^\/]+\/(\d+)/
577 );
578 if (!href.includes("highlights") && match) return match[1];
579 }
580
581 // method 3
582 async function method3() {

Callers 1

findMediaIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected