diff options
author | Teddy Wing | 2023-11-25 17:13:09 +0100 |
---|---|---|
committer | Teddy Wing | 2023-11-25 17:13:09 +0100 |
commit | ce808bca52131a5724b891d0f692e90efb991a80 (patch) | |
tree | 52cfae96d28799ed05f49dad10f60766e1b52f6e | |
parent | 8332516d2958e907843f07ad2d5e3e6725af9bb8 (diff) | |
download | swextreload-ce808bca52131a5724b891d0f692e90efb991a80.tar.bz2 |
Add README
-rw-r--r-- | README.md | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..6d1de7a --- /dev/null +++ b/README.md @@ -0,0 +1,46 @@ +swextreload +=========== + +[][Documentation] + +Reload Chrome extensions from the command line. Facilitates Chrome extension +development. + +Communicates with Chrome over the [DevTools Protocol]. + +This program is a rewrite of [Extreload] to add support for Manifest V3 +extensions. + + +## Usage +Chrome must be started with the `--remote-debugging-port` flag to enable the +DevTools Protocol, and the `--silent-debugger-extension-api` flag to allow debug +access to extensions. On Mac OS X: + + $ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ + --silent-debugger-extension-api \ + --remote-debugging-port=0 & + +When Chrome is launched, the DevTools Protocol socket URL will be printed to the +console. That WebSocket URL must be passed to `swextreload` with the +`--socket-url` argument. For example: + + $ swextreload \ + --socket-url ws://127.0.0.1:55755/devtools/browser/208ae571-d691-4c98-ad41-3a15d507b656 \ + --reload-current-tab \ + ooeilikhhbbkljfdhbglpalaplegfcmj + + +## Install + + $ go install gopkg.teddywing.com/swextreload/cmd/swextreload@latest + + +## License +Copyright © 2023 Teddy Wing. Licensed under the GNU GPLv3+ (see the included +COPYING file). + + +[Documentation]: https://godocs.io/gopkg.teddywing.com/swextreload +[DevTools Protocol]: https://chromedevtools.github.io/devtools-protocol/ +[Extreload]: https://github.com/teddywing/extreload/ |