If your extension needs to interact with web pages, then it needs a content script. A content script is some JavaScript that executes in the context of a page that's been loaded into the browser.
你希望可以和网页互交,内容脚本必不可少,一个内容脚本可以对加载在浏览器中的网页处理,把内容脚本当作加载网页的一部分吧,不是扩展的一部分。
Read the script, and make a note card that can help you remember the content.
读一下讲稿,并制作笔记卡以帮助你记住内容。
Listing 4 contains the content of this script.
清单4包含该脚本的内容。
应用推荐