首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >更新webstore中的google扩展名

更新webstore中的google扩展名
EN

Stack Overflow用户
提问于 2011-11-22 15:02:54
回答 4查看 2K关注 0票数 6

是否有从程序上传铬扩展名的API,而不必打开浏览器?

我想要一种更简单的上传更新版本的方法--目前,这个过程很笨拙:

  1. 查找开发人员仪表板
  2. 在扩展点上推送“编辑”
  3. 推送“更新文件”
  4. 单击“选择文件”,然后手动浏览到位置,因为控件不是本机的,因此不支持拖放
  5. 推动“上传”
  6. 返回到上一页,并按下保存

我希望能够为我写一个脚本来完成这个任务,但是我不知道我应该请求什么URL。

EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2014-04-07 21:47:20

谷歌似乎在3月份发布了api来实现这一目标。

我不能因为发现这件事而受到赞扬;那是属于这里的。我也还没有使用api。

票数 5
EN

Stack Overflow用户

发布于 2011-11-22 15:35:13

在Chrome中,没有公共API可以务实地更新项目。

票数 1
EN

Stack Overflow用户

发布于 2014-03-16 15:04:19

我刚做了这个。使用Jitbit宏记录器

将编辑url更改为您自己的扩展名,更改浏览器标题以等待,它应该在任何地方运行。

最后一部分是脚本(从开放的changelog.php开始),用于自动地将变更量的最后一行添加到细节中,如果没有定期更新的变更量,则可以忽略这一点。否则,创建一个返回此脚本的小脚本。

代码语言:javascript
复制
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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8228935

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档