修改扩展名比删除更快的方式 - >加载解压 [英] Faster way to modify chrome extension than Remove -> Load unpacked

查看:122
本文介绍了修改扩展名比删除更快的方式 - >加载解压的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现测试我对扩展的修改的唯一可靠方法就是将其从我的扩展中全部删除,并重新加载未打包的扩展。

其他任何快捷方式,以及缓存切出问题,比如它使用旧版本的脚本。

所以还有其他的更快surefire解决方案?

解决方案

我为我的扩展程序做了什么,如果它是对popup icon或favicon的更改, 在chrome:// extensions中显示的48x48是一个简单的重新加载扩展。如果您需要查看对48x48图标的更改,我发现您需要完全关闭并重新打开chrome(后台应用在关闭chrome后仍然存在,例如离线邮件,日历或文档)。

如果您更改了源代码,并且它没有通过简单的刷新发现更改(可能在内容脚本的情况下),那么我将禁用然后启用扩展,如果这不起作用,重新加载扩展,然后关闭/打开chrome。

这应该有希望给你一些尝试,因为我完全理解删除和添加扩展的痛苦,关闭和重新开放铬也是不理想的。为此,我建议您安装两次 Chrome ,无论是stable还是 Chrome Canary 进行开发,或者您可以使用 Chromium 用于开发



有很多选项!但分离开发和正常浏览是一个好主意,只是不要忘记测试一个稳定的构建以及!

对于内联css(未添加到文档头中)需要关闭并重新打开chrome(或删除重新添加扩展名)。一个简单的刷新,启用/禁用,关闭/打开选项卡是不够的。



如果您使用的是Chrome Stable,则无法使用许多功能开发人员喜欢 Chrome个人资料,因此我建议您调查因为作为开发人员,您需要关闭/重新打开浏览器(因为我发现它比重新加载扩展更容易)


$ b $
要在扩展选项卡(选项页面,显示为选项卡的任何内容)上更改CSS值,请在窗口上使用shift + F5清除缓存允许显示新的CSS。
这可以在Chrome Canary中使用,在开发人员工具中选中禁用缓存选项。


I have found that the only sure way to test modifications I do to my extension, as I develop it, is to fully Remove it from my extensions and "Load unpacked extension" anew.

Any other shortcut method, and issues with cache crop up, such as it using the old version of my script.

So are there other, faster surefire solutions?

解决方案

What I do for my extension, if it is a change to popup icon or favicon but NOT 48x48 shown in chrome://extensions is a simple reload extension. if you need to view changes to the 48x48 icon, I find you need to fully close and re-open chrome (background apps linger after closing chrome, such as offline mail or calendar or docs)

If you change source code and it isn't noticing the change with a simple refresh, (Maybe in the case of a content script) then I would disable then enable the extension, and if that doesn't work, reload the extension and then close/open chrome.

That should hopefully give you a few things to try, as I fully understand the pain of removing and then adding an extension, and closing and re-opening chrome is not ideal either. For that, I perhaps recommend having two installs of Chrome, either stable and Chrome Canary for development or you could use Chromium for developing

There are lot's of options! but separating developing and normal browsing is a good idea, just don't forget to test on a stable build as well!

For inline css (not added in the document head) closing and re-opening chrome (or removing re-adding the extension) is required. A simple refresh, enable/disable, close/open tab will not suffice.

If you are using Chrome Stable, you won't have access to many features I use as a developer like Chrome Profiles so I would recommend looking into getting either Chromium or Canary for developer purposes, because as a developer you do need to close/re-open the browser a lot (As I find it easier than re-loading an extension)

Addition 11/30/2011 For changing CSS values on an extension tab (options page, anything that appears as a tab), on windows use shift+F5 which clears the cache allowing new CSS to be displayed. This works in Chrome Canary with the disable cache option in the developer tools checked.

这篇关于修改扩展名比删除更快的方式 - >加载解压的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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