chrome扩展crx构建
“Sit up straight!” my mom used to yell at me when I am fixated on my laptop for too long.
“坐直了!” 当我将笔记本电脑注视时间过长时,我妈妈曾经对我大喊大叫。
Ten years later, when I am writing code instead of playing video games, my poor posture has come back to bite me.
十年后,当我写代码而不是玩视频游戏时,我糟糕的姿势又重新咬了我。
Therefore, I decided to take the matter into my own hands. I could watch some YouTube videos and do some posture exercises. But I am a coder, so I will code my problem.
因此,我决定亲自处理此事。 我可以看一些YouTube视频并做一些姿势练习。 但是我是一名编码人员,所以我将为我的问题编码。
That’s how Healthy Spine was born. It watches your posture and reminds you when you slouch— just like my mom back in the day.
这就是健康脊柱的诞生。 它可以观察您的姿势并在您不便时提醒您-就像我一天中的妈妈一样。
先决条件 (Prerequisites)
- Basic knowledge of HTML, CSS, and JavaScript HTML,CSS和JavaScript的基本知识
- Access to a Chrome Web Store developer account 访问Chrome Web Store开发人员帐户
This is a summarized version of what I learned from creating my first Chrome extension. If you need a full step-by-step tutorial, watch Chrome’s Getting Started tutorial.
这是我从创建第一个Chrome扩展程序中学到的摘要。 如果您需要完整的分步教程,请观看Chrome的入门教程 。
Chrome扩展程序与Chrome应用程序 (Chrome Extension vs. Chrome App)
Chrome apps are a more powerful version of Chrome extensions.
Chrome应用是功能更强大的Chrome扩展程序。
However, Google has decided to sunset Chrome apps altogether this year.
但是,Google已决定今年完全停用Chrome应用。
![Image for post](https://miro.medium.com/max/9999/1*LXEu8lDZUxIyTxj10yH3xA.png)
However, in their documentation, they still have the Chrome Apps API, which will give you false hope that you could still build a Chrome app.
但是,在他们的文档中,他们仍然拥有Chrome Apps API,这会给您错误的希望,您仍然可以构建Chrome应用程序。
Make sure that you look at the extension APIs for Chrome extension documentation.
确保您查看了Chrome扩展程序文档的扩展程序API。