chrome extension insert content script on browser action

后端 未结 2 1392
青春惊慌失措
青春惊慌失措 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 09:04

    In extension to @tak3r's answer and @Doug's comment:

    Inline scripts need to be changed to external scripts.

    Move:

    
    

    To a new file called main.js and remove the tags

    Include the following in the of your HTML

    
    

提交回复
热议问题