Option 1 , recommended:
What we need:
Chrome extension “Stream Recorder”
Check this page to get the extension: https://www.hlsloader.com/
Option 2, use youtube-dl:
What we need:
Chrome extension “HLS downloader” + youtube-dl
Example:
The extension can easily filter out the .m3u8 link:
https://example.com/.../index.m3u8
Then use youtube-dl with the command to download the file as mp4.
youtube-dl --all-subs -f mp4 -o "file_name.mp4" "https://link-from-hls-downloader"