如何从 Chrome 网上应用店修改扩展程序? [英] How to modify an extension from the Chrome Web Store?

查看:28
本文介绍了如何从 Chrome 网上应用店修改扩展程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Chrome 网上应用店中看到了此扩展程序,其中显示 YouTube 频道的最新视频.我想修改此扩展程序以使其适用于不同的频道.

I've seen this extension in the Chrome Web store, which shows the newest videos of a YouTube channel. I want to modify this extension in order to make it work with a different channel.

我怎样才能完成这项工作?

How can I get this done?

推荐答案

您有两个选择:

  1. 联系扩展程序的开发人员,并寻求帮助.
  2. 编辑源代码

我将解释如何修改扩展并安装它,用简单的术语.

I'm going to explain how you can modify an extension, and install it, in easy terms.

  1. 安装 Chrome 扩展源查看器.
  2. 转到 Chrome 网上应用店中您要修改的扩展程序的页面.
  3. 点击黄色的 CRX 按钮,然后选择下载"(screen>rele0-h40r>.
  4. 解压 zip 文件.
  5. 阅读源代码,并更改需要更改的内容(在您的特定情况下,我很快确定您想要更改编辑 config.js 并更改 "channel" 属性).保存更改.
  1. Install the Chrome extension source viewer.
  2. Go to the page in the Chrome Web Store of the extension you want to modify.
  3. Click on the yellow CRX button, and choose Download (screenshot).
  4. Extract the zip file.
  5. Read the source code, and change what needs to be changed (in your particular case, I had quickly identified that you wanted to change edit config.js and change the "channel" property). Save the changes.

使用扩展的修改版本.

  1. 访问 Chrome 扩展程序页面 (chrome://extensions/).
  2. 通过激活右上角的开关启用开发者模式.
  3. 点击加载解压的扩展程序"按钮.
  4. 选择您的扩展程序所在的文件夹(要知道哪个文件夹是正确的,请检查该文件夹中是否包含名为 manifest.json 的文件).
  5. 确认.大功告成.

除非您在其中任何一个步骤(包括修改源代码)中犯了错误,否则修改后的扩展应该按预期工作.

Unless you've made a mistake in either of these steps (including the modification of the source code), the modified extension should work as intended.

修改他人的扩展供个人使用并不是什么大问题.但是,未经原始开发人员同意,不要分发此扩展程序.原作者在创建扩展方面付出了很多努力,甚至可能有他/她的联系方式.如果您分发扩展的(修改后的)副本,原作者将无法再更新扩展,因此他/她无法解决错误.
更糟糕的是,如果你把扩展程序弄得不好,用户会向原作者抱怨,因为他们的联系方式在上面.

Modifying someone else's extension for personal use is not a big deal. However, do not distribute this extension without the original developer's consent. The original author has put lots of efforts in creating the extension, and might even have his/her contact details on it. If you distribute a (modified) copy of the extension, the original author cannot update the extension any more, so s/he cannot resolve bugs.
Even worse, if you turn the extension in a bad shape, users will complain to the original author, because their contact details are on it.

这篇关于如何从 Chrome 网上应用店修改扩展程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆