chrome extension insert content script on browser action

后端 未结 2 1399
青春惊慌失措
青春惊慌失措 2020-12-09 08:37

I am trying to make basically an element highlighter chrome extension. Workflow: - click on browser icon - click on the page - hightlight the element clicked

I am

2条回答
  •  误落风尘
    2020-12-09 08:57

    Turns out I could not read the error properly until I saw it in here

    Apparently manifest v2 does not allow you to have inline scripts, so you just need to

    src="path_to_the_file.js"
    

提交回复
热议问题