All I want to do is to use javascript to copy paste data from console's log
Using Chrome or Brave browsers, whenever I use console.log it always shows the portion highlighted in the image, how to get rid of it?
There's no good solution for this, but there are workarounds. Some of which can be found e.g. here.
The linked answer by @tapeboy7 recommends adding your own function for logging. Which could be simplified to for example:
console.l = (...args) => queueMicrotask(console.log.bind(console, ...args))
Then you can use console.l('test')
to output data/logs without that part.
console.log
and then copy the data to excel to further do working on it, but these VM.... lines also get copied