So, if I provide a brief explanation of the requirements, it would be as follows:
For example, let's say we have a button added by my extension's content script. When someone clicks that button, I need to capture all the console output and push each console entry into an array. After that, we can perform any desired actions with the console array.
So, primarily, we need to capture, get, fetch, or read the console output