搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How to hide link to source of run js-command in the console

  • 1 回覆
  • 1 有這個問題
  • 12 次檢視
  • 最近回覆由 cor-el

more options

JavaScript file uses command ```console.log()``` for showing values and outputs they into console. Next to the displayed result, there is a link to the place where the function was called (the source). I need to copy the displayed result, but when I select text in the console, these links get there.

How do I disable these links so that they are not displayed when data is output?

JavaScript file uses command ```console.log()``` for showing values and outputs they into console. Next to the displayed result, there is a link to the place where the function was called (the source). I need to copy the displayed result, but when I select text in the console, these links get there. '''How do I disable these links so that they are not displayed when data is output?'''
附加的畫面擷圖

所有回覆 (1)

more options

I don't think there is a way to disable/prevent this.

Try to ask at the devtools forum on Mozilla Discourse.