Giter Site home page Giter Site logo

mmadfox / go-crx3 Goto Github PK

View Code? Open in Web Editor NEW
25.0 2.0 9.0 1.56 MB

Chrome browser extension tools. Provides a set of tools packing, unpacking, zip, unzip, download, etc.

License: Apache License 2.0

Makefile 1.19% Go 96.46% Dockerfile 2.07% Shell 0.28%
crx3 crx-pack crx-unpack chrome-extension crx-zip chrome-extension-download chrome-extension-id

go-crx3's People

Contributors

michaeladler avatar mmadfox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

go-crx3's Issues

File name interception problem after decompression

After I decompress the file name will be intercepted more。
Originally from golang strings.TrimRight()

println(strings.TrimRight("CaptainBIapp.zip", ".zip")) //CaptainBIa

Because I need the unzipped file name, but the api return value is not provided. The file name was intercepted in the previous step, which caused the file name to not match, and the file could not be read.

Extend `keygen` command to support RSA-3072 and RSA-4096

Right now in crx3 new private keys are hardcoded to be RSA-2048. I haven't investigated current support for RSA-3072 and RSA-4096 in CRX in Google Chrome (or Microsoft Edge), but at least per CRX₃ Design Doc they intended to use bigger keys, RSA-4096 specifically, so it would be good to support them (and ideally switch to at least RSA-3072 by default).

Installed and got "crx3: command not found"

go install github.com/mediabuyerbot/go-crx3/crx3@latest
go: downloading github.com/mediabuyerbot/go-crx3 v1.4.0
go: downloading github.com/spf13/cobra v1.3.0
go: downloading google.golang.org/protobuf v1.28.1
crx3 download https://chrome.google.com/webstore/detail/amazon-tag-remover/mmajdhfdokfcaiadahjnffhbfjfkmcnc`
-bash: crx3: command not found
go list crx3
package crx3 is not in GOROOT (/usr/local/Cellar/go/1.20.1/libexec/src/crx3)

Support `key` command

id command is already supported, but another useful one would be key.

key should be equivalent of what following command does on private key:
openssl rsa -in key.pem -pubout -outform DER | openssl base64 -A

If CRX/ZIP's manifest.json has a key field, then key command could be made to work also on such CRX/ZIP files and display their key then.

This key value is useful for developers to keep consistent ID:
https://developer.chrome.com/docs/extensions/reference/manifest/key


BTW thank you for creating the tool! This year I have to update my web browser extension, NavigUp, and migrate to Manifest V3 (known issues, checklist) to ensure its users won't be impacted by Manifest V2 support timeline, specifically:

June 2024: Chrome MV2 deprecation pre-stable rollout
June 2024 + 1-X months: Chrome MV2 deprecation stable rollout

At some point Chrome deprecated CRX2 format and introduced CRX3 - CRX₃ Design Doc. Beside relying on Chrome Web Store, I always self-hosted my extension too, so being able to create CRX3 easily will be super handy.


In the distant past I used crxmake, possibly https://github.com/Constellation/crxmake, but I have no notes to tell for sure. I refuse to accept need to use hundred megabyte browser binary to create crx file. If not for your tool, i.e. crx3, I would possibly had to write one for myself (most likely in C/C++). There are some JavaScript based solutions, but I'm not fan of JavaScript runtime environments like Node.js, and prefer more standalone solutions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.