Skip to content

Instantly share code, notes, and snippets.

@leakedby
Created May 11, 2020 08:38
Show Gist options
  • Save leakedby/fb9694d0d0070216c85e7e3fbbf14063 to your computer and use it in GitHub Desktop.
Save leakedby/fb9694d0d0070216c85e7e3fbbf14063 to your computer and use it in GitHub Desktop.
Get FB Post ID
javascript:(function()%7Bfetch(document.URL%2C%7Bmethod%3A"GET"%2Ccredentials%3A"include"%7D).then(t%3D>%7Bt.text().then(t%3D>%7Blet e%3Dt.match(%2Fft_ent_identifier" value%3D"(%5Cd%2B)"%2F)%2Cn%3Dt.match(%2Fentity_id"%3A"(%5Cd%2B)"%2F)%3Be%26%26n%3Fprompt("Story ID%3A "%2Cn%5B1%5D%2B"_"%2Be%5B1%5D)%3Aalert("Can't get Story ID")%7D)%7D).catch(t%3D>%7Balert(t.toString())%7D)%7D)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment