2011-11-22 216 views
4

是否有API用于从程序上传Chrome扩展程序,而无需打开浏览器?更新网店中的谷歌浏览器扩展程序

我想上传一个更新版本的更简单的方法 - 在目前的过程是笨重:

  1. 找到开发人员仪表板
  2. 推“编辑”扩展
  3. 推“更新文件”
  4. 点击‘选择文件’,并手动浏览到该位置,由于控制不是本地人,所以不支持拖放
  5. 按下‘上传’
  6. 返回到前一页,推动节约

我希望能够写一个脚本来为我做这一点,但我不知道我的网址应该请求。

回答

4

看来,在3月份Google发布了an api这样做。

我不能拿信用来发现这一点;属于here。我还没有使用api。

+0

太棒了,谢谢! – Eric

1

没有公共API可实际更新Chrome网上应用店中的项目。

+1

不再正确。 – Xan

-2

只需转到扩展程序的页面(chrome:// chrome/extensions /),然后按ctrl + r。

0

我刚刚做到了这一点。使用Jitbit macro recorder

更改编辑URL到您自己的分机的一个,改变浏览器的标题等待,它应该在任何地方运行。

最后一部分是脚本(从openlog.php开始)是用于自动将更改日志的最后一行附加到详细信息中,如果您没有定期更新的更新日志,则可以省略此部分。否则,创建一个返回此脚本的小脚本。

OPEN WEBSITE : https://chrome.google.com/webstore/developer/edit/cdfkaloficjmdjbgmckaddgfcghgidei?hl=en&gl=NL 
WAIT FOR PROCESS : chrome : appear : 0 : 0 
DELAY : 500 
IF WINDOW EXISTS : Sign in - Google Accounts - Google Chrome : 0 
MESSAGE BOX : Please select google account and sign in 
DELAY : 500 
WAIT FOR : Chrome Web Store - Google Chrome : appear : 0 : 0 
WAIT FOR USER : 0 : 0 : 0 : 0 
ENDIF 
WAIT FOR : DuckieTV - 'Browser action' mode - Edit Item - Google Chrome : appear : 0 : 0 
Keyboard : Tab : KeyPress 
DELAY : 20 
Keyboard : Tab : KeyPress 
DELAY : 20 
Keyboard : Tab : KeyPress 
DELAY : 20 
Keyboard : Tab : KeyPress 
DELAY : 20 
Keyboard : Space : KeyPress 
WAIT FOR : Upload - Developer Dashboard - Google Chrome : appear : 0 : 0 
Keyboard : Tab : KeyPress 
Keyboard : Tab : KeyPress 
Keyboard : Tab : KeyPress 
Keyboard : Tab : KeyPress 
Keyboard : Tab : KeyPress 
Keyboard : Space : KeyDown 
DELAY : 84 
Keyboard : Space : KeyUp 
WAIT FOR : Open : appear : 0 : 0 
TYPE TEXT : c:\wamp\www\deploy\browseraction-latest.zip 
Keyboard : Enter : KeyDown 
DELAY : 83 
Keyboard : Enter : KeyUp 
WAIT FOR : Open : disappear : 0 : 0 
Keyboard : Tab : KeyDown 
DELAY : 69 
Keyboard : Tab : KeyUp 
DELAY : 712 
Keyboard : Space : KeyDown 
DELAY : 100 
Keyboard : Space : KeyUp 
WAIT FOR : DuckieTV - 'Browser action' mode - Edit Item - Google Chrome : appear : 0 : 0 
OPEN WEBSITE : http://localhost/duckietv/changelog.php 
WAIT FOR : Changelog : appear : 0 : 0 
DELAY : 2000 
Keyboard : ControlLeft : KeyDown 
Keyboard : A : KeyPress 
Keyboard : C : KeyPress 
DELAY : 500 
Keyboard : F4 : KeyPress 
Keyboard : ControlLeft : KeyUp 
Keyboard : Tab : KeyPress 
Keyboard : Tab : KeyPress 
Keyboard : Tab : KeyPress 
Keyboard : Tab : KeyPress 
Keyboard : Tab : KeyPress 
Keyboard : ControlLeft : KeyDown 
Keyboard : F : KeyPress 
Keyboard : ControlLeft : KeyUp 
TYPE TEXT : Changelog: 
Keyboard : Escape : KeyPress 
Keyboard : End : KeyPress 
Keyboard : Down : KeyPress 
Keyboard : Enter : KeyPress 
PASTE