【问题标题】:Updating a google chrome extension in the webstore在网上商店中更新 google chrome 扩展程序
【发布时间】:2014-11-25 15:25:15
【问题描述】:

是否有无需打开浏览器即可从程序上传 chrome 扩展程序的 API?

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

  1. 找到开发者仪表板
  2. 在扩展程序上按“编辑”
  3. 推送“更新文件”
  4. 点击“选择文件”,手动浏览到该位置,由于控件不是原生的,所以不支持拖放
  5. 推送“上传”
  6. 返回上一页,点击保存

我希望能够为我编写一个小脚本来执行此操作,但我不知道我应该请求哪些 URL。

【问题讨论】:

    标签: google-chrome-extension


    【解决方案1】:

    Google 似乎在 3 月份发布了 an api 来执行此操作。

    我不能把发现这一点归功于我;属于here。我也还没用过这个api。

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        【解决方案3】:

        我刚做了这个。使用Jitbit macro recorder

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

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

        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
        

        【讨论】:

          【解决方案4】:

          只需转到扩展页面 (chrome://chrome/extensions/) 并按 ctrl+r。

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2012-06-07
            • 2013-01-19
            相关资源
            最近更新 更多