zoukankan      html  css  js  c++  java
  • How does Chrome Extension crx Downloader work? ——— From crxdown.com

    How does Chrome Extension crx Downloader work?

    Home >> blog >> How does Chrome Extension crx Downloader work?

    Author:admin    Date:11 2017/07    Cotyright©crxDown.com


    Generally

    Even Chrome has to connect to a server and download the extension for installing it into your Chrome Browser.

    The URL for getting the extension directly is the following: 

    https://clients2.google.com/service/update2/crx?response=redirect&prodversion=49.0&x=id%3D~~~~%26installsource%3Dondemand%26uc

    You have to replace the 4 tildes (~~~~) with the ID of the extension you want to download.

    For example if you want to download Google Maps you can find the extension on: 

    https://chrome.google.com/webstore/detail/google-maps/lneaknkopdijkpnocmklfnjbeapigfbh

    The extracted ID of Google Maps is lneaknkopdijkpnocmklfnjbeapigfbh.The direct download URL for Google Maps will be:

    https://clients2.google.com/service/update2/crx?response=redirect&prodversion=49.0&x=id%3Dlneaknkopdijkpnocmklfnjbeapigfbh%26installsource%3Dondemand%26uc

    The downloaded file will always be named as extension_[version].crx. In our example with Google Maps it is extension_5_2_7.crx, because the current version of Google Maps is 5.2.7.

    What is Chrome-Extension-Downloader doing?

    1. Check if it's a valid Chrome Web Store url
    2. Parse the ID of the given URL
    3. Check if the given ID is valid
    4. Parse the name of the extension from Chrome Web Store
    5. Send the extension file with corrected filename directly to you.

    Relate:


    --------蓝天上的云_转载请注明出处.
  • 相关阅读:
    无熟人难办事?—迪米特法则
    考题抄错会做也白搭—模板方法模式
    简历复印—原型模式
    Android Studio 安装及常见问题
    雷锋依然在人间——工厂方法模式
    欢迎测试
    客户端程序设计V1
    Linux服务器端程序设计V1
    【Alpha】最后一篇
    【Alpha】开发日志Day10-0721
  • 原文地址:https://www.cnblogs.com/yucloud/p/11776251.html
Copyright © 2011-2022 走看看