Captures JavaScript console messages from the active tab, displays them live, and automatically saves them to a file.