From 870a4374f37f5608d3e348a01465fe5f5fece945 Mon Sep 17 00:00:00 2001 From: James Liang <86000097+jamesliangg@users.noreply.github.com> Date: Sun, 5 May 2024 17:58:53 -0400 Subject: [PATCH] Update README.md --- uwuwuend/README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/uwuwuend/README.md b/uwuwuend/README.md index b4cb6b7..498a7ea 100644 --- a/uwuwuend/README.md +++ b/uwuwuend/README.md @@ -9,6 +9,13 @@ │ ├── package.json # What to install │ └── package-lock.json # The cooler package ├── icons # Extension icons +├── u-block-origin # Plasmo implementation +│ ├── assets # Extension icon +│ ├── build # Built extension +│ ├── contents # All background running tasks +│ ├── package.json # What to install +│ ├── package-lock.json # The cooler package +│ └── popup-tsx # Extension pop-up page ├── content_script.js # Where all the magic happens ├── manifest.json # What Chrome sees ├── options.js # Broken JavaScript for extension @@ -17,7 +24,11 @@ └── uwu.html # Extension page ``` ### Running the Extension -#### Node Server +#### Plasmo (Method 1) +- `cd` into u-block-origin +- Run `npm install` +- Run `npm run dev` +#### Node Server (Method 2) Can run via Docker container or Node directly ##### Node - `cd` into `bwckwnd` @@ -26,10 +37,10 @@ Can run via Docker container or Node directly ##### Docker - `docker run -p 3000:3000 --platform linux/amd64 -d jamesliangg/mchacks-bwckwnd:0.1` -#### Extension +### Extension - Go to [chrome://extensions](chrome://extensions) - Enable `Developer Mode` -- Click `Load unpacked` and select the root folder (`uwuwuend`) +- Click `Load unpacked` and select the root folder (`uwuwuend` or `u-block-origin/build/chrome-mv3-dev`) - Load any website and enjoy ### Building and Running Docker Container - Build container `docker buildx build --platform=linux/amd64 --output type=docker -t jamesliangg/ .`