手机chrome查看源代码

Every Chrome extension that you install on your computer is actually constructed out of a special zip file that contains files and folders of Javascript code and other resources. The great thing is that you can actually look into the source code of an extension and see what it is really doing.

实际上,您计算机上安装的每个Chrome扩展程序都是由一个特殊的zip文件构建而成的,该文件包含JavaScript代码和其他资源的文件和文件夹。 很棒的事情是,您实际上可以查看扩展的源代码,并查看扩展的实际作用。

The problem with browser extensions is that so many of them are spying on you, inserting ads into your browser, or doing all sorts of other nefarious things. So if you want to check into the source code yourself, these are the two easy ways to do that.

浏览器扩展的问题在于, 有太多这样的扩展在监视您 , 在浏览器中插入广告或进行其他各种邪恶的事情 。 因此,如果您想亲自检查源代码,这是两种简单的方法。

Luckily there’s even a way to see the source code of an extension before you install it, although sadly that way requires installing an extension. Keep reading for all the details.

幸运的是,甚至可以安装扩展之前查看扩展的源代码,尽管遗憾的是,这种方法需要安装扩展。 继续阅读所有细节。

在硬盘上查找Chrome扩展程序源代码 (Find a Chrome Extension Source Code on Your Hard Drive)

The first method is used to view the source code of extensions that are currently installed in your Google Chrome Browser. Begin by navigating to the “chrome://extensions/” page. Alternatively, you can click on the three horizontal bars on the top right of the Chrome window and then click on the “More tools” option then click on “Extensions”.

第一种方法用于查看Google Chrome浏览器中当前安装的扩展程序的源代码。 首先导航到“ chrome:// extensions / ”页面。 或者,您可以单击Chrome窗口右上角的三个水平栏,然后单击“更多工具”选项,然后单击“扩展”。

Now that you are on your extensions page, you will need to tick the checkbox on the top right of the page that says “Developer mode” and find the ID for the extension you want the source code for. For the purposes of this demonstration, we will use the ID for “AdBlock” which is “ID: gighmmpiobklfepjocnamgkkbiglidom”

现在您已经在扩展程序页面上,您将需要勾选页面右上方的复选框,即“开发人员模式”,并找到您想要源代码的扩展程序的ID。 在本演示中,我们将使用“ AdBlock”的ID,即“ ID:gighmmpiobklfepjocnamgkkbiglidom”

Now that you know the ID of the extension, you will need to open Windows explorer by opening any folder or pressing the “Windows button” and “E” at the same time.

现在您知道扩展的ID,您将需要通过打开任何文件夹或同时按“ Windows按钮”和“ E”来打开Windows资源管理器。

Once there, type in the following into the location bar:

到达后,在位置栏中输入以下内容:

%localappdata%

%localappdata%

Now you’ll need to navigate down through the folders like this: Google -> Chrome -> User Data -> Profile -> Extensions. In some cases your Profile folder might be called something different like Profile 1, so just keep that in mind as you browse down.

现在,您需要向下浏览以下文件夹:Google-> Chrome->用户数据->个人资料->扩展程序。 在某些情况下,您的Profile文件夹可能被称为Profile 1之类的名称,因此在浏览时请记住这一点。

Once you are there, you should be able to see a bunch of folders with really long names, and one of them will match the extension ID you are looking for.

到达那里后,您应该能够看到一堆名称非常长的文件夹,其中一个将与您要查找的扩展名ID匹配。

Once you enter this folder, you should see another folder titled with the version of the extension. Simply double click on that icon again to see all the files and folders associated with your extension’s source code.

输入此文件夹后,您应该会看到另一个标题为扩展名的文件夹。 只需再次双击该图标即可查看与扩展程序源代码关联的所有文件和文件夹。

使用Chrome扩展程序源代码查看器 (Using the Chrome Extension Source Code Viewer)

In this method, you will need to download this extension that allows you to view the source code or CRX file for any extension in the Google Web Store.

使用这种方法,您将需要下载此扩展程序 , 该扩展程序允许您查看Google Web Store中任何扩展程序的源代码或CRX文件。

Once the extension has been installed, you should see a popup confirmation dialog like the one below.

安装扩展程序后,您应该会看到一个弹出确认对话框,如下所示。

Now that it is installed, you can go into the Google Chrome Web Store and view the source code of any app. Just click on the yellow icon in the location bar and you’ll be given a choice to either download the file as a zip file or view it online.

安装完成后,您可以进入Google Chrome网上应用店并查看任何应用程序的源代码。 只需单击位置栏中的黄色图标,您就可以选择将文件下载为zip文件或在线查看。

If you download as a zip file, you can just unzip the file and view it using any regular text file viewer. Alternatively, if you decide to view the source code online, you will see something more along these lines in a new Chrome Tab.

如果下载为zip文件,则只需解压缩文件并使用任何常规文本文件查看器进行查看。 另外,如果您决定在线查看源代码,则将在新的Chrome标签中看到这些内容。

That’s all there is to it.

这里的所有都是它的。

翻译自: https://www.howtogeek.com/198964/how-to-view-the-source-code-of-a-chrome-extension/

手机chrome查看源代码

手机chrome查看源代码_如何查看Chrome扩展程序的源代码相关推荐

  1. chrome扩展程序安装_如何从Chrome网上应用店外部安装扩展程序

    chrome扩展程序安装 Try to install an extension from outside the Chrome Web Store and Chrome will tell you ...

  2. chrome添加来自其他网站的扩展程序

    chrome添加来自其他网站的扩展程序 原文网址:http://support.google.com/chrome_webstore/bin/answer.py?hl=zh-Hans&answ ...

  3. 详细!来看吧,包你不后悔 亲测7个!chrome浏览器好用的应用扩展程序/插件推荐

    亲测chrome浏览器好用的应用扩展程序/插件推荐 在这个秃头的时间,我竟然在写博客.因为我今天第一次用cdsn写了解决爬虫报错的博客之后有点兴奋了,所以我打算把我今天做的有意义的事情再写出一篇来. ...

  4. Chrome插件安装失败,此扩展程序可能已损坏。

    文章目录 问题描述 解决方案 实用插件 油猴脚本 参考文献 问题描述 新版Chrome装插件常常出现问题--Chrome插件安装失败,此扩展程序可能已损坏. 解决方案 打开 Chrome 所在位置,默 ...

  5. 卸载chrome浏览器_如何在Chrome,Firefox和其他浏览器中卸载扩展程序

    卸载chrome浏览器 () Most modern browsers support extensions, which add additional features to your browse ...

  6. chrome操作系统_如何在Chrome和Chrome操作系统上使用Google Play电影

    chrome操作系统 () Google Play Movies & TV is a streaming service that lets you watch videos via a we ...

  7. 用 TS + Vue 写了一个在 Chrome 中运行 Prettier 格式化的扩展程序

    在介绍 prettier-chrome 之前请允许我先介绍一下什么是 Prettier 如果你已经知道这是什么了并且已经会配置了,那么你可以直接跳到 prettier-chrome 的介绍 什么是 P ...

  8. 怎么在Chrome浏览器安装chrome应用商店外的第三方扩展程序?

    转载自品略图书馆 http://www.pinlue.com/article/2020/03/2813/0310060784512.html 近日 Google 的 Chrome 浏览器宣布从最新的 ...

  9. 对chrome中出现已尝试对扩展程序降级的问题的一点尝试

    今天碰到这个问题,是IDM扩展程序无法在chrome中添加,出现"已尝试对扩展程序降级".百度了一下,网上所说的方法:http://tieba.baidu.com/p/202053 ...

最新文章

  1. ASP.NET 5系列教程 (四):向视图中添加服务和发布应用到公有云
  2. 前端学习(2258)如何做标签管理
  3. Flutter基础—布局模型之水平垂直
  4. 工作要求,写了一些没用的设计文档
  5. mybatis-generator自动生成代码(lombok带注释)
  6. 程序员干货学习资源(持续更新)
  7. Springcloud OAuth 授权码踩坑系列(二)
  8. ITMO-HDU Image Processing Lab4 Report
  9. python求积分面积的几个方法
  10. 摘抄“GPU Programming And Cg Language Primer 1rd Edition” 中文 名“GPU编程与CG语言之阳春白雪下里巴人”
  11. 云台山风景区:秋末冬初,走进湘中小镇的诗意时光
  12. 笔记本电脑亮度调节按钮不起作用
  13. 彻底解决“你的时钟快了”问题
  14. 傅里叶变换的理解-从正弦信号到傅里叶
  15. 宋体六号字是matlab中多大,word中六号宋体对应的是22号字吗?本人运用的软件中只显示字号(10-45),要求六号宋体...
  16. 光通信的最新技术趋势
  17. 5招在不添加内存、显卡、ssd前提下有效提升windows系统pc性能
  18. c语言中cout lt lt endl,求C语言和C++大神解答,printf怎么转成cout输出语句
  19. 数学会对计算机编程的关系
  20. buctoj-寒假集训进阶训练赛(二十二)

热门文章

  1. 物联网技术部第六次培训----网页制作入门HTML
  2. 薪酬体系设计中容易出现的问题及分析
  3. matlab 计算变异系数,[转载]用Matlab编的计算结构可靠指标的改进一次二阶矩法程序(验算点法)...
  4. 《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
  5. 统计|如何处理数据处理中的缺失值?
  6. Task6:文本函数查找函数
  7. 问题:RuntimeError: CUDA out of memory.
  8. Log4j2突发重大漏洞之解决方案
  9. 压缩Gradle构建 (Squeezing your Gradle builds)
  10. 宝塔连接服务器失败问题