How to access add-on content script in Firefox console?

前端 未结 4 744
隐瞒了意图╮
隐瞒了意图╮ 2021-02-19 13:13

I have developed an add-on for Firefox and Chrome. It has content scripts. I want to access them in the browser tab\'s console (on Firefox the Web Console). For example, I want

4条回答
  •  我在风中等你
    2021-02-19 14:11

    A simple solution is to just console.log() in the content script and then click the sourcemap link to view the script. As shown below:

提交回复
热议问题