When you open browser console and right click anywhere on it, there's a button "save as", for saving all console logs, errors etc. to file.
I want to trigger the same function from javascript.
I know I could try to hijack console log, error, assert, table, debug, info, warn etc. functions, but that's basically high effort, brute-force, not future-proof way.
Is there a way to trigger aforementioned "save as" function by code?
I just want to have everything that is in console to be saved to txt file.