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

Function getStoryId

scripts/fb_GLOBAL.js:707–712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

705 return url.match(/stories\/(\d+)\//)?.[1];
706}
707export function getStoryId() {
708 const htmlStory = document.getElementsByClassName(
709 "xh8yej3 x1n2onr6 xl56j7k x5yr21d x78zum5 x6s0dn4"
710 );
711 return htmlStory[htmlStory.length - 1].getAttribute("data-id");
712}
713export async function getStoryInfo(bucketID, fb_dtsg) {
714 // Source: https://pastebin.com/CNvUxpfc
715 let body = new URLSearchParams();

Callers 1

loadModalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected