Extension Manifest V3 might have made webRequestBlocking a pain in the ass to migrate, but it isn't impossible to use.
- Fork or clone the repo
- Go to
/Extension/src/block.json
- In line 9, change
example.com
to the domain you want to block. - Finally,
npm run build
at/Extension/
. - Done! You now have a blocking extension in .zip, .xpi, and .crx format.
- Remember, if you're using this as production software, remember to sign the .CRX file (Go to
chrome://extensions
, enable Developer Mode, and usePack Extension
).
Using MV3 declarativeNetRequest rules, we can block requests.