Skip to content

Instantly share code, notes, and snippets.

@gyng
Last active May 5, 2023 00:30
Show Gist options
  • Save gyng/4877e4a73eab9d429293ae343fead6f1 to your computer and use it in GitHub Desktop.
Save gyng/4877e4a73eab9d429293ae343fead6f1 to your computer and use it in GitHub Desktop.
Installing Chrome extensions offline

Installing Chrome extensions offline

  1. Download crx

    https://clients2.google.com/service/update2/crx?response=redirect&prodversion=49.0&x=id%3D<🔥replace   me with extension ID🔥>%26installsource%3Dondemand%26uc`
    

    fill in extension ID:

    https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop

    ID: fhbjgbiflinjbdggehcddcbncdddomop

  2. Try to install by dragging and dropping into Chrome at chrome://extensions

Editing extension for offline use

If the install fails with This can only be added from the Chrome Web Store, you need to edit the extension

  1. Rename myextension.crx to myextension.zip and unzip

    mv myextension.crx myextension.zip
    unzip myextension.zip
    
  2. Remove _metadata directory

    cd myextension
    rm -r _metadata
    
  3. Make sure permissions are set to r+x? for all files

    chmod -R 775 .
    
  4. Re-zip files

    zip -r output.zip input_dir
    
  5. Rename rezipped .zip to .crx

    mv output.zip output.crx
    
  6. Add password if needed

    zip -e output input
    zip -e edited_extension.zip postman_5_1_3_stripped.crx
    

https://stackoverflow.com/questions/23008493/manually-add-extension-to-chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment