A browser extension to run a shell command with dynamic arguments and the current tab URL.
The extension requires a Go webserver to execute a shell command with the provided arguments and URL. The server accepts a POST request containing json from the extension in the form {"Command":"echo", "Arguments":["https://example.com"]}
shrike-demo.mp4
- Install GO (To Build the Server). https://go.dev/
- Install Node(To Build the Browser Extension). https://nodejs.org/en/download/
- Clone the repository from GitHub.
- Change directory into the project directory. Then into the server directory
cd shrike/server
. - Modify the command whiteList in
main.go
to allow specific commands to be run. - Build the server by running
go build .
- Run the server with
./server
or./server.exe
on Windows. - Install the extension in to your browser of choice by following the instructions in the extension directory readme. The extension is based off of the React TypeScript Web Extension Starter
- Configure the command you want to run by editing the command and arguments in the extension pop up.
- Hit the Run button to execute the command. You can see the StdOut and StdErr in the terminal where the web server is running.