A really simple extension for extracting Facebook Story CDN links
- Check for Element: The script checks for a specific
<div>
element on a thefacebook.com/stories
url for extracting the CDN. - Find Video URL: It scans the entire HTML content of the page to find all
data-video-url
values and get the last one (Which seems to be in higher quality (to me)) - Retry: If the element is not found, it waits for 2 seconds and checks again.
- Add this script to your browser's console or include it in a web page.
- Open the console to see the logs.
- Watch for messages about the element and the last video URL.
The script doesn't always seem to be actively running whenever the story is opened. It only seems to run whenever the story page (facebook.com/stories
) is directly opened or refreshed.