chrome扩展程序_如何实施Chrome扩展程序

本文介绍了如何构建Chrome扩展程序,包括必填的清单文件、弹出窗口和背景脚本。Chrome是最流行的浏览器,开发Chrome扩展能触及大量用户。文章讨论了如何通过覆盖新标签或在当前标签页中打开来实现扩展的打开方式。
摘要由CSDN通过智能技术生成

chrome扩展程序

We all like surfing the web. And we all like things to be at the touch of our fingertips. Why not create something that caters to these two absolute truths?

我们都喜欢上网。 而且我们都希望事情触手可及。 为什么不创造出满足这两个绝对真理的东西呢?

In this article, I’ll explain the building blocks of a Chrome extension. Afterwards, you’ll just have to think of a good idea as an excuse to make one.

在本文中,我将介绍Chrome扩展程序的基本组成部分。 之后,您只需要将一个好主意视为创造一个主意的借口。

为什么选择Chrome? (Why Chrome?)

Chrome is by far the most popular web browser. Some estimations are as high as 59%. So, if you want to reach as many people as you can, developing a Chrome extension is the best way to do it.

Chrome是迄今为止最受欢迎的网络浏览器。 一些估计高达59% 。 因此,如果您想吸引尽可能多的人,开发Chrome扩展程序就是最好的方法。

⚠️ To be able to publish a Chrome extension, you need to have a developer account which entails a $5 one-time signup fee.

⚠️要发布Chrome扩展程序,您需要拥有一个开发人员帐户,该帐户需要支付5美元的一次性注册费

Each Chrome extension should have these components: the manifest file, popup.html and popup.js and a background script. Lets take a look at them.

每个Chrome扩展程序应具有以下组件: 清单文件popup.htmlpopup.js以及后台脚本。 让我们看看它们。

Chrome扩展程序由什么组成? (What makes up a Chrome extension?)

清单文件 (The Manifest File)

What is a manifest file? It is a text file in JSON (JavaScript Object Notation) format that contains certain details about the extension you will be developing.

什么是清单文件? 这是JSON(

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值