crx DL link

    @@ -1,14 +1,49 @@ /* * @title chrome web store crx download link - * @include https://chrome.google.com/webstore/ - * @license MIT License + * @include https://chrome.google.com/webstore/* + * @contributor taizooo http://let.hatelabo.jp/taizooo/let/gYC-x-e5r_G0bw (Fork of) + * @contributor noromanba + * @license MIT License http://opensource.org/licenses/MIT */ // http://stackoverflow.com/questions/7184793/how-to-download-a-crx-file-from-the-chrome-web-store-for-a-given-id // http://0-9.tumblr.com/post/52782603407/chrome-extension-development-casual (function () { - id = location.pathname.split('/').pop(); - u = 'http://clients2.google.com/service/update2/crx?response=redirect&x=id%3D' + id + '%26uc%26lang%3Den-US&prod=chrome'; + var id = location.pathname.split('/').filter(function (s) { return !!s; } ).pop(); + var u = 'http://clients2.google.com/service/update2/crx?response=redirect&x=id%3D' + id + '%26uc'; prompt('link', u); -})() +})(); + +// # Chrome Extension download URL +// +// ## via +// - http://let.hatelabo.jp/taizooo/let/gYC-x-e5r_G0bw +// +// ## e.g. Go Extensions +// - https://chrome.google.com/webstore/detail/go-extensions/cdlogpoaigpjcfjfllhjdaniobkjnkmg +// +// http://clients2.google.com/service/update2/crx?response=redirect&x=id%3Dcdlogpoaigpjcfjfllhjdaniobkjnkmg%26uc%26lang%3Den-US&prod=chrome +// +// ### decodeURIComponent +// +// http://clients2.google.com/service/update2/crx?response=redirect&x=id=cdlogpoaigpjcfjfllhjdaniobkjnkmg&uc&lang=en-US&prod=chrome +// +// ### parameters +// +// update_url: http://clients2.google.com/service/update2/crx +// redirect: response=redirect +// id: x=id%3Dcdlogpoaigpjcfjfllhjdaniobkjnkmg%26uc +// language: lang=en-US +// product: prod=chrome +// +// `uc` is part of id +// +// ### canonicalize +// update_url + redirect + id +// +// http://clients2.google.com/service/update2/crx?response=redirect&x=id%3Dcdlogpoaigpjcfjfllhjdaniobkjnkmg%26uc +// +// ## i.e. +// +// 'http://clients2.google.com/service/update2/crx?response=redirect&x=id%3D' + id + '%26uc'
  • /*
     * @title chrome web store crx download link
     * @include https://chrome.google.com/webstore/*
     * @contributor taizooo     http://let.hatelabo.jp/taizooo/let/gYC-x-e5r_G0bw (Fork of)
     * @contributor noromanba
     * @license MIT License http://opensource.org/licenses/MIT
     */
    
    // http://stackoverflow.com/questions/7184793/how-to-download-a-crx-file-from-the-chrome-web-store-for-a-given-id
    // http://0-9.tumblr.com/post/52782603407/chrome-extension-development-casual
    
    (function () {
      var id = location.pathname.split('/').filter(function (s) { return !!s; } ).pop();
      var u = 'http://clients2.google.com/service/update2/crx?response=redirect&x=id%3D' + id + '%26uc';
      prompt('link', u);
    })();
    
    // # Chrome Extension download URL
    //
    // ## via
    // - http://let.hatelabo.jp/taizooo/let/gYC-x-e5r_G0bw
    //
    // ## e.g. Go Extensions
    // - https://chrome.google.com/webstore/detail/go-extensions/cdlogpoaigpjcfjfllhjdaniobkjnkmg
    //
    //     http://clients2.google.com/service/update2/crx?response=redirect&x=id%3Dcdlogpoaigpjcfjfllhjdaniobkjnkmg%26uc%26lang%3Den-US&prod=chrome
    //
    // ### decodeURIComponent
    //
    //     http://clients2.google.com/service/update2/crx?response=redirect&x=id=cdlogpoaigpjcfjfllhjdaniobkjnkmg&uc&lang=en-US&prod=chrome
    //
    // ### parameters
    //
    // update_url:     http://clients2.google.com/service/update2/crx
    // redirect:       response=redirect
    // id:             x=id%3Dcdlogpoaigpjcfjfllhjdaniobkjnkmg%26uc
    // language:       lang=en-US
    // product:        prod=chrome
    //
    // `uc` is part of id
    //
    // ### canonicalize
    // update_url + redirect + id
    //
    //     http://clients2.google.com/service/update2/crx?response=redirect&x=id%3Dcdlogpoaigpjcfjfllhjdaniobkjnkmg%26uc
    //
    // ## i.e.
    //
    //     'http://clients2.google.com/service/update2/crx?response=redirect&x=id%3D' + id + '%26uc'
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2018/12/07 09:22:19 - 2018-12-07
  2. 2018/12/07 08:55:49 - 2018-12-07
  3. 2017/03/02 06:48:21 - 2017-03-02
  4. 2017/03/01 04:48:16 - 2017-03-01
  5. 2017/03/01 04:44:40 - 2017-03-01
  6. 2014/11/06 06:52:07 - 2014-11-06
  7. 2014/11/06 06:37:03 - 2014-11-06
  8. 2014/02/11 05:33:54 - 2014-02-11
  9. 2013/06/14 03:57:23 - 2013-06-14
  10. 2013/06/14 03:56:40 - 2013-06-14
  11. 2013/06/14 02:30:48 - 2013-06-14
  12. 2013/06/14 02:27:14 - 2013-06-14
  13. 2013/06/14 01:27:48 - 2013-06-14
  14. 2013/06/14 00:58:32 - 2013-06-14