()
| 705 | return url.match(/stories\/(\d+)\//)?.[1]; |
| 706 | } |
| 707 | export 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 | } |
| 713 | export async function getStoryInfo(bucketID, fb_dtsg) { |
| 714 | // Source: https://pastebin.com/CNvUxpfc |
| 715 | let body = new URLSearchParams(); |